Skip to content

Instantly share code, notes, and snippets.

@azu
Created December 25, 2009 13:29
Show Gist options
  • Save azu/263634 to your computer and use it in GitHub Desktop.
Save azu/263634 to your computer and use it in GitHub Desktop.
// ==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