User:ThePsionic/global.js

importArticles({ type: 'script',  articles: [    'u:runescape:MediaWiki:Updates.js',    'u:runescape:User:Suppa chuppa/hybrid.js',    'u:runescape:User:Quarenon/rcrollback.js',    'u:dev:AjaxRedirect/code.js',    'u:dev:NullEditButton/code.js',    "u:dev:ContribsLink/code.js",    'u:dev:RelocateEditDiscussionButtons/code.js',    'u:dev:OldFilePages/code.js'  ] }); // Fix the sidebar link addOnloadHook(function {  $('[title="Special:WikiActivity"]').attr('href', '/wiki/Special:RecentChanges?days=7&limit=250&hideenhanced=1');  $('[accesskey="r"]').attr('href', '/wiki/Special:RecentChanges?days=7&limit=250&hideenhanced=1') }); // Switch WikiActivity to RecentChanges function WikiActivity2RecentChanges { $('[data-canonical="wikiactivity"]').attr('href', '/wiki/Special:RecentChanges?days=7&limit=250&hideenhanced=1'); $('[data-canonical="wikiactivity"]').text('RecentChanges'); } // Switch NewFiles to personal userspace function NewFiles2Me { $('[data-canonical="newfiles"]').attr('href', '/wiki/User:ThePsionic'); $('[data-canonical="newfiles"]').attr('style', 'color:#FFF !important'); $('[data-canonical="newfiles"]').text('Userspace'); } // Switch Chat to personal talk page function Chat2Talk { $('[data-canonical="chat"]').attr('href', '/wiki/User_talk:ThePsionic'); $('[data-canonical="chat"]').attr('style', 'color:#FFF !important'); $('[data-canonical="chat"]').text('Talk page'); } // Hide AboutUs and Policies function HideAboutUs { $('.firstChild > li:nth-child(5) > a:nth-child(1)').remove; } function HidePolicies { $('.firstChild > li:nth-child(6) > a:nth-child(1)').remove; } addOnloadHook(WikiActivity2RecentChanges); addOnloadHook(NewFiles2Me); addOnloadHook(Chat2Talk); addOnloadHook(HideAboutUs); addOnloadHook(HidePolicies); /* Kills the visual editor link */ addOnloadHook(function {  $('.WikiaMenuElement li a').each(function  { if ($(this).attr('href').indexOf('veaction') !== - 1) { $(this).remove; } }); });