Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- javascript:
- (function($){
- if(document.URL.indexOf('screen=overview_villages') == -1){
- alert('السكربت يعمل من الشكل العام');
- }else{
- $('#combined_table').before('<center><h4 style="color:Black">تم تعديل السكربت من قبل: <a style="color:MediumBlue" href="https://forum.tribalwars.ae/index.php?members/abu-rajih.38997/" font-family="Times New Roman" target="_blank">Abu.Rajih</a></h4></center>');
- $('#combined_table').before('<center><button class="btn evt-confirm-btn btn-confirm-yes" id = "S">تسمية القرى بارقام</button><button class="btn evt-cancel-btn btn-confirm-no" id = "N">تسمية القرى بدون ارقام</button></center>');
- $('#production_table').before('<center><h4 style="color:Black">تم تعديل السكربت من قبل: <a style="color:MediumBlue" href="https://forum.tribalwars.ae/index.php?members/abu-rajih.38997/" font-family="Times New Roman" target="_blank">Abu.Rajih</a></h4></center>');
- $('#production_table').before('<center><button class="btn evt-confirm-btn btn-confirm-yes" id = "S">تسمية القرى بارقام</button><button class="btn evt-cancel-btn btn-confirm-no" id = "N">تسمية القرى بدون ارقام</button></center>');
- $('#S').click(function () {
- $('.rename-icon').click();
- var P = prompt('أدخل اسم القرى :');
- if(P == null){return false;}else{}
- $('#content_value').each(function (i) {
- $(this).find('input:first').val(P + ' ' + (i <= 9 ? '00' : i <= 99 ? '0' : '') + i);
- });
- $('#combined_table tbody tr input[value="موافق"]').click();
- $('#production_table tbody tr input[value="موافق"]').click();
- });
- $('#N').click(function () {
- $(function () {
- $('#content_value').prepend("<center><table class='vis' align='center' style='border: 1px solid #7D510F;margin: 15px 5px;box-shadow: 1px 1px 2px 1px rgba(60, 30, 0, 0.2);'><tbody><tr><th align='center' colspan='3'>تغير الاسم:</th></tr><tr><td><input align='center' id='same' type='text' size='32' minlength='3' maxlength='32' placeholder='ضع الاسم مثلا سيد الاساطير' name='name'></input></td><td><input id='name' class='btn' type='submit' value='تغير'></input></td></tr></tbody></table></center></br>");
- $('#name').click(function () {
- $('.quickedit-content').find('.rename-icon').click();
- var same = $('#same').val();
- $('#content_value').each(function () {
- $(this).find('.quickedit-edit input:nth-child(1)').val(same);
- });
- $('#combined_table tbody tr td input[value="موافق"]').click();
- $('#production_table tbody tr td input[value="موافق"]').click();
- });
- });
- });
- }
- })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement