Board Thread:Script Suggestions/@comment-36292647-20180723213816/@comment-27958705-20180723221435

Llanunall Thread:19018 1. How do I determine that I am on a story page and not a user page   u can filter pages by wgNamespaceNumber: main namespace is 0. use wgNamespaceIds to see all ids available on the wiki. Llanunall Thread:19018 2. How do I add CSS to a page with Javascript   importarticles or mw.util.addCSS. i'd suggest 1st one: load styles, then just turn on/off classes via js.