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

$(function {

if (skin == 'oasis') {

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

// change target of Wikia logo in global navigation $("a.wds-global-navigation__logo[href='http://fandom.wikia.com']").attr('href', 'http://community.wikia.com/wiki/Special:RecentChanges');

// 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',                'title': 'Disable your local and global CSS.'            }).text('Disable user CSS'); var $purge = $('').attr({               'href': pagename + '?action=purge',                'title': 'Clear the server cache of this page.'            }).text('Purge this page');

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

}

}

});