User:KurwaAntics/global.js

// AjaxRC settings // window.ajaxPages = ["Special:RecentChanges","Special:Log","Special:WikiActivity"];

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

// Full resolution images // $("img").click(function(e) {   if ( e.shiftKey ) {        var src = $(this).attr("src").split("/scale-to-width-down", 1);        $(this).attr("src", src).css({"max-width": "100%"});        event.preventDefault;        return false;    } });

if ( $("#file img").length > 0 ) { var src = $("#file img").attr("src").split("/scale-to-width-down", 1); $("#file img").attr("src", src); }

// Custom toolbar menus // $('.toolbar .tools').append(' '+ ' User'+ ''+ 'My user page'+ '' + $('a[data-id="mytalk"]').text + ''+ 'My preferences'+ '<a href="/wiki/Special:Contact/general">Contact Wikia</a></li>'+ '</ul></li>'+ ' '+ '<a style="cursor:pointer"> Edit JS</a>'+ '<ul id="my-user-menu" class="tools-menu" style="right: auto; display: none;">'+ '<a href="/wiki/MediaWiki:Common.js?action=edit" target="_blank">This Wiki</a></li>'+   '<a href="/wiki/User:Yhynerson1/common.js?action=edit" target="_blank">Personal</a></li>'+    '<a href="http://community.wikia.com/wiki/User:Yhynerson1/global.js?action=edit" target="_blank">Global</a></li>'+ '<a href="/wiki/MediaWiki:ImportJS?action=edit" target="_blank">List of imports</a></li>'+ '<a href="/wiki/Special:JSPages" target="_blank">Review status</a></li>'+ '</ul></li>'+ ' '+ '<a style="cursor:pointer"> Edit CSS</a>'+ '<ul id="my-user-menu" class="tools-menu" style="right: auto; display: none;">'+ '<a href="/wiki/MediaWiki:Wikia.css?action=edit" target="_blank">This Wiki</a></li>'+ '<a href="/wiki/User:Yhynerson1/wikia.css?action=edit" target="_blank">Personal</a></li>'+ '<a href="http://community.wikia.com/wiki/User:Yhynerson1/global.css?action=edit" target="_blank">Global</a></li>'+ '</ul></li>'+ '<a href="/wiki/Special:Search"> Search</a></li>');

if ( wgUserGroups.indexOf("sysop") < 0 ) { $(".admin-only").remove; }

// Ctrl+S to save page // $(document).keydown(function(event) {       if((event.ctrlKey || event.metaKey) && event.which == 83) {            $('#wpSave').click;            event.preventDefault;            return false;        }    } );

// Case redirect // if ( $('.noarticletext .mw-headline a').length > 0 ) { window.location = $('.noarticletext .mw-headline a').attr('href'); }

// Page load completion indicator // $(window).bind("load", function {  console.log('Everything is ready');   $('#WikiaBar .toolbar').append('  Ready '); });

window.wgEnableLightboxExt = false;