User:Iiii I I I/global.js

// imports OFPoptions = {'showlinks': false}; importArticles({   type: 'script',    articles: [        'u:dev:GlobalEditcount/code.js',        'u:dev:OldFilePages/code.js',        'u:dev:NoImageLightbox/code.js',        'u:dev:QuickDiff/code.js'    ] });

$(function {

if (skin == 'oasis') {

// modify user dropdown in global navigation $('My Contributions').insertAfter('.wds-global-navigation__user-menu .wds-dropdown__content li:nth-child(2)'); $('My Followed Pages').insertAfter('.wds-global-navigation__user-menu .wds-dropdown__content li:nth-child(3)'); $('.wds-global-navigation__user-menu .wds-dropdown__content li a[data-tracking-label="account.help"]').remove;

// change link targets $('.wds-global-navigation__logo').attr('href', 'http://community.wikia.com/wiki/Special:RecentChanges'); $('.wds-community-header__wiki-buttons .wds-button[data-tracking="wiki-activity"]').attr({           href: '/wiki/Special:Insights',            title: 'Insights'        });

// disabling tracking which slows down every page submit // from User:452/global.js $("#editform").off("submit").on("submit", function {           $(window).unbind('.leaveconfirm');        });

// add links to My Tools // modified from runescape:User:Quarenon/purge.js if ((wgAction == 'view' || wgAction == 'purge') && wgCanonicalNamespace != 'Special') {

var pagename = wgArticlePath.replace('$1', wgPageName); var $nocss = $('').attr({               'href': pagename + '?useusercss=0'            }).text('Disable user CSS'); var $purge = $('').attr({               'href': pagename + '?action=purge'            }).text('Purge this page');

$('#my-tools-menu').prepend($(' ').append($nocss)); $('#my-tools-menu').prepend($(' ').append($purge));

}

}

});