summaryrefslogtreecommitdiffstats
path: root/twitter/deleteMyTweetLikes.js
diff options
context:
space:
mode:
authorDejavu Moe <[email protected]>2023-05-12 12:14:18 +0800
committerDejavu Moe <[email protected]>2023-05-12 12:14:18 +0800
commit413b0722ea80ce8c1d2efc80f3909a3f6aaa9b2e (patch)
tree7bcd8df5cc3f7f6777e2c6646ad2d63e190e2591 /twitter/deleteMyTweetLikes.js
parente8232833c5c06099ba8b9213084721c51b006a08 (diff)
downloadgist-413b0722ea80ce8c1d2efc80f3909a3f6aaa9b2e.tar.gz
gist-413b0722ea80ce8c1d2efc80f3909a3f6aaa9b2e.zip
add twitter/deleteMyTweetLikes.js
Diffstat (limited to 'twitter/deleteMyTweetLikes.js')
-rw-r--r--twitter/deleteMyTweetLikes.js7
1 files changed, 7 insertions, 0 deletions
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