Last active
December 12, 2017 16:31
-
-
Save ryanbateman/5bf24a140bbc7cf5d5de217c3b75304d to your computer and use it in GitHub Desktop.
A simple greasemonkey script to make all text on a website invisible
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 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