Skip to content

Instantly share code, notes, and snippets.

View Avila-Diego's full-sized avatar
💻
Working

Diego Avila Avila-Diego

💻
Working
View GitHub Profile
@antlionguard
antlionguard / twitter-remove-likes.js
Last active April 17, 2024 23:06
With this script, you can remove all likes you are liked on Twitter.
const timer = ms => new Promise(res => setTimeout(res, ms));
setInterval(async () =>
{
const tweetsLikeButtonList = document.querySelectorAll('div[data-testid="unlike"]');
console.log('****// ' + tweetsLikeButtonList.length + 'Like Found! //****')
for (const button of tweetsLikeButtonList) {
button.scrollIntoView();
await button.click();
console.log('****// Unliked //****');
@antlionguard
antlionguard / twitter-remove-tweets.js
Last active September 6, 2023 15:35
With this script, you can remove all tweets you are tweeted on Twitter. Don't forget add your nickname to line 9. (The script begins 60 seconds after pasting the code.)
const timer = ms => new Promise(res => setTimeout(res, ms));
setInterval(async () =>
{
// Get all tweets
const allTweets = document.querySelectorAll('.css-1dbjc4n.r-18u37iz.r-1wbh5a2.r-13hce6t');
// Filter tweets
const filteredTweets = Array.prototype.slice.call(allTweets).filter(x => x.innerText === '@{YOUR_TWITTER_NICKNAME}'); // --> e.g. '@twitter'
@antlionguard
antlionguard / twitter-remove-retweets.js
Last active May 1, 2024 23:22
With this script, you can remove all retweets you are retweeted on Twitter.
const timer = ms => new Promise(res => setTimeout(res, ms));
// Unretweet normally
const unretweetTweet = async (tweet) => {
await tweet.querySelector('div[data-testid="unretweet"]').click();
await timer(250);
await document.querySelector('div[data-testid="unretweetConfirm"]').click();
console.log('****// Unretweeted Successfully //****')
}
@shimizu
shimizu / README.md
Last active November 9, 2023 12:19
GoogleMap Voronoi Diagram

グーグルでボロノイ図を表示するサンプル