User:Peng/monobook.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
The accompanying .css page for this skin can be added at User:Peng/monobook.css. |
importScript('User:Kanonkas/warn.js');
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:AzaToth/morebits.js'
+ '&action=raw&ctype=text/javascript');
mw.loader.load('https://commons.wikimedia.org/w/index.php?title=User:Maximr/nuke.js'
+ '&action=raw&ctype=text/javascript');
mw.loader.load('https://commons.wikimedia.org/w/index.php?title=User:Maximr/boot.js'
+ '&action=raw&ctype=text/javascript');
mw.loader.load('https://commons.wikimedia.org/w/index.php?title=User:Maximr/pagenuke.js'
+ '&action=raw&ctype=text/javascript');
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Mr.Z-man/patrollinks.js'
+ '&action=raw&ctype=text/javascript');
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Kanonkas/warn.js'
+ '&action=raw&ctype=text/javascript');
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:AzaToth/twinklebatchprotect.js'
+ '&action=raw&ctype=text/javascript');
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:AzaToth/twinklebatchundelete.js'
+ '&action=raw&ctype=text/javascript');
// <nowiki>
// From [[:en:User:Lupin/autoedit.js]]
function getParamValue(paramName) {
var cmdRe=RegExp('[&?]'+paramName+'=([^&]*)');
var h=document.location;
var m=cmdRe.exec(h);
if (m) {
try {
return decodeURIComponent(m[1]);
} catch (someError) {}
}
return null;
}
importScript('MediaWiki:Quick-delete.js'); //[[MediaWiki talk:Quick-delete.js]]
importScript('MediaWiki:UserMessages.js'); //[[MediaWiki talk:UserMessages.js]]
importScript('MediaWiki:Delete.js'); //[[MediaWiki:Delete.js]]
importScript('MediaWiki:DeleteLinking.js'); //[[MediaWiki:DeleteLinking.js]]
importScript('MediaWiki:DeleteKeep.js'); //[[MediaWiki:DeleteKeep.js]]
importScript('MediaWiki:Duplicate.js'); //[[MediaWiki:Duplicate.js]]
importScript('User:Peng/quickbar.js'); //[[User:Peng/quickbar.js]]
function fillActionPage() {
if (getParamValue("wpReason") > "") {
document.forms[0].wpReason.value = getParamValue("wpReason").replace(/\+/g, " ");
if (wgCanonicalNamespace != "Image") {
window.setTimeout(function() { document.getElementById("deleteconfirm").wpConfirmB.click(); }, 100);
} else {
window.setTimeout(function() {
var inputs = document.getElementsByTagName("input");
for (i=0; i<inputs.length; i++) {
if ((inputs[i].getAttribute('type') == 'submit') && ((inputs[i].getAttribute('value') == 'Löschen') || (inputs[i].getAttribute('value') == 'Delete'))) {
inputs[i].click();
}
}
}, 100);
}
}
window.setTimeout(function() { window.close(); }, 500);
}
if (getParamValue("wpReason") > "") {
addOnloadHook(fillActionPage);
}
// </nowiki>