summaryrefslogtreecommitdiffstats
path: root/twitter/deleteMyTweetLikes.js
diff options
context:
space:
mode:
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