מדיה ויקי:Gadget-Cat-a-lot.js: הבדלים בין גרסאות בדף
קפיצה לניווט
קפיצה לחיפוש
מ (גרסה אחת של הדף wikipedia:he:מדיה_ויקי:Gadget-Cat-a-lot.js יובאה) |
(ניסוי: שאיבה מהעתק מקומי של גרסה ישנה מויקישיתוף, עקב בעיות תאימות) |
||
שורה 4: | שורה 4: | ||
mw.util.addCSS("#cat_a_lot { left: inherit !important; }"); // for some reason, cat-a-lot from commons has a quirk with RLT, and this fixes it | mw.util.addCSS("#cat_a_lot { left: inherit !important; }"); // for some reason, cat-a-lot from commons has a quirk with RLT, and this fixes it | ||
mw.util.addCSS("#cat_a_lot_settings { display:none !important;}"); // preferences depend on some other gadgets,not available on hewiki, so hide linkette | mw.util.addCSS("#cat_a_lot_settings { display:none !important;}"); // preferences depend on some other gadgets,not available on hewiki, so hide linkette | ||
mw.loader.load('/ | mw.loader.load('/mediawiki/index.php?title=MediaWiki:Gadget-Cat-a-lot-custom.js&action=raw&ctype=text/javascript'); | ||
mw.loader.load('/ | mw.loader.load('/mediawiki/index.php?title=MediaWiki:Gadget-Cat-a-lot-custom.css&action=raw&ctype=text/css', 'text/css'); | ||
}); | }); | ||
} | } |
גרסה מ־16:46, 12 ביולי 2020
if ( mw.config.get( 'wgNamespaceNumber') == 14 ) {
window.catALotPrefs = { editpages: true, subcatcount: 500 };
mw.loader.using(['jquery.ui', 'mediawiki.util']).done(function(){
mw.util.addCSS("#cat_a_lot { left: inherit !important; }"); // for some reason, cat-a-lot from commons has a quirk with RLT, and this fixes it
mw.util.addCSS("#cat_a_lot_settings { display:none !important;}"); // preferences depend on some other gadgets,not available on hewiki, so hide linkette
mw.loader.load('/mediawiki/index.php?title=MediaWiki:Gadget-Cat-a-lot-custom.js&action=raw&ctype=text/javascript');
mw.loader.load('/mediawiki/index.php?title=MediaWiki:Gadget-Cat-a-lot-custom.css&action=raw&ctype=text/css', 'text/css');
});
}