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"    ] });

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

function editjsmodal { $.showCustomModal('Edit JS', 'Here you can quickly access and edit JavaScript files.', {       width: 500,        buttons: [{            message: 'This Wiki',            defaultButton: true,            handler: function  {                 window.location = "/wiki/MediaWiki:Common.js?action=edit";            }	        }, {            message: 'Personal',            defaultButton: true,            handler: function  {                 window.location = "/wiki/User:Yhynerson1/common.js?action=edit";            }	        }, {            message: 'Global',            defaultButton: true,            handler: function  {                 window.location = "http://community.wikia.com/wiki/User:Yhynerson1/global.js?action=edit";            }	        }, {            message: 'List of imports',            defaultButton: true,            handler: function  {                 window.location = "/wiki/MediaWiki:ImportJS?action=edit"; }	       }, {            message: 'Review status', defaultButton: true, handler: function { window.location = "/wiki/Special:JSPages"; }	       }]    }); }

function editcssmodal { $.showCustomModal('Edit CSS', 'Here you can quickly access and edit CSS files.', {       width: 400,        buttons: [{            message: 'This Wiki',            defaultButton: true,            handler: function  {                 window.location = "/wiki/MediaWiki:Wikia.css?action=edit";            }	        }, {            message: 'Personal',            defaultButton: true,            handler: function  {                 window.location = "/wiki/User:Yhynerson1/wikia.css?action=edit";            }	        }, {            message: 'Global',            defaultButton: true,            handler: function  {                 window.location = "http://community.wikia.com/wiki/User:Yhynerson1/global.css?action=edit";            }	        }]    }); }

/*function shownotifications { $.showCustomModal('Notifications', ' ', { width: 400 }); $('.WallNotifications').clone.appendTo('.show-notifications').css({"position":"inherit","width":"400px"}).show; }*/

$('.toolbar .tools').append('Edit JS'+ 'Edit CSS'+ //'Notifications'+ 'Search');

$(".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.');