User:Cuckooman4/js.js: Difference between revisions

Content deleted Content added
Cuckooman4 (talk | contribs)
m moved User:Cuckooman4/monobookjs.js to User:Cuckooman4/js.js: Not just for monobook.js
m Maintenance: Replacing addPortletLink() with mw.util.addPortletLink() (mw:ResourceLoader/Migration_guide_(users)#addPortletLink)
 
(2 intermediate revisions 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>
 
var jslinkportlet = "p-navigation"
 
addOnloadHook(
function() {
mw.util.addPortletLink('p-navigation'jslinkportlet, 'http://en.wikipedia.org/w/index.php?title=Special:Mypage/' + skin + '.js&action=edit', 'Edit ' + skin + '.js', 'n-myjs')
}
)