User:KurwaAntics/global.js

window.ajaxPages = ["Special:WikiActivity"]; window.ajaxRefresh = 30000;

/* ********** Load scripts ********** */ importArticles({   type: "script",    articles: [        "u:dev:Wikimarks/code.js",        //"u:dev:RelocateEditDiscussionButtons/code.js",        "u:dev:RevealAnonIP/usercode.js",        "u:dev:DisplayClock/code.js",        "u:dev:AjaxRC/code.js",        "u:dev:FindAndReplace/code.js",        "u:dev:View_Source/code.js",        "u:dev:SkinSwitchButton/code.js"    ] });

/* ********** Admin tools ********** */ if ( wgUserGroups.indexOf("sysop") >= 0 ) { window.AjaxBlock = { expiryTimes: { '1 day': '1 day', '1 weeks': '1 week', '1 month': '1 month', '1 year': '1 year', 'infinite': 'Fegel-grounded' },       blockReasons: { 'w:Help:Vandalism': 'Vandalism', 'w:Help:Spam': 'Spam', 'Haris18 worse than Fegelein': 'Haris18' },       check: { creation: true, talk: false, autoBlock: true, override: true }   };    WHAMDelay = 500; importArticles({       type: "script",        articles: [            "u:dev:AjaxUndo/code.js",            "u:dev:AjaxBlock/code.js",            "u:dev:AjaxDelete/code.js",            "u:dev:MarkBlocked.js",            "u:dev:WHAM/code.2.js",            "u:dev:AbuseLogRC.js"        ]    }); }

/* ********** Wikimarks ********** */ if ( wgUserGroups.indexOf("sysop") < 0 ) { mw.util.addCSS('.admin-only { display: none; }'); }

/* ********** Google ********** *//* $('Search on Google').insertAfter('#search-v2-button');

function googlesearch { window.open('https://www.google.com.hk/search?q=' + $('#search-v2-input').val + '+site:' + window.location.hostname,'_blank'); }*/

$('#WikiaPageHeader .wikia-menu-button, .wikia-button.comments.secondary, .wikia-button.comments.secondary.talk').insertAfter('.header-title h1').css('display','inline-block'); $('#WikiaPageHeader .wikia-menu-button').css('margin-right','0.75em', 'important');