Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@websmyth
websmyth / unlike.js
Last active December 7, 2021 15:34
Unlike everything on Twitter (a tweak of Jamie Mason’s excellent unfollow.js – https://gist.github.com/JamieMason/7580315)
(() => {
const $followButtons = '[data-testid$="unlike"]';
const retry = {
count: 0,
limit: 5,
};
const scrollToTheBottom = () => window.scrollTo(0, document.body.scrollHeight);
const retryLimitReached = () => retry.count === retry.limit;

Keybase proof

I hereby claim:

  • I am websmyth on github.
  • I am davesmyth (https://keybase.io/davesmyth) on keybase.
  • I have a public key ASDrwx-OAfOHCD8BYMN0JUKobjYTLLt_GKRdlS8WSjvnlgo

To claim this, I am signing this object: