Skip to content

Instantly share code, notes, and snippets.

@biast12
Last active May 8, 2024 21:50
Show Gist options
  • Save biast12/ded54dc2cc24583a3ef6d01a93760621 to your computer and use it in GitHub Desktop.
Save biast12/ded54dc2cc24583a3ef6d01a93760621 to your computer and use it in GitHub Desktop.
Remove Twitter Blue
// ==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);
}
})();
@biast12
Copy link
Author

biast12 commented Jul 30, 2023

Remove Twitter Blue buttons

  1. Install a browser extension for managing user scripts (skip if you already have one):

  2. 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment