User:Cuckooman4/js.js: Difference between revisions

Content deleted Content added
Cuckooman4 (talk | contribs)
Added jslinkportlet var
m Maintenance: Replacing addPortletLink() with mw.util.addPortletLink() (mw:ResourceLoader/Migration_guide_(users)#addPortletLink)
 
(One intermediate revision by one other user not shown)
Line 1:
//Made by cuckooman4
//
//See /doc.
//Adds a link to edit your monobook.js/whatever skin you use.js.
//<pre><nowiki>
 
Line 8:
addOnloadHook(
function() {
mw.util.addPortletLink(jslinkportlet, 'http://en.wikipedia.org/w/index.php?title=Special:Mypage/' + skin + '.js&action=edit', 'Edit ' + skin + '.js', 'n-myjs')
}
)