Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// ==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
You can’t perform that action at this time.