This file contains hidden or 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 sleep(ms) { | |
return new Promise((resolve) => setTimeout(resolve, ms)); | |
} | |
async function deleteTweets() { | |
let tweets = document.querySelectorAll('[data-testid="tweet"]'); | |
for (let tweet of tweets) { | |
// Replace "Your Display Name" | |
if (tweet.querySelector("span:first-child").innerHTML.includes("Your Display Name")) { | |
console.log("My tweet"); | |
tweet.querySelectorAll('[data-testid="caret"]')[0].scrollIntoView(); |
This file contains hidden or 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 sleep(ms) { | |
return new Promise((resolve) => setTimeout(resolve, ms)); | |
} | |
async function unlikeTweets() { | |
let tweets = document.querySelectorAll('[data-testid="tweet"]'); | |
for (let tweet of tweets) { | |
let unlikeButton = tweet.querySelectorAll('[data-testid="unlike"]')[0]; | |
if (unlikeButton != null) { | |
unlikeButton.scrollIntoView(); | |
unlikeButton.click(); |
This file contains hidden or 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
# Set local git config | |
git config user.name "Your Name Here" | |
git config user.email [email protected] | |
# Set global git config | |
git config --global user.name "Your Name Here" | |
git config --global user.email [email protected] | |
# Check your git settings | |
git config user.name && git config user.email |
OlderNewer