User:Marcus Cyron/vector.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:Marcus Cyron/vector.css. |
/* <source lang="javascript"> Top of MediaWiki:Vector.js */
/* Anything that should be executed after the page and jQuery are loaded in this block */
$(document).ready(function () {
//
// Change target of add-section links
// See Template:ChangeSectionLink
//
var $changeAddSection = $('#jsChangeAddSection');
if ($changeAddSection) {
var $addSection = $('#ca-addsection');
if ($addSection.length) {
$addSection.eq(0).attr('href', mw.config.get('wgScript') + '?action=edit§ion=new&title=' + encodeURIComponent(
$changeAddSection.attr('title')));
}
}
// MediaWiki doesn't support <noscript>
// Hide with JavaScript the other way arround by using class="noscript"
$('.noscript').hide();
// Untill the bug is fixed to hide the License-dropdown on Reuploads this fix:
if (getParamValue('wpDestFile') !== null && getParamValue('wpForReUpload') === "1") {
$('tr.mw-htmlform-field-Licenses').hide();
}
}); /* end of jQuery-document-ready */
//
// Wikiminiatlas for commons
//
if (mw.config.get('wgServer') == "https://secure.wikimedia.org") {
var metaBase = "https://secure.wikimedia.org/wikipedia/meta";
} else {
var metaBase = "http://meta.wikimedia.org";
}
mw.loader.load(metaBase + '/w/index.php?title=MediaWiki:Wikiminiatlas.js' + '&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400');
//
// Add ResizeGalleries script ([[MediaWiki talk:ResizeGalleries.js]])
//
importScript('MediaWiki:ResizeGalleries.js');
//Add a link to a RSS feed for each category page, in the toolbox.
importScript('MediaWiki:Catfood.js');
// Attribution buttons
importScript('MediaWiki:Stockphoto.js');
/* Bottom of MediaWiki:Vector.js </source> */
//<nowiki>
//catALot///////////////////////////////////////
////////// Cat-a-lot user preferences //////////
window.catALotPrefs = {"watchlist":"preferences","minor":false,"editpages":true,"docleanup":true,"subcatcount":20};
////////////////////////////////////catALotEnd//
//</nowiki>
//<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":1000,"maxSimultaneousReq":10,"summaryChacheLen":5,"loadThumbs":true,"loadWikitext":true};
//////////////////////////////////vFCvFCCfgEnd//
//</nowiki>