Last active
March 31, 2024 10:40
-
-
Save snapfast/30ed8ef21a5ff1ae949b1ac6d3a18ae1 to your computer and use it in GitHub Desktop.
Select all comments to delete on instagram, then click delete button after running this
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// allow pasting | |
// script is made for https://www.instagram.com/your_activity/interactions/comments page only | |
// var dd = document.getElementsByTagName('div'); | |
// var ok1 = document.querySelectorAll('div[role=\'button\']'); | |
// var ok = document.querySelectorAll('div[tabindex=\'0\']'); | |
// console.log(ok.length); | |
// var z = 0; | |
// for (y of ok) { | |
// if (z%2 == 1) { | |
// y.click(function(){}); | |
// } | |
// } | |
var elem = document.querySelectorAll('div[aria-label=\'Toggle checkbox\']'); | |
console.log(elem.length); | |
for (x of elem) { | |
x.parentElement.parentElement.click(); | |
} | |
// this is just an attempt, it did not work, instagram has some script | |
// running that detects the scripted clicks, | |
// couldn't find who and where it is running | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment