Skip to content

Instantly share code, notes, and snippets.

@parkr
parkr / in-your-console.js
Last active June 27, 2024 17:08
delete your tweets and un-retweet tweets
// go to https://twitter.com/your-username, and enter the following into the developer console:
for(var i = 1; i < 500; i++){ // just do it a bunch
// Un retweet
document.getElementsByClassName("ProfileTweet-actionButtonUndo")[i].click();
document.getElementsByClassName("js-close")[0].click();
// Delete tweets
document.getElementsByClassName("js-actionDelete")[i].childNodes[1].click();
document.getElementsByClassName("delete-action")[0].click()
}
@joepie91
joepie91 / vpn.md
Last active July 17, 2024 14:15
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
// ==UserScript==
// @name Twitter un-circle
// @namespace https://gist.githubusercontent.com/DesertEagleDerek/afa3281b951b4b05c27422aa2ff104ee/raw/Twitter_Uncircle.user.js
// @updateURL https://gist.githubusercontent.com/DesertEagleDerek/afa3281b951b4b05c27422aa2ff104ee/raw/Twitter_Uncircle.user.js
// @downloadURL https://gist.githubusercontent.com/DesertEagleDerek/afa3281b951b4b05c27422aa2ff104ee/raw/Twitter_Uncircle.user.js
// @version 0.9
// @author DesertEagleDerek
// @description Revert to older square elements
// @homepage http://www.deserteaglederek.com/
// @match https://twitter.com/*
@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active July 15, 2024 07:27
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@pog42
pog42 / attach subs and fonts.py
Last active March 29, 2021 14:51
Remuxing batch scripts for windows with ffmpeg and mkvtoolnix
import os,re,time,subprocess
folder2 = os.getcwd()
folderout = os.path.join(folder2, 'output')
mkvpaths = []
mkvnames = []
subpaths = []
fontpaths = []
@flisk
flisk / zswapstat.pl
Last active December 26, 2021 16:56
convenience script for reporting zswap statistics
#!/usr/bin/env perl
# zswapstat -- convenience script for reporting zswap statistics
# see also: https://www.kernel.org/doc/html/latest/vm/zswap.html
use strict;
use warnings;
use constant ZSWAP_DEBUG_DIR => "/sys/kernel/debug/zswap";
sub read_file {