User:Naleksuh/linkfix.js: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
Naleksuh (talk | contribs)
m too lazy to fix this properly this will do for now
Naleksuh (talk | contribs)
m Naleksuh moved page User:Naleksuh/common.js to User:Naleksuh/linkfix.js without leaving a redirect
(No difference)

Revision as of 20:43, 11 January 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);