User:Marine-Blue/remove nowiki.js

This is an archived version of this page, as edited by Marine-Blue (talk | contribs) at 06:12, 7 January 2012. It may differ significantly from the current version.

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/*

////////////////////////////////////////////////////////////////////////////////////////
//
//  remove nowiki.js
//
//  last update 2012-01-07
//
////////////////////////////////////////////////////////////////////////////////////////

replace "利用者調査者" to "チェックユーザー"
replace "秘匿者" to "オーバーサイト"

*/
function removeNowiki() {
	if(wgPageName.indexOf("Special:Log") > -1) {
		var username = new Object;
		var logline = document.getElementById("bodyContent");
		var logdata = logline.getElementsByTagName("li");
 		
		for(i = 0;i < logdata.length; i++) {
			if(logdata[i].className == "mw-logline-rights") {
				logdata[i].innerHTML = logdata[i].innerHTML.replace(/利用者調査者/g,"チェックユーザー");
				logdata[i].innerHTML = logdata[i].innerHTML.replace(/秘匿者/g,"オーバーサイト");
			}
		}
	}
}

addOnloadHook(removeNowiki);