Last active
May 8, 2024 21:50
-
-
Save biast12/ded54dc2cc24583a3ef6d01a93760621 to your computer and use it in GitHub Desktop.
Remove Twitter Blue
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
// ==UserScript== | |
// @name Remove Twitter Blue | |
// @author Biast12 | |
// @description Remove the Twitter Blue by Biast12 | |
// @icon https://abs.twimg.com/favicons/twitter.ico | |
// @version 1.0.9 | |
// @namespace https://twitter.com/Biast12 | |
// @homepageURL https://gist.github.com/biast12/ded54dc2cc24583a3ef6d01a93760621 | |
// @supportURL https://gist.github.com/biast12/ded54dc2cc24583a3ef6d01a93760621 | |
// @updateURL https://gist.github.com/biast12/ded54dc2cc24583a3ef6d01a93760621/raw/RemoveTwitterBlue.user.js | |
// @downloadURL https://gist.github.com/biast12/ded54dc2cc24583a3ef6d01a93760621/raw/RemoveTwitterBlue.user.js | |
// @contributionURL https://www.paypal.com/donate/?hosted_button_id=RWB2QFK7CKUM2 | |
// @license MIT | |
// @grant GM_addStyle | |
// @run-at document-start | |
// @include https://twitter.com/* | |
// ==/UserScript== | |
(function() { | |
let css = ` | |
a[aria-label="Verified"], a[aria-label="Premium"], a[aria-label="Premium+"], a[aria-label="Grok"], a[href="/i/verified-orgs-signup"], a[href="/i/blue_sign_up"], a[href="/i/blue_sign_up?referring_page=verification_reason_dialog"], [aria-label="Get Verified"], [aria-label="Subscribe to Premium"], a[href="/i/premium_tier_switch"], div[data-testid="cellInnerDiv"]:has([href="/i/premium_sign_up?referring_page=timeline_prompt"]), div[data-testid="cellInnerDiv"]:has([href="/i/premium_sign_up?referring_page=timeline_prompt"]), [aria-label="Upgrade to Premium+"] ~ div, .r-1ifxtd0:has(aside[aria-label="Upgrade to Premium+"]) {display: none !important} | |
`; | |
if (typeof GM_addStyle !== "undefined") { | |
GM_addStyle(css); | |
} else { | |
let styleNode = document.createElement("style"); | |
styleNode.appendChild(document.createTextNode(css)); | |
(document.querySelector("head") || document.documentElement).appendChild(styleNode); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remove Twitter Blue buttons
Install a browser extension for managing user scripts (skip if you already have one):
Install The Script from this Github
If you have issues or just need help then DM me on Twitter
If you wanna Support me on Paypal or Join my Patreon!