Auto Klik

Auto Klik oploverz, samehadaku, anoboy, dkk

目前为 2019-11-23 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Auto Klik
  3. // @namespace http://j.mp/au_ah_gelap
  4. // @version 1.3.18
  5. // @description Auto Klik oploverz, samehadaku, anoboy, dkk
  6. // @author eZee
  7. // @icon https://graph.facebook.com/1750572307/picture
  8. // @supportURL https://greasyfork.org/en/scripts/390413-auto-klik/feedback
  9.  
  10. // @match *://welcome.indihome.co.id/landing-page
  11.  
  12. // @match *://*.kusonime.com/*
  13.  
  14. // @match *://*.oploverz.in/*
  15. // @match *://*.hexafile.net/*
  16. // @match *://*.travellinginfos.com/*
  17. // @match *://*.kontenajaib.xyz/*
  18.  
  19. // @match *://*.samehadaku.tv/*
  20. // @match *://*.siotong.com/*
  21. // @match *://*.tetew.info/*
  22. // @match *://*.greget.space/*
  23. // @match *://*.siherp.com/*
  24. // @match *://*.ahexa.com/*
  25. // @match *://*.anjay.info/*
  26.  
  27. // @match *://*.davinsurance.com/*
  28.  
  29. // @match *://*.ngantukberat.me/*
  30.  
  31. // @match *://*.safelinkreviewx.com/*/cost/*
  32.  
  33. // @match *://*.kuyhaa-me.com/*
  34. // @match *://*.ljutkeunvpn.blogspot.com/p/*
  35.  
  36. // @match *://*.zippyshare.com/v/*
  37. // @match *://drive.google.com/*
  38. // @match *://*.zxcfiles.com/download
  39. // @match *://*.zxcfiles.xyz/*
  40. // @match *://*.mediafire.com/file/*
  41. // @match *://*.elsfile.org/*
  42. // @match *://*.clicknupload.org/*
  43. // @match *://*.racaty.com/*
  44. // @match *://*.letsupload.co/*
  45. // @match *://*.uptobox.com/*
  46. // @match *://*.mp4upload.com/*
  47.  
  48. // @license GNU General Public License v3.0 or later
  49. // @grant unsafeWindow
  50. // @grant GM_xmlhttpRequest
  51. // @grant GM_addStyle
  52. // @grant GM_setStyle
  53. // @run-at document-start
  54. // @require http://code.jquery.com/jquery-latest.js
  55. // ==/UserScript==
  56.  
  57. var link = null, anu = 0, tipe, jdl, aidi;
  58. var str, atext, dlv, a, b, c;
  59. $(document).ready(function () {
  60. if (document.documentURI.match(/welcome.indihome.co.id/g)) {
  61. link = getHref("div.background-box");
  62. } else if (document.documentURI.match(/oploverz.in\//g)) {
  63. tipe = 'klik';
  64. $("div.list-download").find("a").each(function () {
  65. if ($(this).attr("href").match(/\/\?r=/g)) {
  66. str = atob($(this).attr("href").split("r=")[1]);
  67. $(this).attr("href", str);
  68. }
  69. });
  70. if ($("#close-stream-ads").length) {
  71. dlv = "Stream";
  72. jdl = document.title;
  73. link = $("#close-stream-ads");
  74. }
  75. if ($("#btm_banner").length) {
  76. $("#btm_banner").remove();
  77. }
  78. } else if (document.documentURI.match(/samehadaku.tv\//g)) {
  79. $(".download-eps").attr("tabindex", -1).focus();
  80. } else if (document.documentURI.match(/kusonime.com\//g)) {
  81. $("div.smokeurl").find("a").each(function () {
  82. if ($(this).attr("href").match(/kepoow.me/g)) {
  83. str = atob(decodeURIComponent($(this).attr("href")).split("r=")[1]);
  84. } else {
  85. str = decodeURIComponent($(this).attr("href")).split("url=")[1].split("&type")[0];
  86. }
  87. $(this).attr("href", str);
  88. });
  89.  
  90. // Url Shorter
  91. } else if (document.documentURI.match(/hexafile.net/g)) {
  92. if (document.documentURI.match(/(v1|v3)\./g)) {
  93. str = getBy("Tag", "script")[18].text;
  94. link = (str.split('="')[1].split('",'))[0];
  95. } else if (document.documentURI.match(/v4\./g)) {
  96. str = getBy("Tag", "script")[19].text;
  97. link = (str.split('="')[1].split('",'))[0];
  98. } else {
  99. str = getBy("Tag", "script")[6].text;
  100. link = (str.split('window.location="')[1].split('";'))[0];
  101. }
  102. } else if (document.documentURI.match(/(travellinginfos.com|kontenajaib.xyz|ljutkeunvpn.blogspot.com\/p\/)/g)) {
  103. if (document.documentURI.match(/\?r=/g)) {
  104. link = atob(document.documentURI.split('r=')[1]);
  105. } else if (document.documentURI.match(/\?url=/g)) {
  106. a = document.documentURI.split("url=")[1];
  107. link = atob(a).split("?")[1];
  108. }
  109. } else if (document.documentURI.match(/siotong.com|tetew.info|greget.space|siherp.com|ahexa.com/g)) {
  110. link = getHref("div.download-link");
  111. } else if (document.documentURI.match(/anjay.info/g)) {
  112. str = getBy("Tag", "script")[4].text;
  113. link = (str.split("changeLink(){var a='")[1].split("';"))[0];
  114. } else if (document.documentURI.match(/davinsurance.com\//g)) {
  115. if (document.documentURI.match(/\?id=/g)) {
  116. tipe = 'klik';
  117. link = $("input.sorasubmit");
  118. } else {
  119. str = getBy("Tag", "script")[10].text;
  120. link = (str.split("changeLink(){var a='")[1].split("';"))[0];
  121. }
  122. } else if (document.documentURI.match(/ngantukberat.me\//g)) {
  123. if (document.documentURI.match(/\?go=/g)) {
  124. tipe = 'klik';
  125. link = $("input.btn-primary");
  126. } else {
  127. link = getHref("div#wpsafe-link");
  128. }
  129. } else if (document.documentURI.match(/kuyhaa-me.com\//g)) {
  130. $("div.entry-content").find("a").each(function () {
  131. if ($(this).attr("href").match(/ljutkeunvpn.blogspot.com\/p\/vpn.html\?url/g)) {
  132. str = atob(decodeURIComponent($(this).attr("href")).split("url=")[1]);
  133. if (str.match(/href/g)) {
  134. str = str.split("?")[1];
  135. }
  136. }
  137. $(this).attr("href", str);
  138. });
  139. $("input[type=image]").remove();
  140.  
  141. // Situs Download
  142. } else if (document.documentURI.match(/zippyshare.com/g)) {
  143. if ($("a#dlbutton").length) {
  144. link = getHref("a#dlbutton");
  145. } else {
  146. alert("file dihapus?");
  147. }
  148. } else if (document.documentURI.match(/drive.google.com/g)) {
  149. if (document.documentURI.match(/\/uc\?/) || document.documentURI.match(/export/)) {
  150. if ($("a#uc-download-link").length) {
  151. link = $("a#uc-download-link").attr("href");
  152. }
  153. } else if (document.documentURI.match(/\/file\/d\//)) {
  154. a = document.documentURI.replace("/file/d/", "/uc?id=");
  155. b = (a.split("/view")[0].split("/edit"))[0];
  156. link = b + "&export=download";
  157. }
  158. } else if (document.documentURI.match(/zxcfiles.com/g)) {
  159. atext = $("span#download").text();
  160. if (atext == '') {
  161. tipe = 'klik';
  162. link = $("button.downloadbtn");
  163. } else {
  164. link = getHref("span#download");
  165. }
  166. } else if (document.documentURI.match(/zxcfiles.xyz/g)) {
  167. link = getHref("div.btn-group");
  168. } else if (document.documentURI.match(/mediafire.com\/file\//g)) {
  169. link = getHref("div.download_link", "a.input");
  170. } else if (document.documentURI.match(/elsfile.org\//g)) {
  171. tipe = 'klik';
  172. if ($("input#btn_download").length) {
  173. jdl = getBy("Id", "btn_download").value;
  174. link = $("input#btn_download");
  175. } else {
  176. aidi = document.documentURI.split("/")[3];
  177. $("#frmdlcenter").html(
  178. '<form method="POST">' +
  179. '<input type="hidden" name="op" value="download1">' +
  180. '<input type="hidden" name="usr_login" value="C">' +
  181. '<input type="hidden" name="id" value="' + aidi + '">' +
  182. '<input type="hidden" name="referer" value="q">' +
  183. '<input type="submit" name="method_free" value="Free Download" style="background-color:#3f3f3f !important;color:#f1f1f1 !important;font-weight:bold !important;">' +
  184. '</form>');
  185. jdl = getBy("Name", "method_free")[0].value;
  186. link = $("input[name=method_free]");
  187. }
  188. } else if (document.documentURI.match(/clicknupload.org\//g)) {
  189. if ($("span.downloadbtn").length) {
  190. tipe = 'klik';
  191. jdl = getBy("Class", "downloadbtn")[1].textContent;
  192. link = $("span.downloadbtn");
  193. } else if ($("input[name=method_free]").length) {
  194. tipe = 'klik';
  195. aidi = document.documentURI.split("/")[3];
  196. $("div#download").html(
  197. '<form method="POST" action="">' +
  198. '<input type="hidden" name="op" value="download1">' +
  199. '<input type="hidden" name="usr_login" value="">' +
  200. '<input type="hidden" name="id" value="' + aidi + '">' +
  201. '<div class="regular"><i class="far fa-tachometer-alt-slow"></i> <input type="submit" id="method_free" name="method_free" value="Free Download >>"></div>' +
  202. '</form>');
  203. jdl = getBy("Name", "method_free")[0].value;
  204. link = $("input[name=method_free]");
  205. } else if ($("div.download").find('downloadbtn').find('span').context.activeElement.innerText.length > 0) {
  206. tipe = '';
  207. jdl = $("div.download").find('downloadbtn').find('span').context.activeElement.innerText;
  208. link = $("button.downloadbtn").attr('onclick').replace("window.open('", "").replace("');" + '"', "");
  209. }
  210. } else if (document.documentURI.match(/racaty.com\//g)) {
  211. atext = $("div.after").text();
  212. if (atext !== '') {
  213. tipe = 'klik';
  214. link = $("div.after");
  215. } else {
  216. tipe = '';
  217. link = $("div#DIV_1.actions").find("a").attr("href");
  218. }
  219. } else if (document.documentURI.match(/letsupload.co\//g)) {
  220. if ($("div.download-timer").length) {
  221. str = getBy("Tag", "script")[18].text;
  222. link = (str.split("btn-free' href='")[1].split("'>"))[0];
  223. } else if ($("div.buttonsare").length) {
  224. link = getHref("div.buttonsare", "a[title=Download]");
  225. }
  226. } else if (document.documentURI.match(/uptobox.com\//g)) {
  227. tipe = 'klik';
  228. if($("span.red").length == 0){
  229. if ($("input.download-btn").length) {
  230. var a = $("input.download-btn").attr("class").replace("disabled", "");
  231. $("input.download-btn").attr("class", a);
  232. jdl = $("input.download-btn").text;
  233. link = $("input.download-btn.big-button-green-flat.mt-4.mb-4");
  234. } else if ($("a.big-button-green-flat.mt-4.mb-4").text().match(/start/)) {
  235. link = document.querySelector("a.big-button-green-flat.mt-4.mb-4");
  236. jdl = link.text;
  237. }
  238. } else {
  239. alert($("span.red")[0].innerText);
  240. }
  241. } else if (document.documentURI.match(/mp4upload.com\//g)) {
  242. if ($("span.btext").length) {
  243. tipe = 'klik';
  244. link = $("span.btext");
  245. }
  246. }
  247.  
  248. if (link !== null) {
  249. setTimeout(function () {
  250. switch (tipe) {
  251. case "klik":
  252. klik(link, jdl, dlv);
  253. break;
  254. case "sambit":
  255. sambit(link, jdl);
  256. break;
  257. default:
  258. mangkat(link);
  259. }
  260. }, (anu * 1000));
  261. }
  262. });
  263.  
  264. function klik(url, tbl, tp = "dl") {
  265. var jdul;
  266. if (url.click()) {
  267. if (tp !== "dl") {
  268. document.title = tbl;
  269. } else {
  270. if (url.text().length > 0) {
  271. jdul = url.text();
  272. } else {
  273. if (tbl !== "") {
  274. jdul = tbl
  275. } else
  276. jdul = url
  277. }
  278. document.title = 'Mencet Tombol "' + jdul + '"';
  279. }
  280. } else {
  281. document.title = url;
  282. }
  283. }
  284. function sambit(btn, tbl) {
  285. var jdul;
  286. if (btn.submit()) {
  287. if (tbl.text().length > 0) {
  288. jdul = tbl.text();
  289. } else {
  290. if (tbl !== "") {
  291. jdul = tbl
  292. } else
  293. jdul = btn;
  294. document.title = 'Submit Form "' + jdul + '"';
  295. }
  296. } else {
  297. document.title = btn;
  298. }
  299. }
  300. function mangkat(url) {
  301. document.title = 'Cuss ' + url;
  302. window.location.replace(url);
  303. }
  304. function getHref(tanda, prm = null) {
  305. var fnd, hsl;
  306. if (tanda.match(/^a/)) {
  307. hsl = $(tanda).attr("href");
  308. } else {
  309. if (prm !== null) {
  310. fnd = prm;
  311. } else {
  312. fnd = "a";
  313. }
  314. hsl = $(tanda).find(fnd).attr("href");
  315. }
  316. return hsl;
  317. }
  318. function getBy(by, prm) {
  319. var gtb;
  320. switch (by) {
  321. case "Tag":
  322. gtb = document.getElementsByTagName(prm);
  323. break;
  324. case "Id":
  325. gtb = document.getElementById(prm);
  326. break;
  327. case "Class":
  328. gtb = document.getElementsByClassName(prm);
  329. break;
  330. case "Name":
  331. gtb = document.getElementsByName(prm);
  332. break;
  333. }
  334. return gtb;
  335. }