Last active
August 9, 2018 10:37
-
-
Save Niksko/750cbbb9fe69b23cf93d77158e53ac58 to your computer and use it in GitHub Desktop.
A user script to remove metrics from Twitter, as suggested by Joshua Topolsky
This file contains hidden or 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 Twitter Metric Remover | |
| // @namespace https://skouf.com/ | |
| // @version 0.2 | |
| // @description Removes all metrics from Twitter | |
| // @author Nik Skoufis | |
| // @match http*://*twitter.com/* | |
| // ==/UserScript== | |
| function addStyle(css) { | |
| const style = document.getElementById("addStyle") || (function() { | |
| const style = document.createElement('style'); | |
| style.type = 'text/css'; | |
| style.id = "addStyle"; | |
| document.head.appendChild(style); | |
| return style; | |
| })(); | |
| const sheet = style.sheet; | |
| sheet.insertRule(css, (sheet.rules || sheet.cssRules || []).length); | |
| } | |
| addStyle('.UserBadges { display: none; }'); | |
| addStyle('.ProfileCardStats-statList { opacity: 0; }'); | |
| addStyle('.stats { display: none }'); | |
| addStyle('.ProfileTweet-actionCountForPresentation { opacity: 0; }'); | |
| addStyle('.ProfileHeaderCard-badges { opacity: 0; }'); | |
| addStyle('.ProfileUserList--socialProof { display: none; }'); | |
| addStyle('.PhotoRail { display: none; }'); | |
| addStyle('.ProfileSidebar { display: none; }'); | |
| addStyle('.ProfileNav-value { opacity: 0; }'); | |
| addStyle('.tweet-context { display: none; }'); | |
| addStyle('.dashboard-right { display: none; }'); | |
| addStyle('.trends { display: none; }'); | |
| addStyle('#global-actions .moments { display: none; }'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment