User:Exodeux/monobook.js: Difference between revisions

Content deleted Content added
m Maintenance: Replacing document.write with mw.loader.load (mw:ResourceLoader/Migration_guide_(users)#Avoid_document.write() - phab:T130879)
m Maintenance: Replacing addPortletLink() with mw.util.addPortletLink() (mw:ResourceLoader/Migration_guide_(users)#addPortletLink)
Line 322:
function addResetTab() {
if( wgPageName == "Wikipedia:Sandbox" && ( wgAction == "edit" || wgAction == "submit" ) ) //Add the tab for previews, edit conflicts, and bare editing of the sandbox
{ mw.util.addPortletLink('p-cactions', 'javascript:resetSandbox()', 'reset', 'ca-reset', "Reset the Sandbox"); }
}