Utente:DerHexer/monobook.js
Nòtta: dòppo avéi publicòu, o poriéiva êse necesâio netezâ a cache do pròpio motô de riçèrca pe védde i cangiaménti.
- Firefox / Safari: têgni sciacòu o tàsto de maióscole Shift e sciàcca Ricàrega, òpû Ctrl-F5 ò Ctrl-R (⌘-R inti Mac)
- Google Chrome: sciàcca Ctrl-Shift-R (⌘-Shift-R inti Mac)
- Internet Explorer / Edge: têgni sciacòu o tàsto Ctrl e sciàcca Agiórna, òpû sciàcca Ctrl-F5
- Opera: sciàcca Ctrl-F5.
// get URL parameters (used for page type variables)
var UrlParameters = new Array ();
readparams();
function readparams() {
var asReadInUrlParameters;
var asReadInUrlParameter;
// Get URL parameters
asReadInUrlParameters = location.search.substring(1, location.search.length).split("&");
for (i = 0; i < asReadInUrlParameters.length; i++) {
asReadInUrlParameter = asReadInUrlParameters[i].split("=");
UrlParameters[decodeURIComponent(asReadInUrlParameter[0])] = decodeURIComponent(asReadInUrlParameter[1]);
}
}
function fillActionPage() {
document.forms["blockip"].wpBlockReason.value = UrlParameters["blockreason"];
document.forms["blockip"].wpBlockOther.value = UrlParameters["blockduration"];
window.setTimeout(function() { document.forms["blockip"].wpBlock.click(); }, 100);
}
if ( UrlParameters["blockreason"] > '') {
addOnloadHook(fillActionPage);
}