Created
December 25, 2009 13:29
-
-
Save azu/263634 to your computer and use it in GitHub Desktop.
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 Nicovideo_item_checker_rename | |
// @namespace http://efcl.info/ | |
// @include http://tsukaban.dyndns.org/~tsukaban/nknkchkitem/chkitem.php?id=* | |
// ==/UserScript== | |
setTimeout(function(){ | |
var h3 = document.getElementsByTagName("h3"); | |
for(var i=0,l=h3.length;i<l;i++){ | |
if(h3[i].firstChild.textContent.match(/^\[BASE\](.*)/)){ | |
var title = RegExp.$1; | |
document.title = document.title.replace(/(^\[.*?\]).*/ ,"$1"+title); | |
break; | |
} | |
} | |
}, 1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment