User:Lenhi/common.js

$(function { if ( wgNamespaceNumber == 6 && !$('.categories').hasClass('ui-sortable')) { $('.tabBody.selected').css('padding-right', '0'); $('.WikiaArticle .mw-upload-links-box').after( 'User files ' ); $('#user-files').click(function { $('#CategorySelectAdd').click; setTimeout(function { $('#CategorySelectInput').val('User files').trigger(jQuery.Event('keydown', {which: 13})); setTimeout(function { }, 500); }, 500); }); } }); $(function { if ( wgNamespaceNumber == 6 && !$('.categories').hasClass('ui-sortable')) { $('.tabBody.selected').css('padding-right', '0'); $('.WikiaArticle .mw-upload-links-box').after( 'Gallery files ' ); $('#gallery-files').click(function { $('#CategorySelectAdd').click; setTimeout(function { $('#CategorySelectInput').val('Gallery files').trigger(jQuery.Event('keydown', {which: 13})); setTimeout(function { }, 500); }, 500); }); } }); $(function { if ( wgNamespaceNumber == 6 && !$('.categories').hasClass('ui-sortable')) { $('.tabBody.selected').css('padding-right', '0'); $('.WikiaArticle .mw-upload-links-box').after( 'Steven Universe images ' ); $('#steven-universe-images').click(function { $('#CategorySelectAdd').click; setTimeout(function { $('#CategorySelectInput').val('Steven Universe images').trigger(jQuery.Event('keydown', {which: 13})); setTimeout(function { }, 500); }, 500); }); } }); $(function { if ( wgNamespaceNumber == 6 && !$('.categories').hasClass('ui-sortable')) { $('.tabBody.selected').css('padding-right', '0'); $('.WikiaArticle .mw-upload-links-box').after( 'Kiki Pizza images ' ); $('#pearl-images').click(function { $('#CategorySelectAdd').click; setTimeout(function { $('#CategorySelectInput').val('Kiki Pizza images').trigger(jQuery.Event('keydown', {which: 13})); setTimeout(function { }, 500); }, 500); }); } }); $(function { if ( wgNamespaceNumber == 6 && !$('.categories').hasClass('ui-sortable')) { $('.tabBody.selected').css('padding-right', '0'); $('.WikiaArticle .mw-upload-links-box').after( 'Jenny Pizza images ' ); $('#amethyst-images').click(function { $('#CategorySelectAdd').click; setTimeout(function { $('#CategorySelectInput').val('Jenny Pizza images').trigger(jQuery.Event('keydown', {which: 13})); setTimeout(function { }, 500); }, 500); }); } });