Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.58 KB | None | 0 0
  1. // ==UserScript==
  2. // @name New Userscript
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author You
  7. // @match https://btc-e.com/exchange/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. $(function(){
  15. $("div#header").remove();
  16. $("div#footer").remove();
  17. $("div#content > div:eq(0) > div.block:eq(0)").remove();
  18.  
  19. $("div#content > div:eq(0) > div.block:eq(0) > ul.pairs > li:eq(1)").remove();
  20. $("div#content > div:eq(0) > div.block:eq(0) > ul.pairs > li:eq(1)").remove();
  21. $("div#content > div:eq(0) > div.block:eq(0) > ul.pairs > li:eq(3)").remove();
  22. $("div#content > div:eq(0) > div.block:eq(0) > ul.pairs > li:eq(3)").remove();
  23. $("div#content > div:eq(0) > div.block:eq(0) > ul.pairs > li:eq(3)").remove();
  24. $("div#content > div:eq(0) > div.block:eq(0) > ul.pairs > li:eq(3)").remove();
  25. $("div#content > div:eq(0) > div.block:eq(0) > ul.pairs > li:eq(3)").remove();
  26. $("div#content > div:eq(0) > div.block:eq(0) > ul.pairs > li:eq(3)").remove();
  27. $("div#content > div:eq(0) > div.block:eq(0) > ul.pairs > li:eq(3)").remove();
  28. $("div#content > div:eq(0) > div.block:eq(0) > ul.pairs > li:eq(4)").remove();
  29. $("div#content > div:eq(0) > div.block:eq(0) > ul.pairs > li:eq(4)").remove();
  30. $("div#content > div:eq(0) > div.block:eq(0) > ul.pairs > li:eq(4)").remove();
  31. $("div#content > div:eq(0) > div.block:eq(0) > ul.pairs > li:eq(4)").remove();
  32. $("div#content > div:eq(0) > div.block:eq(0) > ul.pairs > li:eq(4)").remove();
  33. $("div#content > div:eq(0) > div.block:eq(0) > ul.pairs > li:eq(4)").remove();
  34. $("div#content > div:eq(0) > div.block:eq(0) > ul.pairs > li:eq(4)").remove();
  35. $("div#content > div:eq(0) > div.block:eq(0) > ul.pairs > li:eq(4)").remove();
  36. $("div#content > div:eq(0) > div.block:eq(0) > ul.pairs > li:eq(4)").remove();
  37. $("div#content > div:eq(0) > div.block:eq(0) > ul.pairs > li:eq(4)").remove();
  38. $("div#content > div:eq(0) > div.block:eq(0) > ul.pairs > li:eq(5)").remove();
  39. $("div#content > div:eq(0) > div.block:eq(0) > ul.pairs > li:eq(5)").remove();
  40. $("div#content > div:eq(0) > div.block:eq(0) > ul.pairs > li:eq(5)").remove();
  41.  
  42. $("div#content > div:eq(0) > div.block:eq(0) > div.inblock:eq(0) > h1:eq(0)").remove();
  43. $("div#content > div:eq(0) > div.block:eq(0) > div.inblock:eq(0) > div.order_header:eq(0)").remove();
  44. $("div#content > div:eq(0) > div.block:eq(0) > div.inblock:eq(0) > table:eq(0)").remove();
  45. $("div#content > div:eq(0) > div.block:eq(0) > div.inblock:eq(1)").css("float", "left");
  46. $("div#content > div:eq(0) > div.block:eq(0) > div.clear").remove();
  47. $("div#content > div:eq(0) > div.block:eq(0) > div.inblock:eq(1) > h1:eq(0)").remove();
  48. $("div#content > div:eq(0) > div.block:eq(0) > div.inblock:eq(1) > div.order_header:eq(0)").remove();
  49. $("div#content > div:eq(0) > div.block:eq(0) > div.inblock:eq(1) > table:eq(0)").remove();
  50. $("div#content > div:eq(0) > div.block:eq(0) > div.inblock:eq(0) > div.inblock:eq(0) > h3").remove();
  51. $("div#content > div:eq(0) > div.block:eq(0) > div.inblock:eq(1) > div.inblock:eq(0) > h3").remove();
  52. $("div#content > div:eq(0) > div.block:eq(0) > div.inblock:eq(2) > h3").remove();
  53. $("div#content > div:eq(0) > div.block:eq(0) > p.inblock:eq(0)").remove();
  54. $("div#content > div:eq(1) > div.block:eq(2)").remove();
  55. $("div#content > div:eq(1) > div.block:eq(2)").remove();
  56. $("div#content > div:eq(1) > div.block:eq(2)").remove();
  57.  
  58. $("div#content > div:eq(0) > div.block:eq(0) > div.inblock:eq(3) h3").remove();
  59. $("div#content > div:eq(0) > div.block:eq(0) > div.inblock:eq(3)").prependTo("div#content > div:eq(1)");
  60. //$("div#content > div:eq(1) > div:eq(0)").css("display", "none");
  61. $("<div class=\"inblock\"><div style=\"overflow: auto; max-height: 200px;\"><table id=\"big_trades_history\" style=\"width: 100%;\" class=\"table\"><thead><tr><th>Дата</th><th>Тип</th><th>Цена</th><th>Кол-во</th><th>Всего</th></tr></thead><tbody></tbody></table></div></div>)").prependTo("div#content > div:eq(1)");
  62.  
  63. function filter_big_trades() {
  64. var trs, filtered = [];
  65.  
  66. trs = $("#trade_history table tbody tr");
  67. for (var i = 0; i < trs.length; i++) {
  68. var volume = parseFloat($(trs[i]).find("td:eq(3)").text().split(" "));
  69. if (volume > 3)
  70. filtered.push(trs[i]);
  71. }
  72.  
  73. return $(filtered);
  74. }
  75.  
  76. setInterval(function() {
  77. filter_big_trades().prependTo("table#big_trades_history tbody");
  78.  
  79. }, 300);
  80.  
  81. $("div#content > div:eq(1) > div:eq(0)").css("padding-top", "15px");
  82. $("div#content > div:eq(1) > div:eq(0)").click(function() {
  83. $("div#content > div:eq(1) > div:eq(0) table").toggle();
  84. });
  85. $("div#content > div:eq(1) > div:eq(1)").css("padding-top", "15px");
  86. $("div#content > div:eq(1) > div:eq(1)").click(function() {
  87. $("div#content > div:eq(1) > div:eq(1) table").toggle();
  88. });
  89.  
  90.  
  91. $("div#content > div:eq(1) > div.block:eq(0)").css("margin-right", "0");
  92.  
  93. $("div#content").width("100%");
  94. $("div#content > div:eq(0)").width("1000px");
  95. $("div#content > div:eq(1)").width("585px");
  96. $("div#content > div:eq(0) > div.block:eq(0) > div:eq(0)").remove();
  97. $("div#content > div:eq(0) > div.block:eq(0) > div:eq(0) > div:eq(0)").width("988px");
  98. $("div#content > div:eq(0) > div.block:eq(0) > div:eq(0) > div:eq(0)").height("600px");
  99. $("div#content > div:eq(0) > div.block:eq(0) > div:eq(0) > div:eq(0) > div:eq(0)").width("988px");
  100. setInterval(function() {
  101. $("div#content > div:eq(0) > div.block:eq(0) > div:eq(0) > div:eq(0) iframe").width("982px");
  102. $("div#content > div:eq(0) > div.block:eq(0) > div:eq(0) > div:eq(0) iframe").height("600px");
  103. $("#nChat").width("574px");
  104. $("#nChatCon").width("574px");
  105. $("#nChat").height("175px");
  106. $("#nChatCon").height("175px");
  107. $("#nChatCon img.main-s-settings").css("margin-left", "534px");
  108. $("#nChatInput").remove();
  109. }, 1000);
  110.  
  111. });
  112. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement