Skip to content

Instantly share code, notes, and snippets.

@ArdaXi
Created August 10, 2011 14:41
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 ArdaXi/1136954 to your computer and use it in GitHub Desktop.
Save ArdaXi/1136954 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Spoilers!
// @namespace http://chat.stackexchange.com/
// @description Turns `` markup into spoiler tags.
// @author Arda Xi
// @homepage http://chat.stackexchange.com/rooms/35
// @include http://*chat.stackexchange.com/rooms/35*
// @include http://*chat.stackexchange.com/rooms/1044*
// ==/UserScript==
(function(){var a="code{background:#000!important;color:#000!important;}code:hover{color:#FFF!important;}";var c=document.getElementsByTagName("head");if(c.length>0){var b=document.createElement("style");b.type="text/css";b.appendChild(document.createTextNode(a));c[0].appendChild(b)}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment