User:Flominator/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:Flominator/monobook.css. |
alert_no_cat = true;
importScript('MediaWiki:Gadget-ChooseResolution.js');
importScript ( 'MediaWiki:Gadget-Gallerypreview.js' );
importScript ( 'MediaWiki:ResizeGalleries.js' );
importScript ( 'User:Magog the Ogre/cleanup.js' );
/*hotcat_no_autocommit=1;*/
importScript ( 'MediaWiki:Gadget-HotCat.js' );
importScript('MediaWiki:Gadget-ImageAnnotator.js');
importScript ( 'MediaWiki:Gadget-Cat-a-lot.js' );
importScript ( 'MediaWiki:Check-usage.js' );
importScript ('MediaWiki:Gadget-Flickrfixr.js');
importScript ('MediaWiki:Catfood.js');
/*importScript (' MediaWiki:MyLangNotify.js' );*/
importScript ('User:Flominator/flos functions.js');
mw.loader.load('//tools.wmflabs.org/imagemapedit/ime_loader.js');
$(document).bind('loadWikiScript', function (e, name) {
if (name == 'User:Flominator/flos functions.js') {
insert_link_before("li", "pt-mycontris", '<a href="http://commons.wikimedia.org/wiki/User:' + wgUserName + '/gallery">my gallery</a>');
replace_stuff();
show_infobox();
if(wgPageName == "Special:Upload")
{
document.forms[0].wpIgnoreWarning.checked=true;
}
if(wgNamespaceNumber == 6)
{
if(wgAction=="edit")
{
mark_as_minor_edit(true);
//if(hotcat_running!=true)
{
add_what_is_it();
}
}
else
{
lookForDupes();
}
categories_to_the_end();
//check_for_categories ();
}
document.getElementById("n-uploadbtn").firstChild.href="http://commons.wikimedia.org/w/index.php?title=Special:Upload&uploadformstyle=basic#";
document.getElementById("ca-move").firstChild.href="//commons.wikimedia.org/wiki/Special:MovePage/"+wgPageName;
}
});