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() { | |
for (var ssi = 0; ssi < document.styleSheets.length; ssi++) { | |
var rules = document.styleSheets[ssi].cssRules || []; | |
var sheetHref = document.styleSheets[ssi].href || 'inline'; | |
for (var ri = 0; ri < rules.length; ri++) { | |
if (!document.querySelectorAll(rules[ri].selectorText).length) { | |
console.log(`${sheetHref}: "${rules[ri].selectorText}" not found.`); | |
} | |
} | |
} |
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
require "rubygems" | |
require "twitter" | |
require "json" | |
# things you must configure | |
TWITTER_USER = "your_username" | |
MAX_AGE_IN_DAYS = 1 # anything older than this is deleted | |
# get these from dev.twitter.com | |
CONSUMER_KEY = "your_consumer_key" |
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
#!/usr/bin/env ruby | |
require "rubygems" | |
require "twitter" | |
require "json" | |
require "faraday" | |
# things you must configure | |
TWITTER_USER = "your_username" | |
# get these from dev.twitter.com |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta title="Find Tweet IDs in Twitter's Data Export"> | |
<meta charset="UTF-8"> | |
<style> | |
body { | |
font-family: sans-serif; | |
line-height: 1.5; |
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
// Deletes all your Twitter retweets when being on your profile page twitter.com/<username> | |
// Barebones script: runs every second, unretweets the topmost retweet, scrolls to the bottom if no more retweets on page | |
// It won't stop unless manually reloading the page removes this code. Tested with Twitter web May 2022 | |
setInterval( | |
function() { | |
console.log('Searching for unretweet UI...'); | |
var menu = document.querySelectorAll('[data-testid=unretweet]')[0]; // find unretweet menu | |
if (menu === undefined) { | |
console.log('No unretweet menus found. Scrolling to load more tweets...'); |
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
// Deletes all your Twitter likes when being on your profile page twitter.com/<username>/likes | |
// Barebones script: runs every second, unlikes the topmost like, scrolls to the bottom if no more likes on page | |
// It won't stop unless manually reloading the page removes this code. Tested with Twitter web May 2022 | |
setInterval( | |
function() { | |
console.log('Searching for unlike UI...'); | |
var button = document.querySelectorAll('[data-testid=unlike]')[0]; // find unlike menu | |
if (button === undefined) { | |
console.log('No unlike buttons found. Scrolling to load more tweets...'); |