משתמש אלמוני
←using [[mw:CodeEditor|CodeEditor]]: פתרון דחוק לקונפליקט בין שני גאדג'טים - פופאפ ו-Cat-a-lot
(לש"פ) |
(←using [[mw:CodeEditor|CodeEditor]]: פתרון דחוק לקונפליקט בין שני גאדג'טים - פופאפ ו-Cat-a-lot) |
||
שורה 228: | שורה 228: | ||
'zxy': 'zxy' | 'zxy': 'zxy' | ||
}; | }; | ||
// this gadget wipes the "title" attribute of links. however, cat-a-lot depends on it. | |||
// so if we are in category space (14), and if this user also uses cat-a-lot, | |||
// we turn off the title-wiping behavior of gadget-popup by setting global variable "removeTitles" to false. | |||
// as explained in commons, in cat-a-lot talk page: http://commons.wikimedia.org/wiki/MediaWiki_talk:Gadget-Cat-a-lot.js | |||
if (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-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=javascript'); | mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=javascript'); |