|
|
שורה 229: |
שורה 229: |
| 'zxy': 'zxy' | | 'zxy': 'zxy' |
| }; | | }; |
|
| |
| // this gadget wipes the "title" attribute of links. however, Gadget cat-a-lot depends on the "title" attribute.
| |
| // so if we are in category space (14), and if this user also uses cat-a-lot,
| |
| // turn off the title-wiping behavior by setting global variable "removeTitles" to false.
| |
| // as explained in cat-a-lot talk page: http://commons.wikimedia.org/wiki/MediaWiki_talk:Gadget-Cat-a-lot.js
| |
| if (mw.config.get('wgNamespaceNumber') == 14)
| |
| mw.loader.using('mediawiki.user', function(){
| |
| if (mw.user.options.get('gadget-Cat-a-lot'))
| |
| window.removeTitles = false;
| |
| });
| |
|
| |
|
| |
| mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-navpop.css&action=raw&ctype=text/css', "text/css");
| |
| mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=text/javascript');
| |