User:Ahecht/useridentifier.js: Difference between revisions
From Test Wiki
Content deleted Content added
Copy from https://en.wikipedia.org/w/index.php?title=User:Anomie/useridentifier.js&action=raw&ctype=text/javascript |
Restore to as close to original as possible |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 51: | Line 51: | ||
globaluserinfo=r.query.globaluserinfo; |
globaluserinfo=r.query.globaluserinfo; |
||
} |
} |
||
if(!users |
if(!users || !lastedit) return; |
||
r=users; |
r=users; |
||
if(r.name!=name) return; |
if(r.name!=name) return; |
||
| Line 95: | Line 95: | ||
d2.title+='\nGroups: '+r.groups.join(', '); |
d2.title+='\nGroups: '+r.groups.join(', '); |
||
} |
} |
||
if(globaluserinfo.groups && globaluserinfo.groups.length>0){ |
if(globaluserinfo !== null && globaluserinfo.groups && globaluserinfo.groups.length>0){ |
||
d.appendChild(document.createElement('BR')); |
d.appendChild(document.createElement('BR')); |
||
d.appendChild(document.createTextNode('Global groups: '+globaluserinfo.groups.join(', '))); |
d.appendChild(document.createTextNode('Global groups: '+globaluserinfo.groups.join(', '))); |
||