Skip to content

Instantly share code, notes, and snippets.

@jaketrent
Created April 28, 2020 22:18
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 jaketrent/84bf87eb72056d2d9b6563c7d693170b to your computer and use it in GitHub Desktop.
Save jaketrent/84bf87eb72056d2d9b6563c7d693170b to your computer and use it in GitHub Desktop.
Userscript for Tampermonkey et al that hides twitter post like counts
// ==UserScript==
// @name Hide My Twitter Like Counts
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Hide the like count
// @author jaketrent
// @include https://twitter.com/*
// @include http://twitter.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var styles = document.createElement('style');
styles.id="hidelikes"
styles.innerHTML = `
[data-testid=like] {
visibility: hidden !important;
}
`;
document.head.appendChild(styles);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment