From 413b0722ea80ce8c1d2efc80f3909a3f6aaa9b2e Mon Sep 17 00:00:00 2001 From: Dejavu Moe Date: Fri, 12 May 2023 12:14:18 +0800 Subject: add twitter/deleteMyTweetLikes.js --- twitter/deleteMyTweetLikes.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 twitter/deleteMyTweetLikes.js (limited to 'twitter/deleteMyTweetLikes.js') diff --git a/twitter/deleteMyTweetLikes.js b/twitter/deleteMyTweetLikes.js new file mode 100644 index 0000000..77ac7f7 --- /dev/null +++ b/twitter/deleteMyTweetLikes.js @@ -0,0 +1,7 @@ +setInterval(function(){ + var divs = document.getElementsByTagName('div') + var arr = Array.prototype.slice.call( divs) + var hearts = arr.filter(x => x.getAttribute('data-testid') == 'unlike') + hearts.forEach(h => h.click()) + window.scrollTo(0, document.body.scrollHeight ||document.documentElement.scrollHeight); + },1000); \ No newline at end of file -- cgit v1.2.3-54-g00ecf