User:KurwaAntics/global.js

/* ********** 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: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'); }