User:Axel Pettersson (WMSE)/common.js

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.
//CropTool code begins, see [[Commons:CropTool]] for details
(function(mw, $){
    if (mw.config.get( 'wgNamespaceNumber' ) !== 6) return;
    if (mw.config.get( 'wgAction' ) != 'view') return;
 
    $( function () {
    	var title = mw.config.get( 'wgTitle' ).replace(/ /g, '_'),
            croplink = '//tools.wmflabs.org/croptool/?title=' + encodeURIComponent(title);
        mw.util.addPortletLink(
            "p-tb",
            croplink,
            "CropTool",
            "t-crop",
            "Crop this image"
        );
    });
})(mediaWiki, jQuery);

//OCR button
mw.loader.load( 'https://commons.wikimedia.org/w/index.php?title=User:Samwilson/GoogleOCR.js&action=raw&ctype=text/javascript' );
//<nowiki>

//vFCProfil/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFC_Profiles = {"Telge vs Älvsjö, 2018-09-08":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Telge vs Älvsjö, 2018-09-08]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":false,"mdRVar1":true,"mdMatchText1":"{{Wmse-GemenskapensProjekt|press=ja}}{{PermissionOTRS|id=%ID|user=Rolandhino1}} ==","mdReplaceText1":"=={{int:filedesc}}==","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"[[Category:Telge vs Älvsjö, 2018-09-08]]{{Wmse-GemenskapensProjekt|press=ja}}","mdReplaceText2":"[[Category:Telge vs Älvsjö, 2018-09-08]]","mdRRegEx3":false,"mdRVar3":true,"mdMatchText3":"|other versions=\n}}","mdReplaceText3":"|other versions=\n}}\n{{Wmse-GemenskapensProjekt|press=ja}}","mdRRegEx4":false,"mdRVar4":true,"mdMatchText4":"","mdReplaceText4":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Telge vs Älvsjö, 2018-09-08","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":"","cmcontinue":"file|54454c47452dc3844c56534ac3962c20323031382d30392d30382c2042494c4436342e4a5047|72586356"},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"modeSearch":false,"target":"Category:Telge vs Älvsjö, 2018-09-08","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["file|54454c47452dc3844c56534ac3962c20323031382d30392d30382c2042494c4433372e4a5047|72581989","file|54454c47452dc3844c56534ac3962c20323031382d30392d30382c2042494c4436342e4a5047|72586356"],"setVals":["cmcontinue"]},"time":"2018-09-14T07:09:23.954Z"},"Telge vs Älvsjö, 2018-09-08x":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Telge vs Älvsjö, 2018-09-08]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":false,"mdRVar1":true,"mdMatchText1":"{{Wmse-GemenskapensProjekt|press=ja}}{{PermissionOTRS|id=%ID|user=Rolandhino1}} ==","mdReplaceText1":"=={{int:filedesc}}==","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"[[Category:Telge vs Älvsjö, 2018-09-08]]{{Wmse-GemenskapensProjekt|press=ja}}","mdReplaceText2":"[[Category:Telge vs Älvsjö, 2018-09-08]]","mdRRegEx3":false,"mdRVar3":true,"mdMatchText3":"|other versions=\n}}","mdReplaceText3":"|other versions=\n}}\n{{Wmse-GemenskapensProjekt|press=ja}}","mdRRegEx4":false,"mdRVar4":true,"mdMatchText4":"","mdReplaceText4":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Telge vs Älvsjö, 2018-09-08","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":"","cmcontinue":"file|54454c47452dc3844c56534ac3962c20323031382d30392d30382c2042494c4436342e4a5047|72586356"},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"modeSearch":false,"target":"Category:Telge vs Älvsjö, 2018-09-08","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["file|54454c47452dc3844c56534ac3962c20323031382d30392d30382c2042494c4433372e4a5047|72581989","file|54454c47452dc3844c56534ac3962c20323031382d30392d30382c2042494c4436342e4a5047|72586356"],"setVals":["cmcontinue"]},"time":"2018-09-14T07:09:23.954Z"},"WMSE-GemenskapensProjekt":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"+WMSE-GemenskapensProjekt","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Melodifestivalen 2023, Lidköping]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":false,"mdRVar1":true,"mdMatchText1":"\n=={{int:license-header}}==","mdReplaceText1":"\n{{Wmse-GemenskapensProjekt|project=Melodifestivalen 2023|press=ja|teknikpool=ja}}\n\n=={{int:license-header}}==","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Melodifestivalen 2023, Lidköping","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":"","cmcontinue":"file|4d454c4f4449464553544956414c454e2032303233204c49444bc39650494e47205041554c2052415920312e4a5047|128826166"},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"modeSearch":false,"target":"Category:Melodifestivalen 2023, Lidköping","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["file|4d454c4f4449464553544956414c454e2032303233204c49444bc39650494e47204d41524355532026204d415254494e55532031352e4a5047|128843354","file|4d454c4f4449464553544956414c454e2032303233204c49444bc39650494e47205041554c2052415920312e4a5047|128826166"],"setVals":["cmcontinue"]},"time":"2023-04-03T12:38:02.218Z"}};
//////////////////////////////////vFCProfilEnd//
//</nowiki>