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
For those who want to remove their Twitter likes in bulk, but are being blocked by Twitter's API, | |
I give you a slower version that is more API-friendly; it removes each like one at a time. | |
Open your Twitter likes page on a separate browser window, then run the following code in the console: | |
```javascript | |
setInterval(() => { | |
document.querySelectorAll('div[data-testid="unlike"]')[0].click(); | |
window.scrollTo(0, window.pageYOffset+300); | |
}, 1000); | |
``` |
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
/** | |
* Before you execute the script on your profile page, scroll down to the 7th post or so. | |
* Use stop() to clear the time interval and stop the process at will. | |
*/ | |
let interval; | |
// Stop process function | |
const stop = () => { | |
clearInterval(interval); |