User:Saibo/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:Saibo/monobook.css. |
var ImageAnnotator_zoom_threshold = 2.0; // Oder ein anderer Wert >= 0. Standard ist 8.0
mw.loader.load("//commons.wikimedia.org/w/index.php?title=User:Saibo/catgraphtabs.js&action=raw&ctype=text/javascript"); // use tracking: [[User:Saibo/catgraphtabs.js]]
mw.loader.load("//commons.wikimedia.org/w/index.php?title=User:Saibo/CatNewsTabs.js&action=raw&ctype=text/javascript"); // use tracking: [[User:Saibo/CatNewsTabs.js]]
mw.loader.load("//commons.wikimedia.org/w/index.php?title=User:Saibo/afterUploadTab.js&action=raw&ctype=text/javascript"); // use tracking (do not remove): [[User:Saibo/afterUploadTab.js]]
// MediaWiki_talk:AjaxQuickDelete.js
//To watch user pages, to which you add tags, add
var AjaxDeleteWatchUserTalk = false;
//To watch file pages, to which you add tags, add
var AjaxDeleteWatchFile = true;
var AjaxDeleteExtraButtons = [
{
'label': 'no lic. bot',
'tag': '{\{subst:nld}}',
'img_summary': '+(script) Missing copyright tag',
'talk_tag': '{\{subst:image license|1=%FILE%}}<br />\'\'This message was added automatically by {\{subst:REVISIONUSER}}, if you need some help about it please read the text above again and follow the links in it, if you still need help ask at the [[File:Human-help-browser.svg|18px|link=Commons:Help desk|?]] \'\'\'[[Commons:Help desk|→]] [[Commons:Help desk]]\'\'\' in any language you like to use.\'\'',
'talk_summary': 'Copyright tag is missing for %FILE%',
}, {
'label': 'no orig. src',
'tag': '{\{subst:dw-nsd}}',
'img_summary': '+Missing orig. source',
'talk_tag': '{\{subst:dw image source|1=%FILE%}}',
'talk_summary': 'Orig. source is missing for %FILE%',
}, {
'label': 'No Perm. +Comment',
'tag': '<br /><br /><br />%PARAMETER% --~~\~~ {\{subst:npd}}',
'img_summary': '+Missing permission',
'talk_tag': '{\{subst:image permission|1=%FILE%}}',
'talk_summary': 'Please send a permission for %FILE% to [[COM:OTRS|OTRS]]',
'prompt_text': 'Additional comment (will be placed on top of the npd tag):',
}, {
'label': 'Wrong lic. (but free)',
'tag': '{\{wrong license|1=%PARAMETER%}}',
'img_summary': '+Wrong licensing',
'talk_tag': '{\{subst:Wrong license note|1=%FILE%|2=%PARAMETER%}}',
'talk_summary': 'Wrong licensing of %FILE%',
'prompt_text': 'Reason/explanation:',
}, {
'label': 'speedy deletion',
'tag': '{\{speedy|1=%PARAMETER%}}',
'img_summary': 'Tagging for speedy deletion - reason: %PARAMETER%',
'prompt_text': 'Reason for speedy deletion:',
}, {
'label': 'Mark as dupe',
'tag': '{\{duplicate|1=%PARAMETER%|user=%USER%}}',
'img_summary': 'Tagging as duplicate of [[File:%PARAMETER%]]',
'prompt_text': 'Which file is a duplicate of this file (filename without File: prefix)?',
}, {
'label': 'Reset exif',
'tag': '{\{rotate|resetexif}}',
'img_summary': 'Correcting image orientation: Requesting Rotatebot to reset [[COM:EXIF#Orientation|EXIF Orientation]] as the image is physically in correct orientation',
}
];
/*
}, {
'label': 'Reset exif dupe',
'tag': '{\{rotate|resetexif}}',
'img_summary': 'Correcting image orientation: Requesting Rotatebot to reset (needed because of highly likely (Quicktime) duplicate IFD0:Orientation tags) [[COM:EXIF#Orientation|EXIF Orientation]] (image is physically in correct orientation)',
*/
// stuff to check out:
// importScript('User:Sreejithk2000/BotCheck.js');
// importScript('User:Sreejithk2000/useredits.js');
// importScript('User:Sreejithk2000/crop.js');
// importScript('User:Sreejithk2000/pixlr.js');
// importScript('MediaWiki:AddCoordinates.js');
// // importScript('User:ZooFari/licensereviewer.js');
//MediaWiki:Gadget-GalleryDetails.js param:
// On Special:NewFiles, it runs automatically unless you define:
var gallery_details_newfiles_run = false;
// nur das Diff-Modul von WikEd aktivieren. Only run on diff pages.
if (((mw.config.get("wgAction") === 'view' || mw.config.get("wgAction") === 'historysubmit') && document.URL.search(/[?&]diff=/) != -1) || (mw.config.get("wgAction") === 'submit')) {
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEdDiff.js&action=raw&ctype=text/javascript");
}
// [[:de:Benutzer:DerHexer/Monobookwünsche]]
if (mw.config.get("wgNamespaceNumber") === 6 || mw.config.get("wgCanonicalSpecialPageName") === "Whatlinkshere" || document.URL.search(/[?&]replace=/) != -1) { //only run on File pages and whatlinks here
mw.loader.load("//de.wikipedia.org/w/index.php?title=Benutzer:DerHexer/fixlinks.js&action=raw&ctype=text/javascript");
}
// [[bugzilla:30401]] - switch animations off!
$.fx.off = true;
//rotate button custom config:
window.rotateFileTypes = ['jpg', 'jpeg']; //only for jpg
// müsste ich dann noch drumrum ein "only on mediawiki js pages in edit mode" basteln
// mw.loader.load('http://www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-CodeEditor.js&action=raw&ctype=text/javascript');
window.AxUserMsgCustomText = '--'; // fix for [[Help:Gadget-UserMessages]] sig.
// to check out: [[User:Rillke/checkCat.js]]
// importScript('User:Rillke/LicenseReview.js'); // contains also user notification when review fails, auto blacklist-check and auto-thank you message for Flickr-reviews.
mw.util.addPortletLink('p-tb', 'javascript:{importScript(\'MediaWiki:VisualFileChange.js\'); void(0);}', "Perform batch task", 't-AjaxQuickDeleteOnDemand', null); // [[MediaWiki:VisualFileChange.js]]
//vFCvFCCfg/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFCSettings = {"userNote":"--","firstTest":"2","testEdits":"10","defaultAction":"del","watchlistUserTalk":"watch","watchlistFiles":"watch","loadBatchSize":"100","maxSimultaneousReq":"10","watchUserTalk":true,"watchFiles":true};
//////////////////////////////////vFCvFCCfgEnd//
/* hide the preview note image - see https://bugzilla.wikimedia.org/show_bug.cgi?id=11243 */
if ((mw.config.get('wgNamespaceNumber') === 6) && ((mw.config.get("wgAction") === 'edit') || (mw.config.get("wgAction") === 'submit'))) {
var showhidelinky = $('<a href="#">show/hide preview image</a>');
showhidelinky.attr('onclick', '$("DIV.previewnote .floatnone").toggle();');
$("#wikiPreview").before(showhidelinky)
}