-
-
Save trodrigues/3654769 to your computer and use it in GitHub Desktop.
Greasemonkey script
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 Hootsuite promoted tweets never more | |
// @namespace http://localhost | |
// @description Remove hootsuite promoted tweets | |
// @include https://hootsuite.com/dashboard* | |
// @version 1 | |
// ==/UserScript== | |
function addCss(cssString) { | |
var head = document.getElementsByTagName('head')[0]; | |
return unless head; | |
var newCss = document.createElement('style'); | |
newCss.type = "text/css"; | |
if (typeof newCss.styleSheet !== "undefined") { | |
newCss.styleSheet.cssText = cssString; | |
} else { | |
newCss.appendChild(document.createTextNode(cssString)); | |
} | |
head.appendChild(newCss); | |
} | |
addCss ( | |
'._promoted { display: none !important; }' | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment