Content deleted Content added
m ... |
m ... |
||
Line 12:
document.forms["editform"].wpWatchthis.checked = false //Chances are you already have the sandbox watchlisted
document.forms["editform"].wpMinoredit.checked = true; //Make it a minor edit
if(UrlParameters["indirect"] == 1
window.setTimeout(function() { document.forms["editform"].wpDiff.click(); }, 200); //Load the diff if you are resetting it per the toolbox link
var save = confirm("Save? (click \"OK\" to save; \"cancel\" to abort)") // Do you want to make these changes?
Line 23:
}
}
window.addEventListener("load", resetSandbox, false)
addOnloadHook(function () {
if(wgPageName == "Wikipedia:Sandbox") // If the page you are viewing is the sandbox
Line 30 ⟶ 32:
{ addToolboxLink("http://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&action=edit&sandboxreset=1&indirect=1", 'Reset the Sandbox', '', '', ''); }
});
|