User:Peoplelikeyou/common.js: Difference between revisions
From Test Wiki
Content deleted Content added
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
// This script highlights bluelinks to selected users' userpages or talkpages in bodyContent |
// This script highlights bluelinks to selected users' userpages or talkpages in bodyContent |
||
var |
var adminrights=new Array(); |
||
adminrights['3PPYB6']=1; |
adminrights['3PPYB6']=1; |
||
| Line 19: | Line 19: | ||
n.href.indexOf(wgArticlePath.split("$1")[0]+h) == -1) return 0; // to the wrong target |
n.href.indexOf(wgArticlePath.split("$1")[0]+h) == -1) return 0; // to the wrong target |
||
var u=n.href.split(h)[1]; |
var u=n.href.split(h)[1]; |
||
if( |
if(adminrights[u.split("_").join("%20")]==1) |
||
{ |
{ |
||
n.style.backgroundColor="#FACDD5"; |
n.style.backgroundColor="#FACDD5"; |
||