Skip to content

Instantly share code, notes, and snippets.

@ryanbateman
Last active December 12, 2017 16:31
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 ryanbateman/5bf24a140bbc7cf5d5de217c3b75304d to your computer and use it in GitHub Desktop.
Save ryanbateman/5bf24a140bbc7cf5d5de217c3b75304d to your computer and use it in GitHub Desktop.
A simple greasemonkey script to make all text on a website invisible
// ==UserScript==
// @name NoText
// @version 0.2
// @namespace com.everythinginthesky
// @description Makes the web bearable
// @author @rynbtmn
// @match *://*/*
// ==/UserScript==
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
addGlobalStyle('* { color: rgba(0, 0, 0, 0) !important; text-shadow: none !important; }');
addGlobalStyle('input::-webkit-input-placeholder { color: rgba(0, 0, 0, 0) !important;} input:-moz-placeholder { /* Firefox 18- */color: rgba(0, 0, 0, 0) !important; } input::-moz-placeholder { /* Firefox 19+ */ color: rgba(0, 0, 0, 0) !important;} input:-ms-input-placeholder { color: rgba(0, 0, 0, 0) !important; } ');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment