User:Hjart/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:Hjart/common.css. |
window.HotCatAutoRemoveCheckCat = true;
/* Adds a button to the edit window toolbar which will insert a {{Geogroup|level=1}} */
var customizeToolbar = function () {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'main',
'groups': {
'mine': {
'label': 'mine'
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'main',
group: 'mine',
tools: {
"Geogroup": {
label: 'Geogroup',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/7/74/Earth_icon2.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Geogroup|level=1}}",
ownline: true
}
}
}
}
} );
};
/* Check if view is in edit mode and that the required modules are available. Then, customize the toolbar … */
if ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 ) {
mw.loader.using( 'user.options' ).then( function () {
// This can be the string "0" if the user disabled the preference ([[phab:T54542#555387]])
if ( mw.user.options.get( 'usebetatoolbar' ) == 1 ) {
$.when(
mw.loader.using( 'ext.wikiEditor' ), $.ready
).then( customizeToolbar );
}
} );
}
//<nowiki>
//vFCvFCCfg/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFCSettings = {"userNote":"Yours sincerely,","firstTest":0,"testEdits":0,"defaultAction":"c_replace","watchlistUserTalk":"preferences","watchlistFiles":"preferences","watchlistReplace":"nochange","watchlistOTRS":"nochange","loadBatchSize":30,"maxSimultaneousReq":5,"summaryChacheLen":5,"loadThumbs":true,"loadWikitext":true};
//////////////////////////////////vFCvFCCfgEnd//
//</nowiki>
//<nowiki>
//vFCProfil/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFC_Profiles = {"Protected areas of Sweden":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files uploaded by [[User:ClausNe|ClausNe]] ([[User talk:ClausNe|talk]] · [[Special:Contributions/ClausNe|contribs]])","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/[[Category:Protected areas of Sweden]]/","mdReplaceText1":"[[Category:Ottenby naturreservat]]","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Sommar2022","ledir":"older","lecontinue":"20220531163920|325117077"},"startInput":{"mode":"User","modeCat":false,"modeUser":true,"modePage":false,"modeSearch":false,"target":"Sommar2022","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["20220531205705|325130850","20220531163920|325117077"],"setVals":["lecontinue"]},"time":"2022-06-04T16:26:05.875Z"},"Busser":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files uploaded by [[User:Erobran|Erobran]] ([[User talk:Erobran|talk]] · [[Special:Contributions/Erobran|contribs]])","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/[[Category:Bus]]/","mdReplaceText1":"[[Category:Buses in Køge]]","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Erobran","ledir":"older","lecontinue":"20220112180632|320594850"},"startInput":{"mode":"User","modeCat":false,"modeUser":true,"modePage":false,"modeSearch":false,"target":"Erobran","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["20220416214630|323493865","20220112180632|320594850"],"setVals":["lecontinue"]},"time":"2022-07-09T10:58:42.243Z"}};
//////////////////////////////////vFCProfilEnd//
//</nowiki>
importScript("User:Waggers/degrandparent.js");
//<nowiki>
//catALot///////////////////////////////////////
////////// Cat-a-lot user preferences //////////
window.catALotPrefs = {"disambig_category":"Disambiguation","redir_category":"Category redirects","watchlist":"preferences","minor":false,"editpages":true,"docleanup":false,"subcatcount":50,"uncat":true,"button":true};
////////////////////////////////////catALotEnd//
//</nowiki>