User:RyaNayR/global.js

/* ChatRefresh

By IAmAPersson ( http://community.wikia.com/wiki/User:IAmAPersson ) Original release date: January 20, 2014

console.log('ChatRefresh: Init.'); if (refreshTime === 0) { var refreshTime = 300000; console.log('ChatRefresh: Setting refreshTime = 300000'); }

if (wgCanonicalSpecialPageName === 'Chat') { console.log('ChatRefresh: Chat namespace detected.'); setInterval(       function {            console.log('ChatRefresh: Attempting to clear chat window.');            active.clearWindow;        }, refreshTime    ); }

/********************/

function togglePageWidth { var tpwCSS = mw.util.addCSS('.WikiaHeader .page-width-container, .WikiaPage { margin: 0; }'); tpwCSS.disabled = !tpwCSS.disabled; }

$('#WikiaBarWrapper .toolbar > .tools').append('Toggle Page Width');

/********************/

importArticles({   type: 'script',    articles: [        'u:community:User:RyaNayR/CustomToolbarToggle.js',        //'u:community:User:RyaNayR/Code/code.js',        'u:dev:Code/code.js',        //'u:dev:MiniComplete/code.js',        'u:dev:AutoEditDropdown/code.js',        //'u:dev:QuickTools/advanced.js',        //'u:dev:ListFiles/code.js',        'u:dev:QQX/code.js',        'u:dev:PortableCSSPad/code.js',        'u:dev:View_Source/code.js',        'u:dev:HeaderLinks/code.js'    ] });