User:KurwaAntics/global.js

/* ********** Load scripts ********** */ importArticles({   type: "script",    articles: [        "u:dev:RelocateEditDiscussionButtons/code.js",        "u:dev:DisplayClock/code.js",        "u:dev:FindAndReplace/code.js",        "u:dev:View_Source/code.js",        "u:dev:Wikimarks/code.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'); }

/* ********** MySidebar ********** */ var sidebartitle = window.mySidebarTitle || 'My sidebar'; $('#WikiaRailWrapper').prepend('Edit '+sidebartitle+' '); $('#my-sidebar > div').load('/wiki/User:'+wgUserName+'/MySidebar?action=render');