User:Z thomas/common.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:Z thomas/common.css. |
importScript('User:Magnus Manske/sdc_tool.js') ;
// make HotCat auto-save always, even if multiple categories are changed
mw.loader.using("mediawiki.user", function () {
$('body').delegate('#hotcatCommitForm', 'submit', function () {
// The variable "this" refers to the form. Its fields can be accessed directly, e.g.
// this.wpTextbox1 gives you the textarea containing the page text of the edit.
var submitType = this.wpDiff;
if (submitType && (!this.oldid || this.oldid.value == '0')) {
// Switch form submission from diff to save. Don't do this if "oldid" is set to anything but '0':
// that indicates an edit conflict with yourself, and in that case you do want to see the diff!
this.wpEditToken.value = mw.user.tokens.get("csrfToken");
submitType.name = submitType.value = 'wpSave';
}
return true;
});
});
/// RevisionCounter aktivieren
mw.loader.load("//de.wikipedia.org/w/index.php?title=MediaWiki:Gadget-revisionCounter.js&action=raw&ctype=text/javascript");
mw.loader.load('https://de.wikipedia.org/w/index.php?title=Benutzer:DerHexer/massendiskus.js&action=raw&ctype=text/javascript');
/// bilder aus cat hochladen
$("#contentSub").prepend(
'<a href="//commons.wikimedia.org/w/index.php?title=Special:UploadWizard&categories=' + encodeURIComponent(mw.config.get('wgTitle')) +
'" title="Weitere Dateien in diese Kategorie hochladen">' +
'<img alt="Weitere Dateien in diese Kategorie hochladen" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/42/Camera-photo_Upload.svg/30px-Camera-photo_Upload.svg.png"' +
' style="vertical-align:sub" height="30" width="30">' +
'</a>');
mw.loader.load('//commons.wikimedia.org/w/index.php?title=User:Wiegels/slideshow.js&action=raw&ctype=text/javascript', 'text/javascript'); // [[c:User:Wiegels/slideshow.js]]
// Benutzer:PerfektesChaos/js/watchCategories – Wartungskategorien in der Beobachtungsliste anzeigen
if ( typeof mw.libs.watchCategories !== "object" || ! mw.libs.watchCategories ) {
mw.libs.watchCategories = { };
}
mw.libs.watchCategories.cats = ["Images from Wiki Loves Earth 2023 in Germany with lack of identification"];
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/watchCategories/r.js&action=raw&bcache=1&maxage=604800&ctype=text/javascript",
"text/javascript");