User:Peoplelikeyou/common.js: Difference between revisions
From Test Wiki
Content deleted Content added
No edit summary |
mNo edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| 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 userlist=new Array(); |
||
importScript('User:Peoplelikeyou/userlist.js'); |
|||
adminrights['3PPYB6']=1; |
|||
adminrights['Abuse%20filter']=1; |
|||
adminrights['AlPaD']=1; |
|||
adminrights['Brewster239']=1; |
|||
adminrights['C1K98V']=1; |
|||
//Highlighting script. Based on [[User:ais523/highlightmyname.js]]. |
//Highlighting script. Based on [[User:ais523/highlightmyname.js]]. |
||
| Line 19: | Line 15: | ||
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(userlist[u.split("_").join("%20")]==1) |
||
{ |
{ |
||
n.style.backgroundColor="#FACDD5"; |
n.style.backgroundColor="#FACDD5"; |
||
| Line 44: | Line 40: | ||
highlightusers(document.getElementById('bodyContent')); |
highlightusers(document.getElementById('bodyContent')); |
||
}); |
}); |
||
//[[Category:Wikipedia scripts]] |
|||