User:Cuckooman4/statustab.js: Difference between revisions

Content deleted Content added
Cuckooman4 (talk | contribs)
Only define first three vars if they don't already exist
m Maintenance: Replacing addPortletLink() with mw.util.addPortletLink() (mw:ResourceLoader/Migration_guide_(users)#addPortletLink)
 
Line 10:
addOnloadHook(
function() {
mw.util.addPortletLink('p-cactions', 'http://en.wikipedia.org/w/index.php?title=Special:Mypage/'+statuspageurl+'&action=edit', 'edit status', 'ca-status')
 
if(___location.href=='http://en.wikipedia.org/w/index.php?title=User:'+wgUserName+'/'+statuspageurl+'&action=edit') {