User:1Veertje (KB)/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 is at User:1Veertje (KB)/common.css. |
//vFCProfil/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFC_Profiles = {"other_version":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Stirpivm insignium nobilitatis, tum etiam sodalium]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":false,"mdRVar1":true,"mdMatchText1":"|Other_versions =","mdReplaceText1":"|Other_versions =#1%PAGENAME%","mdRRegEx2":true,"mdRVar2":true,"mdMatchText2":"/#1(.+?)\\d\\d\\dv-(\\d\\d\\dr.+)/","mdReplaceText2":"{{Extracted|$1$2}}","mdRRegEx3":false,"mdRVar3":true,"mdMatchText3":"","mdReplaceText3":"","selPreserve":"placeholder","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Stirpivm insignium nobilitatis, tum etiam sodalium (openings)","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":"","cmcontinue":"file|535449525049564d20494e5349474e49554d204e4f42494c4954415449532c2054554d20455449414d20534f44414c49554d202d204b572031393030204120303230202d20313931562d313932522e4a5047|93220484"},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"modeSearch":false,"target":"Category:Stirpivm insignium nobilitatis, tum etiam sodalium (openings)","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["file|535449525049564d20494e5349474e49554d204e4f42494c4954415449532c2054554d20455449414d20534f44414c49554d202d204b572031393030204120303230202d20313931562d313932522e4a5047|93220484"],"setVals":["cmcontinue"]},"time":"2020-10-02T12:11:14.304Z"}};
//////////////////////////////////vFCProfilEnd//
//</nowiki>
//<nowiki>
importScript('User:1Veertje/filelist.js');
importScript('User:Rillke/bigChunkedUpload.js');
importScript('User:1Veertje/Tips/CatPerson.js');
importScript('User:Majora/LicenseReview.js');
importScript('User:1Veertje/categoryColor.js');
//quickly add Duplicate/GM/RM templates. Expansion to AjaxQuickDelete.
window.AjaxDeleteExtraButtons = [{
'label': 'DW',
'tag': '{'+'{copyvio|[[COM:DW|Derivative work]]}}',
'img_summary': 'This is a [[COM:DW|derivative work]]',
'talk_tag': '{'+'{subst:derivativenote|1=%FILE%}}',
'talk_summary': '%FILE% is a [[COM:DW|derivative work]]',
},
{
'label': 'Duplicate',
'tag': '{'+'{duplicate|1=%PARAMETER%|user=%USER%}}',
'img_summary': 'Tagging as duplicate of [[%PARAMETER%]]',
'prompt_text': 'Which file is this a duplicate of?'
},{
'label': 'GM',
'tag': '{'+'{Gemeentelijk monument|1=%PARAMETER%}}',
'img_summary': 'Tagging as gemeentelijk monument # %PARAMETER%',
'prompt_text': 'Gemeentelijk monument ID'
},{
'label': 'RM',
'tag': '{'+'{Rijksmonument|1=%PARAMETER%}}',
'img_summary': 'Tagging as Rijksmonument # %PARAMETER%',
'prompt_text': 'Rijksmonument ID'
},{
'label': 'War',
'tag': '{'+'{War Memorial Netherlands|1=%PARAMETER%}}',
'img_summary': 'Tagging as War Memorial Netherlands # %PARAMETER%',
'prompt_text': 'War Memorial NL ID'
}
];
//add buttons to the classic upload form
if (wgPageName == 'Special:Upload'){
$('.mw-htmlform-field-HTMLTextField').after('<tr><td></td><td>'+
'<button type="button" onclick="$(\'#wpUploadDescription\').val(\'Higher resolution acquired using the [[Dememorixer]]\')">Dememorixer</button>'+
'<button type="button" onclick="$(\'#wpUploadDescription\').val(\'Higher resolution\')">Higher resolution</button>'+
'<button type="button" onclick="$(\'#wpUploadDescription\').val(\'=={{int:filedesc}}==\\n{{Artwork\\n|wikidata=\\n|title={{en|1= }}\\n|date=\\n|medium = \\n|dimensions = \\n|institution=\\n|source=\\n|author=\\n|notes=\\n|permission=\\n|other versions=\\n}}\')">Artwork</button>'+
'</td></tr>');
}
//add user category automatically
// if ("UploadWizard" === mw.config.get('wgCanonicalSpecialPageName')) {
// mw.loader.using('ext.uploadWizard', function () {
// try {
// var autoAdd = mw.config.get('UploadWizardConfig').autoAdd;
// // Add a custom category to all my upload wizard uploads
// autoAdd.categories.push("Photographs by User:1Veertje");
// // Add a custom license tag to all my files uploaded using the sorcerer
// // autoAdd.wikitext += "{{My custom information or re-using tag}}";
// } catch (ex) {
// mw.log("Injecting user-category into UploadWizard failed.", ex);
// }
// });
// }
//vFCProfil/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFC_Profiles = {"last executed (auto-saved)":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Images from Art UK]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/http:\\/\\/www\\.bbc\\.co\\.uk\\/arts\\/yourpaintings\\/paintings\\/(.+)/","mdReplaceText1":"{{BBCYourPaintings|$1}}","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Images from Art UK","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":"","cmcontinue":"file|434841524c455320544f574e5348454e44204146544552205245594e4f4c44532e4a5047|49890231"},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"modeSearch":false,"target":"Category:Images from Art UK","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["file|434841524c455320464f535445522042415248414d2042592048454e525920545245464652592044554e4e20313836302e4a5047|35172884","file|434841524c455320544f574e5348454e44204146544552205245594e4f4c44532e4a5047|49890231"],"setVals":["cmcontinue"]},"time":"2017-12-28T23:02:08.690Z"},"putting dimensions into size template":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"putting dimensions into size template","mdReplacePermission":false,"mdDeleteHeading":"","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/\\|dimensions ?= ?([0-9.]+) ?x ?([0-9.]+) ?(m|cm|mm|mi|in|ft|yd)/g","mdReplaceText1":"|dimensions = {{Size|unit = $3|width=$1 |height = $2}}","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"1Veertje","ledir":"older","lecontinue":"20180109110525|251304245"},"startInput":{"mode":"User","modeCat":false,"modeUser":true,"modePage":false,"modeSearch":false,"target":"1Veertje","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["20180109112124|251307548","20180109110525|251304245"],"setVals":["lecontinue"]},"time":"2018-01-10T16:15:32.778Z"},"re:publica author":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Re:publica 2019]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/Die re:publica ist eine der weltweit wichtigsten Konferenzen zu den Themen der digitalen Gesellschaft und findet in diesem Jahr vom 06. bis 08. Mai in der STATION-Berlin statt. Foto: (.+)\\/re:publica\\n\\| Source = (.+)\\n\\| Date = (.+)\\n\\| Author = /","mdReplaceText1":"\n| Source = $2\n| Date = $3\n| Author = $1 / ","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Re:publica 2019","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":"","cmcontinue":"file|5245205055424c494341203139202d20444159203120283437373931313834373531292e4a5047|78774910"},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"modeSearch":false,"target":"Category:Re:publica 2019","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["file|5245205055424c494341203139202d20444159203120283437373837333130313131292e4a5047|78753692","file|5245205055424c494341203139202d20444159203120283437373931313834373531292e4a5047|78774910"],"setVals":["cmcontinue"]},"time":"2019-05-08T09:16:46.007Z"},"not-that-category":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files found with [[Special:Search/incategory:\"Photographs by Gregor Fischer\" incategory:\"Future Affairs Berlin 2019\"]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/\\| [dD]escription = \\n([^]+)\\[Category:((?!Photographs by Inge Krossøy|Nordiske Mediedager 2018).+?)([\\]|])/","mdReplaceText1":"|Description = $2\n$1[Category:$2$3","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","mdRRegEx3":false,"mdRVar3":true,"mdMatchText3":"","mdReplaceText3":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Photographs by Inge Krossøy","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":""},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"modeSearch":false,"target":"Category:Photographs by Inge Krossøy","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":[],"setVals":["cmcontinue"]},"time":"2019-06-11T09:50:16.888Z"},"Date append":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:NEXT19]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/Date\\s+=\\s*(.+)([^]+)\\[\\[Category:NEXT19/","mdReplaceText1":"Date =$1$2[[Category:NEXT19|$1","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:NEXT19","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":""},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"modeSearch":false,"target":"Category:NEXT19","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":[],"setVals":["cmcontinue"]},"time":"2019-09-27T20:18:47.948Z"},"Heinrich böll ":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Europäischer Jugendkongress 2014]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":false,"mdRVar1":true,"mdMatchText1":"Jugendkongress 2014]]","mdReplaceText1":"Jugendkongress 2014]]\n[[Category:#%PAGENAME%]]","mdRRegEx2":true,"mdRVar2":true,"mdMatchText2":"/#(Moderation |Podium v.l.n.r. )?(.+?)[,\\(].+/","mdReplaceText2":"$2]]","mdRRegEx3":false,"mdRVar3":true,"mdMatchText3":"","mdReplaceText3":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Europäischer Jugendkongress 2014","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":""},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"modeSearch":false,"target":"Category:Europäischer Jugendkongress 2014","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":[],"setVals":["cmcontinue"]},"time":"2020-03-11T05:44:53.651Z"},"title_name_append":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Europäischer Jugendkongress 2014]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":false,"mdRVar1":true,"mdMatchText1":"Gulltaggen 2013]]","mdReplaceText1":"Gulltaggen 2013]]\n[[Category:#%PAGENAME%]]","mdRRegEx2":true,"mdRVar2":true,"mdMatchText2":"/#(Moderation |Podium v.l.n.r. )?(.+?) ?[,\\(].+/","mdReplaceText2":"$2]] ","mdRRegEx3":false,"mdRVar3":true,"mdMatchText3":"","mdReplaceText3":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Gulltaggen 2013","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":""},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"modeSearch":false,"target":"Category:Gulltaggen 2013","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":[],"setVals":["cmcontinue"]},"time":"2020-03-30T18:28:25.871Z"}};
//////////////////////////////////vFCProfilEnd//
//
//catALot///////////////////////////////////////
////////// Cat-a-lot user preferences //////////
window.catALotPrefs = {"disambig_category":"Disambiguation","redir_category":"Category redirects","watchlist":"preferences","minor":false,"editpages":false,"docleanup":false,"subcatcount":50,"uncat":true,"button":true};
////////////////////////////////////catALotEnd//
//
//
//two extra edit buttons
$( '#wpTextbox1' ).on( 'wikiEditor-toolbar-doneInitialSections', function () {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'main',
group: 'insert',
tools: {
buttonId: {
label: 'Comment visible only for editors',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/c/ce/Iconfinder_category_103432.svg/25px-Iconfinder_category_103432.svg.png',
action: {
type: 'encapsulate',
options: {
pre: '[[Category:',
peri: '',
post: ']]'
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'main',
group: 'insert',
tools: {
buttonId: {
label: 'Comment visible only for editors',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/f/fe/Icons-mini-icon_airmail.gif',
action: {
type: 'encapsulate',
options: {
pre: '{{Wikidata Infobox}}',
peri: '',
post: ''
}
}
}
}
} );
if (mw.config.get('wgNamespaceNumber') == 14){
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'main',
group: 'insert',
tools: {
buttonId: {
label: 'Comment visible only for editors',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/0/04/Antu_im-user-offline.svg/25px-Antu_im-user-offline.svg.png',
action: {
type: 'encapsulate',
options: {
pre: peoplePrefill()+'[[Category:',
post: ']]'
}
}
}
}
} );
}
});
//<nowiki>
//vFCvFCCfg/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFCSettings = {"userNote":"Yours sincerely,","firstTest":0,"testEdits":0,"defaultAction":"del","watchlistUserTalk":"preferences","watchlistFiles":"preferences","watchlistReplace":"nochange","watchlistOTRS":"nochange","loadBatchSize":100,"maxSimultaneousReq":10,"summaryChacheLen":5,"loadThumbs":true,"loadWikitext":true};
//////////////////////////////////vFCvFCCfgEnd//
//</nowiki>