User:Trevor MacInnis/public/pagecss.js

//Perpage CSS and JS script by TheFearow // Includes MediaWiki:common.css/PAGENAME and MediaWiki:common.js/PAGENAME as well as a skin dependent one. // Since it's in MediaWiki space, its fully protected. Code here is only loaded for the respective page, so stops excess bloating of the global common.js/css and the skin ones.

// Config // Uncomment the below line (remove the //) and comment the line below it (add // at the start) to make it use the admin only version (done) var pagecss_base = "MediaWiki:"; //var pagecss_base = "User:TheFearow/pagecss/"; // End Config

//Common importStylesheet(pagecss_base+"common.css/" + wgPageName); importScript(pagecss_base+"common.js/" + wgPageName); //Per skin importStylesheet(pagecss_base + skin + ".css/" + wgPageName); importScript(pagecss_base + skin + ".js/" + wgPageName);

//End perpage CSS and JS script