User:KurwaAntics/global.js

importArticles({   type: "script",    articles: [        "w:c:dev:DisplayClock/code.js",        "w:c:dev:ReferencePopups/code.js",        "w:c:dev:FindAndReplace/code.js",        "w:c:dev:RevealAnonIP/usercode.js",        //"w:c:dev:YouTubeModal/code.js",        "w:c:dev:RelocateEditDiscussionButtons/code.js",        "w:c:dev:View_Source/code.js"    ] });

var body = $('body');

mw.util.addCSS('#findfielddiv { overflow-y: auto; }');

function editscriptmodal { $.showCustomModal('Edit scripts',    'JavaScript '+    'This Wiki'+    'Personal'+    'Global'+    'List of imports</a></li>'+    '<a href="/wiki/Special:JSPages">Review status</a></li>'+    '</ul>'+    '<h2 style="margin: 1em 0 0.5em 0">CSS <ul style="list-style-type: square; list-style-position: inside; font-size: 14px; line-height: 175%">'+    '<a href="/wiki/MediaWiki:Wikia.css?action=edit">This Wiki</a></li>'+    '<a href="/wiki/User:Yhynerson1/wikia.css?action=edit">Personal</a></li>'+ '<a href="http://community.wikia.com/wiki/User:Yhynerson1/global.css?action=edit">Global</a></li>'+ '</ul>', { width: 200 }); } /*function shownotifications {   $.showCustomModal('Notifications', ' ', { width: 400 });    $('.WallNotifications').clone.appendTo('.show-notifications').css({"position":"inherit","width":"400px"}).show; }*/

$('.toolbar .tools').append(' '+ '  '+ '<a href="#">User</a>'+ '<ul id="my-user-menu" class="tools-menu" style="right: auto; display: none;">'+ ' <a href="' + $('a[data-id="userpage"]').attr('href') + '">My user page</a></li>'+ ' <a href="' + $('a[data-id="mytalk"]').attr('href') + '">' + $('a[data-id="mytalk"]').text + '</a></li>'+ ' <a href="/wiki/Special:Preferences">My preferences</a></li>'+ ' <a href="/wiki/Special:Contact/general">Contact Wikia</a></li>'+ '</ul></li>'+ '<a style="cursor:pointer" onclick="editscriptmodal">Edit scripts</a></li>'+ //'<a href="#" onclick="shownotifications">Notifications</a></li>'+ '<a href="/wiki/Special:Search">Search</a></li>');

/*$("#WikiaArticle a.image").each(function{       $(this).attr('href',$(this).attr('href').split('/revision')[0]);        $(this).children("img").attr('src',$(this).children("img").attr('src').split('/revision')[0]); });*/

console.log('global.js loaded.');