Last active
August 29, 2015 14:10
-
-
Save masterofpun/b34554c3401a1e6284d2 to your computer and use it in GitHub Desktop.
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 SHIELD reddit message | |
| // @description enter something useful | |
| // @match https://*.reddit.com/* | |
| // ==/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('#mail{position:relative;display:inline-block;text-indent:-9999px;overflow:hidden;width:20px;height:20px;}'); | |
| addGlobalStyle('#mail.havemail{background:url("//b.thumbs.redditmedia.com/jkppNlTnKO5iBf9gLCWFWv0m3REcvPczhw8Ba4HnZ_I.png");width:20px!important;height:20px!important;left:0px;top:7px;}'); | |
| addGlobalStyle('#mail.nohavemail{background:url("//a.thumbs.redditmedia.com/biX_jV6jmBzOnRMUrkVmFBrSVqGoRurYtcNFW5Nx644.png");width:20px!important;height:20px!important;left:0px;top:7px;}'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment