Created
September 4, 2009 14:03
-
-
Save sergejx/180897 to your computer and use it in GitHub Desktop.
Real World Haskell comments remover
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 Real World Haskell comments remover | |
| // @namespace http://sergejx.mysteria.cz/ | |
| // @description Remove links to comments from Real World Haskell online book. | |
| // @include http://book.realworldhaskell.org/read/* | |
| // ==/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('.commenttoggle { display: none !important; }'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment