Skip to content

Instantly share code, notes, and snippets.

@rbalicki2
Created January 24, 2023 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rbalicki2/514faf17c0ba2bf4fa443bedd539cad0 to your computer and use it in GitHub Desktop.
Save rbalicki2/514faf17c0ba2bf4fa443bedd539cad0 to your computer and use it in GitHub Desktop.
Jank-ass gist to show the "following" tab
// ==UserScript==
// @name Following
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://twitter.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
setTimeout(() => {
const a = document.evaluate('//span[text()="Following"]', document, null, XPathResult.ANY_TYPE, null).iterateNext();
a.click();
}, 1000)
})();
// Note that this also has negative effects when you refresh on a given tweet, so, someone should fix that. Kthx!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment