Auto Klik

Auto Klik oploverz, samehadaku, anoboy, dkk

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

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