Last active
January 17, 2023 21:28
-
-
Save shinmai/13b1fc385b8802ea1979e892e8aae12c to your computer and use it in GitHub Desktop.
UserScript: No Tweet stats - Hide statistics button and viewcount from all tweets
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 No Tweet stats | |
// @namespace rip.aapo.userscripts | |
// @version 0.0.4 | |
// @description Hide statistics button and viewcount from all tweets | |
// @author @shinmai - https://shinmai.wtf | |
// @match https://twitter.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com | |
// @grant none | |
// @updateURL https://gist.github.com/shinmai/13b1fc385b8802ea1979e892e8aae12c/raw/unfuck-tweet-actions.user.js | |
// @downloadURL https://gist.github.com/shinmai/13b1fc385b8802ea1979e892e8aae12c/raw/unfuck-tweet-actions.user.js | |
// ==/UserScript== | |
/** | |
* Changelog: | |
* 0.0.1 (221223) - initial version | |
* 0.0.2 (221226) - add a rule to also hide the "X Views" line below opened tweets | |
* 0.0.3 (230110) - add a rule to also hide the new revised "X Views" line below opened tweets | |
* 0.0.4 (230117) - wish Twitter would test changes before pushing them to production... | |
*/ | |
(function() { | |
'use strict'; | |
const style=document.createElement('style') | |
style.innerHTML="div.r-1mdbhws>div:nth-child(4),article>div>div>div>div>div[role=\"group\"].css-1dbjc4n,article span.r-1nao33i{display:none;}" | |
document.head.appendChild(style) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment