User:KurwaAntics/common.js

importArticles({	type: 'style',	articles: [		'u:dev:MediaWiki:TZclock.css',		'User:KurwaAntics/rail.css'	] }, {	type: 'script',	articles: [		'u:dev:TZclock.js'	] });

/* ********** Second rail ********** */ var hpwrail = window.hpwrail || 'Template:Feedrail';

$('#WikiaRailWrapper').append(' ') .prepend('Main | Feeds ');

$('#HPWrail').load('/wiki/'+ hpwrail +'?action=render');

if ( wgUserGroups.indexOf("sysop") >= 0 ) { $('#WikiaRailWrapper aside').append(''); }

$('.toggle-hpw').click(function{   if (!$(this).hasClass('active')) {        $('#WikiaRail').toggle;        $('#HPWrail').toggle;        $('#edit-rail').toggle;        $('.toggle-hpw.active').removeClass('active');        $(this).addClass('active');    } });

/* ********** GNOME launcher ********** */ $('body').prepend(''+ ''+ ''+ '<img src="http://icons.iconarchive.com/icons/emey87/trainee/48/System-icon.png"></li>'+ '<li id="gnome-search"><img src="http://icons.iconarchive.com/icons/emey87/trainee/48/Zoom-icon.png"></li>'+ '</ul>'); /* if ($('#ca-edit').length === 0){ $('#gnome-edit').hide; }

if ($('body').hasClass('editor') === false) { $('#gnome-save').hide; }*/

$('#gnome-edit').on('click',function{   window.location = $('#ca-edit').attr('href'); });

$('#gnome-save').on('click',function{   $('#wpSave').click; });

$('#gnome-prefs').on('click',function{   window.location = '/wiki/Special:Preferences'; });

$('#gnome-search').on('click',function{   window.location = '/wiki/Special:Search'; });