Advertisement
PurSiC

File Hosting Autopilot

Mar 13th, 2020
518
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         File Hosting Autopilot
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  try to take over the world!
  6. // @author       Pu12
  7. // @include      http*://uploadrar.com/*
  8. // @include      http*://uploaded.net/*
  9. // @include      http*://dropapk.to/*
  10. // @include      http*://upload.ac/*
  11. // @include      http*://*.zippyshare.com/*
  12. // @grant        none
  13. // ==/UserScript==
  14.  
  15. (function() {
  16.     'use strict';
  17.  
  18.     if(window.location.hostname.includes('uploadrar') == true){
  19.         console.log('uploadrar auto pilot');
  20.         setInterval(function(){
  21.             if(!document.getElementById('downloadbtn').disabled){
  22.                 document.getElementById('downloadbtn').click();
  23.             }
  24.         }, 2000);
  25.         var dlLink = document.getElementById('direct_link');
  26.         if(dlLink){
  27.             dlLink.getElementsByTagName('a')[0].click();
  28.         }
  29.     }
  30.     if(window.location.hostname.includes('uploaded') == true){
  31.         console.log('uploaded auto pilot');
  32.         if(document.getElementsByClassName('free')[0]){
  33.             document.getElementsByClassName('free')[0].click();
  34.         }
  35.     }
  36.     if(window.location.hostname.includes('dropapk') == true){
  37.         console.log('dropapk auto pilot');
  38.         if(document.getElementById('method_free')){
  39.             document.getElementById('method_free').click();
  40.         }
  41.         if(document.getElementsByClassName('download_box')[0]){
  42.            document.getElementsByClassName('download_box')[0].getElementsByTagName('a')[0].click();
  43.         }
  44.     }
  45.     if(window.location.hostname.includes('upload.ac') == true){
  46.         console.log('upload.ac auto pilot');
  47.         if(document.getElementById('chkIsAdd') && document.getElementById('chkIsAdd').checked == true){
  48.             document.getElementById('chkIsAdd').click();
  49.         }
  50.         if(!document.getElementById('chkIsAdd') && document.getElementsByClassName('btn-download')[0]){
  51.             document.getElementsByClassName('btn-download')[0].click();
  52.         }
  53.     }
  54.     if(window.location.hostname.includes('zippyshare.com') == true){
  55.         console.log('zippyshare auto pilot');
  56.         if(document.getElementById('dlbutton')){
  57.             document.getElementById('dlbutton').click();
  58.         }
  59.     }
  60.  
  61. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement