Categorising Script

//

```
/\* Other files/Gallery files button \*/
$(function() {
 if (wgNamespaceNumber == 6 && !$('.categories').hasClass('ui-sortable')) {
 $('.wikinav2 .WikiaPageHeader').css('padding-right', '0');
 $('#WikiaPageHeader .comments').after(
 '<button class="wikia-button" id="other-files" title="Add Other files">Other files</button>'
 );
 $('#other-files').click(function() {
 $('#CategorySelectAdd').click();
 setTimeout(function() {
 $('#CategorySelectInput').val('Other files').trigger(jQuery.Event('keydown', {
 which: 13
 }));
 setTimeout(function() {
 $('#CategorySelectSave').click();
 }, 500);
 }, 500);
 });
 }
});

$(function() {
 if (wgNamespaceNumber == 6 && !$('.categories').hasClass('ui-sortable')) {
 $('.wikinav2 .WikiaPageHeader').css('padding-right', '0');
 $('#WikiaPageHeader .comments').after(
 '<button class="wikia-button" id="gallery-files" title="Add Gallery files">Gallery files</button>'
 );
 $('#gallery-files').click(function() {
 $('#CategorySelectAdd').click();
 setTimeout(function() {
 $('#CategorySelectInput').val('Gallery files').trigger(jQuery.Event('keydown', {
 which: 13
 }));
 setTimeout(function() {
 $('#CategorySelectSave').click();
 }, 500);
 }, 500);
 });
 }
});

/\* My Buttons \*/
$(function() {
 if (wgNamespaceNumber == 6 && !$('.categories').hasClass('ui-sortable')) {
 $('.tabBody.selected').css('padding-right', '0');
 $('.WikiaArticle .mw-upload-links-box').after(
 '<button class="wikia-button" id="ash-roller-images" title="Add Ash Roller images">Ash Roller images</button>'
 );
 $('#ash-roller-images').click(function() {
 $('#CategorySelectAdd').click();
 setTimeout(function() {
 $('#CategorySelectInput').val('Ash Roller 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(
 '<button class="wikia-button" id="sky-raker-images" title="Add Sky Raker images">Sky Raker images</button>'
 );
 $('#sky-raker-images').click(function() {
 $('#CategorySelectAdd').click();
 setTimeout(function() {
 $('#CategorySelectInput').val('Sky Raker 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(
 '<button class="wikia-button" id="aqua-current-images" title="Add Aqua Current images">Aqua Current images</button>'
 );
 $('#aqua-current-images').click(function() {
 $('#CategorySelectAdd').click();
 setTimeout(function() {
 $('#CategorySelectInput').val('Aqua Current 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(
 '<button class="wikia-button" id="blood-leopard-images" title="Add Blood Leopard images">Blood Leopard images</button>'
 );
 $('#blood-leopard-images').click(function() {
 $('#CategorySelectAdd').click();
 setTimeout(function() {
 $('#CategorySelectInput').val('Blood Leopard 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(
 '<button class="wikia-button" id="scarlet-rain-images" title="Add Scarlet Rain images">Scarlet Rain images</button>'
 );
 $('#scarlet-rain-images').click(function() {
 $('#CategorySelectAdd').click();
 setTimeout(function() {
 $('#CategorySelectInput').val('Scarlet Rain 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(
 '<button class="wikia-button" id="lime-bell-images" title="Add Lime Bell images">Lime Bell images</button>'
 );
 $('#lime-bell-images').click(function() {
 $('#CategorySelectAdd').click();
 setTimeout(function() {
 $('#CategorySelectInput').val('Lime Bell 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(
 '<button class="wikia-button" id="cyan-pile-images" title="Add Cyan Pile images">Cyan Pile images</button>'
 );
 $('#cyan-pile-images').click(function() {
 $('#CategorySelectAdd').click();
 setTimeout(function() {
 $('#CategorySelectInput').val('Cyan Pile 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(
 '<button class="wikia-button" id="black-lotus-images" title="Add Black Lotus images">Black Lotus images</button>'
 );
 $('#black-lotus-images').click(function() {
 $('#CategorySelectAdd').click();
 setTimeout(function() {
 $('#CategorySelectInput').val('Black Lotus 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(
 '<button class="wikia-button" id="silver-crow-images" title="Add Silver Crow images">Silver Crow images</button>'
 );
 $('#silver-crow-images').click(function() {
 $('#CategorySelectAdd').click();
 setTimeout(function() {
 $('#CategorySelectInput').val('Silver Crow images').trigger(jQuery.Event('keydown', {
 which: 13
 }));
 setTimeout(function() {}, 500);
 }, 500);
 });
 }
});

$('.WikiaArticle .mw-upload-links-box').after(
 '<hr />'
);

$(function() {
 if (wgNamespaceNumber == 6 && !$('.categories').hasClass('ui-sortable')) {
 $('.tabBody.selected').css('padding-right', '0');
 $('.WikiaArticle .mw-upload-links-box').after(
 '<button class="wikia-button" id="fuuko-kurasaki-images" title="Add Fuuko Kurasaki images">Fuuko Kurasaki images</button>'
 );
 $('#fuuko-kurasaki-images').click(function() {
 $('#CategorySelectAdd').click();
 setTimeout(function() {
 $('#CategorySelectInput').val('Fuuko Kurasaki 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(
 '<button class="wikia-button" id="akira-himi-images" title="Add Akira Himi images">Akira Himi images</button>'
 );
 $('#akira-himi-images').click(function() {
 $('#CategorySelectAdd').click();
 setTimeout(function() {
 $('#CategorySelectInput').val('Akira Himi 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(
 '<button class="wikia-button" id="mihaya-kakei -images" title="Add Mihaya Kakei images">Mihaya Kakei images</button>'
 );
 $('#mihaya-kakei -images').click(function() {
 $('#CategorySelectAdd').click();
 setTimeout(function() {
 $('#CategorySelectInput').val('Mihaya Kakei 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(
 '<button class="wikia-button" id="yuniko-kōzuki-images" title="Add Yuniko Kōzuki images">Yuniko Kōzuki images</button>'
 );
 $('#yuniko-kōzuki-images').click(function() {
 $('#CategorySelectAdd').click();
 setTimeout(function() {
 $('#CategorySelectInput').val('Yuniko Kōzuki 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(
 '<button class="wikia-button" id="araya-images" title="Add Araya images">Araya images</button>'
 );
 $('#araya-images').click(function() {
 $('#CategorySelectAdd').click();
 setTimeout(function() {
 $('#CategorySelectInput').val('Araya 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(
 '<button class="wikia-button" id="takumu-mayuzumi-images" title="Add Takumu Mayuzumi images">Takumu Mayuzumi images</button>'
 );
 $('#takumu-mayuzumi-images').click(function() {
 $('#CategorySelectAdd').click();
 setTimeout(function() {
 $('#CategorySelectInput').val('Takumu Mayuzumi 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(
 '<button class="wikia-button" id="chiyuri-kurashima-images" title="Add Chiyuri Kurashima images">Chiyuri Kurashima images</button>'
 );
 $('#chiyuri-kurashima-images').click(function() {
 $('#CategorySelectAdd').click();
 setTimeout(function() {
 $('#CategorySelectInput').val('Chiyuri Kurashima 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(
 '<button class="wikia-button" id="kuroyukihime -images" title="Add Kuroyukihime images">Kuroyukihime images</button>'
 );
 $('#kuroyukihime -images').click(function() {
 $('#CategorySelectAdd').click();
 setTimeout(function() {
 $('#CategorySelectInput').val('Kuroyukihime 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(
 '<button class="wikia-button" id="haruyuki-arita-images" title="Add Haruyuki Arita images">Haruyuki Arita images</button>'
 );
 $('#haruyuki-arita-images').click(function() {
 $('#CategorySelectAdd').click();
 setTimeout(function() {
 $('#CategorySelectInput').val('Haruyuki Arita images').trigger(jQuery.Event('keydown', {
 which: 13
 }));
 setTimeout(function() {}, 500);
 }, 500);
 });
 }
});

//

```

//