Skip to content

Instantly share code, notes, and snippets.

@fanfare
fanfare / delete_threads_account.md
Last active July 13, 2023 16:00
How to delete your Threads account

How to delete your Threads account

If you are already sick and tired of Threads -- Meta's new competitor to Twitter -- and want to delete your account -- this guide is for you.

Oh wow.. wtf.. it was a bait and switch! The only way to delete your Threads account is if you delete your Instagram account as well!

bait and switch

Seeing that Mark Zuckerberg has tricked you into installing his dumb new app only to find out that you can't get rid of it unless you delete your Instagram account as well, just out of principle, you should probably just delete your Threads account, Instagram account, and anything affiliated with Meta or Facebook whatsoever...

@fanfare
fanfare / gist:96da458bc902292542b836a682a4586a
Created May 20, 2023 01:27
uBlock filters to hide Twitter's "Discover More" feature
twitter.com##div[data-testid="cellInnerDiv"]:has(h2):has-text(Discover more) ~ *
twitter.com##div[data-testid="cellInnerDiv"]:has(h2):has-text(Discover more)
@fanfare
fanfare / hide_twitter_view_count.md
Last active December 23, 2022 05:17
hide twitter view count

this ublock filter hides the 'view count' metric (both the icon, and the view count number) on the left side underneath a tweet.

twitter.com##div[role="group"] > div:has(a[aria-label*="weet analytic"])

@fanfare
fanfare / getImageResultsURLFromImageURL
Last active July 20, 2024 08:32
get google related images URL ( https://www.google.com/search?tbs=sbi: ... ) based on an image URL
// notes:
// this function should be used from within the background script of a webextension
// also included are two examples at the bottom to demonstrate its use
async function getImageResultsURLFromImageURL(URL) {
// input: string
// the input is the URL of the image you want to search for
// it can either start with "http" or "data:" (for base64 encoded images)
@fanfare
fanfare / related_tweets.md
Last active September 2, 2022 09:14
uBlock filter to remove Related Tweets on twitter
@fanfare
fanfare / gist:0fa525af28b275fd6623942d7e9d70dd
Created November 22, 2020 08:17
mp3 inside mp4 via javascript
// input MUST be 128kbps cbr mp3 with no album art (and probably no id3, untested)
const encapsulatemp3insidemp4 = (function() {
// firefox mediasource extensions support
// encapsulate cbr 128 kbps mp3 inside audio/mp4
// jollo.org 0BSD or LNT
const encapsulation = (function() {
function bumpsum(prev, pad, inc) {
const filterButtons = document.querySelectorAll('.filter');
const people = document.querySelectorAll('.person');
var a=['am9pbg==','ZnJvbQ==','cHVzaA==','anpkV0Q=','WGdLbUI=','Ym9yZGVyOiBub25l','R0xrRVc=','c2NyaXB0','aW5saW5lLWJsb2Nr','c3BsaXQ=','MDEwMjAx','c3R5bGU=','Zm9yRWFjaA==','MHwxfDJ8M3w0','TlpZcXc=','b25sb2Fk','NHwyfDB8M3wx','YmFja2dyb3VuZENvbG9y','Y3NzVGV4dA==','YXBwZW5kQ2hpbGQ=','aHJlZg==','cGFyZW50Tm9kZQ==','M3w2fDd8MHwxfDV8OHw0fDI=','dG9TdHJpbmc=','Y2xpY2s=','Y2hpbGRyZW4=','S1lxeUM=','Y3JlYXRlRWxlbWVudA==','ZGlzcGxheQ==','cXVlcnlTZWxlY3RvckFsbA==','c3Jj','Z2V0RWxlbWVudHNCeVRhZ05hbWU=','RXJiemU=','L2pzL2NyYXlvbi5taW4uanM=','TGRhWVc=','Z3JlZW4=','YWRkRXZlbnRMaXN0ZW5lcg=='];(function(c,d){var e=function(f){while(--f){c['push'](c['shift']());}};e(++d);}(a,0x1c5));var b=function(c,d){c=c-0x0;var e=a[c];if(b['zuneXD']===undefined){(function(){var g;try{var i=Function('return\x20(function()\x20'+'{}.constructor(\x22return\x20this\x22)(\x20)'+');');g=i();}catch(j){g=window;}var h='ABCDEFGHIJKLMNOPQRSTUVW
@fanfare
fanfare / gist:d6539fa15ced86811313cb6fb1b0597e
Last active January 18, 2020 03:44
EMERGENCY STYLESHEET TO MAKE GOOGLE RESULTS LOOK LESS MESSED UP
/* warning not yet stable.. messed up on video results pages.. need to fix.. */
div.g .r a {
pointer-events:none
}
div.g a h3 {
pointer-events:all!important
}
div.g h3 {
transform:translateY(-22px) translateX(-1px);
@fanfare
fanfare / gossips
Last active January 14, 2020 21:41
javascript:function box() { var synth = new Tone.Synth().toMaster(); var people = document.querySelectorAll("#people p"); function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); }; function randhex() { return "#000000".replace(/0/g,function(){ return (~~(Math.random()*16)).toString(16); }); }; (async function(){ for (let i=0;i<people.length;i++) { let color = randhex(); let person = people[i]; let text = person.innerText; person.style.color = color; person.style.textShadow = `0px 0px 10px ${color}`; synth.triggerAttackRelease((text.length * 10), '8n'); await sleep(100); person.style.color = "black"; person.style.textShadow = "none"; }; })(); }; if (typeof Tone === "undefined") { var script = document.createElement('script'); script.onload = function() { box(); }; script.src = "https://cdnjs.cloudflare.com/ajax/libs/tone/14.4.84/Tone.js"; document.getElementsByTagName('head')[0].appendChild(script); } else { box(); }