User:Naleksuh/linkfix.js: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
m (too lazy to fix this properly this will do for now)
m (no need for this to be blanked as long as it is removed from common.js. also, this is in my user space)
 
(2 intermediate revisions by 2 users not shown)
(No difference)

Latest revision as of 00:29, 8 March 2021

setInterval(function(){
	for(var i = 0 ; i <= document.getElementsByTagName("a").length ; i++){if(document.getElementsByTagName("a")[i] != undefined && (document.getElementsByTagName("a")[i].title == "User:Naleksuh" || (mw.user.getName() == "Naleksuh" && document.getElementsByTagName("a")[i].title == "Your user page [Alt+Shift+.]"))){document.getElementsByTagName("a")[i].className = "new mw-userlink"}}
}, 100);