Created
October 12, 2011 08:22
-
-
Save gyuque/1280618 to your computer and use it in GitHub Desktop.
林信行氏、MG Siegler氏の記事っぽかったら警告するGM
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 NoNob | |
// @namespace gyuque | |
// @include http://* | |
// ==/UserScript== | |
(function(){ | |
var src = document.body.innerHTML; | |
if (src.match(/林[ ]*信行|MG[ ]*Siegler/i )) { | |
var ms = RegExp['$&']; | |
var warn = document.createElement('div'); | |
var s = warn.style; | |
s.margin = 0; | |
s.fontWeight = "bold"; | |
s.borderRadius = "4px"; | |
s.textShadow = "0 1px 0 #fe9, 0 -1px 0 #ca0"; | |
s.padding = "7px 3px 3px 7px"; | |
s.fontSize = "13px"; | |
s.textAlign = "center"; | |
s.border = "1px solid #ca0"; | |
s.backgroundColor= "#fe0"; | |
s.background = "-moz-linear-gradient(top, #fe3, #eb0)"; | |
s.boxShadow = "0px 1px 1px rgba(0,0,0,0.4)"; | |
s.color = "#000"; | |
s.position = "fixed"; | |
s.top = "-5px"; | |
s.left = "-5px"; | |
warn.appendChild( document.createTextNode("これは "+ ms+" の記事です") ); | |
document.body.appendChild(warn); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment