מדיה ויקי:Gadget-HotCat.js: הבדלים בין גרסאות בדף

Also enable HotCat when there are no categories yet. Code from User:TheDJ, adapted by User:Lupo
On diff pages we probably don't want HotCat to be active, do we?
שורה 125: שורה 125:
       || wgNamespaceNumber == -1 && !hotcat_upload) // Special page other than Special:Upload
       || wgNamespaceNumber == -1 && !hotcat_upload) // Special page other than Special:Upload
   return;  
   return;  
 
  if (!wgIsArticle && !hotcat_upload) return;      // Diff pages...
  // Note that wgIsArticle is also set to true for category, talk, user, etc. pages: anything that
  // can be edited. It is false for diff pages, special pages, and ...


   var visible_cats =  
   var visible_cats =