Last active
January 26, 2020 13:57
-
-
Save julienreszka/6748181e3c2d7f9b5c7ba6ff7cf23496 to your computer and use it in GitHub Desktop.
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
function unretweet() { | |
document.querySelectorAll( | |
'.r-nw8l94' // find the class with the green color | |
).forEach((retweet)=>{retweet.click()}) | |
document.querySelectorAll('div[data-testid="unretweetConfirm"]').forEach((retweet)=>{retweet.click()}) | |
} | |
function anihilate() { | |
unretweet() | |
document.querySelectorAll( | |
'path[d="M20.207 8.147c-.39-.39-1.023-.39-1.414 0L12 14.94 5.207 8.147c-.39-.39-1.023-.39-1.414 0-.39.39-.39 1.023 0 1.414l7.5 7.5c.195.196.45.294.707.294s.512-.098.707-.293l7.5-7.5c.39-.39.39-1.022 0-1.413z"]' | |
// path for chevron down | |
)[0].parentElement.parentElement.parentElement.click() | |
document.querySelectorAll( | |
'path[d="M20.746 5.236h-3.75V4.25c0-1.24-1.01-2.25-2.25-2.25h-5.5c-1.24 0-2.25 1.01-2.25 2.25v.986h-3.75c-.414 0-.75.336-.75.75s.336.75.75.75h.368l1.583 13.262c.216 1.193 1.31 2.027 2.658 2.027h8.282c1.35 0 2.442-.834 2.664-2.072l1.577-13.217h.368c.414 0 .75-.336.75-.75s-.335-.75-.75-.75zM8.496 4.25c0-.413.337-.75.75-.75h5.5c.413 0 .75.337.75.75v.986h-7V4.25zm8.822 15.48c-.1.55-.664.795-1.18.795H7.854c-.517 0-1.083-.246-1.175-.75L5.126 6.735h13.74L17.32 19.732z"]' | |
// path for trashcan | |
)[0].parentElement.parentElement.parentElement.click() | |
document.querySelectorAll('div[data-testid="confirmationSheetConfirm"]')[0].click() | |
window.scrollTo(0,document.body.scrollHeight); | |
} | |
function unlike(){ | |
document.querySelectorAll( | |
'.r-daml9f' // find the class with the red color | |
).forEach((like)=>{like.click()}) | |
window.scrollTo(0,document.body.scrollHeight); | |
} | |
function unfollow() { | |
document.querySelectorAll('div[dir="auto"].r-jwli3a')[2].click() | |
document.querySelectorAll('div[data-testid="confirmationSheetConfirm"]')[0].click() | |
} | |
function unfollowN( | |
n // number of unfollow | |
) { | |
var i = 0; | |
while(i < n) { | |
unfollow() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment