Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.81 KB | None | 0 0
  1. if(document.URL.indexOf('screen=overview_villages')==-1){alert("O Boot funciona na visualização geral")}else{
  2. $('#production_table') .before('<center><table class=\'bbcodetable\' style=\'display:inline-table;margin:10px 0 10px 0;\'><tbody><tr style=\'height:22px\'><th>YouTube : </th><td><a id=\'Todo\' class=\'TW 100\' href=\'https://www.youtube.com/channel/UCIngQdlpQxocFDB4Vk6yERg\' target=\'_blank\'>TW 100</a> ©</td></tr></tbody></table><br /></center>');
  3. $('#production_table') .before('<button id = "B1">Classificar por pontos</button>');
  4. $('#production_table') .before('<button id = "B2">Classificar por tropas</button>');
  5. $('#production_table') .before('<button id = "B3">Classificar por fazenda</button>');
  6. $('#production_table') .before('<button id = "B4">Renomear numero</button>');
  7. $('#production_table') .before('<button id = "B5">Renomear texto</button>');
  8. var url = document.URL
  9. $("#B1").click(function(){ if (document.URL.indexOf('/game.php?village=' +game_data.village.id +'&page=-1&order=points&dir=desc&mode=prod&group=0&screen=overview_villages')==-1){
  10. location.search = '/game.php?village=' + game_data.village.id + '&page=-1&order=points&dir=desc&mode=prod&group=0&screen=overview_villages';
  11. }else{javascript:
  12. $(".rename-icon").click();
  13. var P = prompt("Digite o nome das aldeias:");
  14. $(".quickedit-edit").each(function(i){
  15. $(this).find("input:first").val(P+" "+(i <= 9 ? "00" : i <= 99 ? "0" : "")+i);
  16. $(this).find("input:last").click();
  17. });
  18. void(0); }
  19. });
  20. $("#B2").click(function(){ if (document.URL.indexOf('/game.php?village=' + game_data.village.id + '&page=-1&order=storage&dir=desc&mode=prod&group=0&screen=overview_villages')==-1){
  21. location.search = '/game.php?village=' + game_data.village.id + '&page=-1&order=storage&dir=desc&mode=prod&group=0&screen=overview_villages';
  22. }else{javascript:
  23. $(".rename-icon").click();
  24. var P = prompt("Digite o nome das aldeias:");
  25. $(".quickedit-edit").each(function(i){
  26. $(this).find("input:first").val(P+" "+(i <= 9 ? "00" : i <= 99 ? "0" : "")+i);
  27. $(this).find("input:last").click();
  28. });
  29. void(0); }
  30. });
  31. $("#B3").click(function(){ if (document.URL.indexOf('/game.php?village=' + game_data.village.id + '&page=-1&order=pop&dir=desc&mode=prod&group=0&screen=overview_villages')==-1){
  32. location.search = '/game.php?village=' + game_data.village.id + '&page=-1&order=pop&dir=desc&mode=prod&group=0&screen=overview_villages';
  33. }else{javascript:
  34. $(".rename-icon").click();
  35. var P = prompt("Digite o nome das aldeias:");
  36. $(".quickedit-edit").each(function(i){
  37. $(this).find("input:first").val(P+" "+(i <= 9 ? "00" : i <= 99 ? "0" : "")+i);
  38. $(this).find("input:last").click();
  39. });
  40. void(0); }
  41. });
  42. $("#B4").click(function(){$(".rename-icon").click();
  43. await sleep(250);
  44. var P = prompt("Digite o nome das aldeias:");
  45. await sleep(250);
  46. $(".quickedit-edit").each(function(i){
  47. await sleep(250);
  48. $(this).find("input:first").val(P+" "+(i <= 9 ? "00" : i <= 99 ? "0" : "")+i);
  49. await sleep(250);
  50. $(this).find("input:last").click();
  51. await sleep(250);
  52. });
  53. void(0);
  54. });
  55. $("#B5").click(function(){$(function(){
  56. $("#content_value").prepend ("<center><table class='vis' style='border: 1px solid #7D510F;margin: 15px 5px;box-shadow: 1px 1px 2px 1px rgba(60, 30, 0, 0.2);'><tbody><tr><th colspan='3'> Mudança de nome: </th></tr><tr><td><input id='same' type='text' size='32' minlength='3' maxlength='32' value='Coloque o nome de novo' name='name'></input></td><td><input id='name' class='btn' type='submit' value='Salvar'></input></td></tr></tbody></table></center></br>");
  57. $("#name").click(function(){
  58. $(".quickedit-content").find(".rename-icon").click();
  59. var same = $("#same").val();
  60. $("#content_value").each(function(){
  61. $(this).find(".quickedit-edit input:nth-child(1)").val(same);
  62. $(".quickedit-edit input:nth-child(2)").click();
  63. });
  64. });
  65. });
  66. });
  67. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement