Auto Klik

Auto Klik oploverz, samehadaku, anoboy, dkk

目前为 2019-10-07 提交的版本,查看 最新版本

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