Thread:Ownslo/@comment-40133711-20200728031325/@comment-34585250-20200728035342

Well there is a problem with the JavaScript. It's not importantArticle. It's importArticle.

Here's the fixed JavaScript, I tested myself and it works fine:

!function( $, mw ) { var p = mw.config.get( 'wgTitle' ), a;       a = [ 'Khvarenah', 'Bahlavan', 'Nadare', 'Frederica', 'Mashyana', 'Kaikhosru', 'Aka Manah', ];       if ( a.indexOf( p ) !== -1 ) { importArticle({               type: 'style',                article: 'MediaWiki:AvestaDruj.css'            }); }   }( jQuery, mediaWiki );

Just don't forget to submit it.

Your mistake is here: importantArticle({       type: 'style',        article: 'MediaWiki:AvestaDruj.css'    });