User:Lupo/c2.js
← Older revision
Revision as of 06:45, 26 March 2013
Line 113:
Line 113:
function () { // Return true to disable HotCat. HotCat guarantees that the wg* globals exist here.
function () { // Return true to disable HotCat. HotCat guarantees that the wg* globals exist here.
var ns = wgNamespaceNumber;
var ns = wgNamespaceNumber;
−
return ( ns < 0 // Special pages; Special:Upload is handled differently
+
return ( ns < 0 // Special pages; Special:Upload is handled differently
−
|| ns === 10 // Templates
+
|| ns === 10 // Templates
−
|| ns === 8 // MediaWiki
+
|| ns === 828 // Module (LUA)
+
|| ns === 8 // MediaWiki
|| ns === 6 && wgArticleId === 0 // Non-existing file pages
|| ns === 6 && wgArticleId === 0 // Non-existing file pages
|| ns === 2 && /\.(js|css)$/.test(wgTitle) // User scripts
|| ns === 2 && /\.(js|css)$/.test(wgTitle) // User scripts
http://commons.wikimedia.org/w/index.php?title=User:Lupo/c2.js&diff=93291805&oldid=93041382