Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name File Hosting Autopilot
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author Pu12
- // @include http*://uploadrar.com/*
- // @include http*://uploaded.net/*
- // @include http*://dropapk.to/*
- // @include http*://upload.ac/*
- // @include http*://*.zippyshare.com/*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- if(window.location.hostname.includes('uploadrar') == true){
- console.log('uploadrar auto pilot');
- setInterval(function(){
- if(!document.getElementById('downloadbtn').disabled){
- document.getElementById('downloadbtn').click();
- }
- }, 2000);
- var dlLink = document.getElementById('direct_link');
- if(dlLink){
- dlLink.getElementsByTagName('a')[0].click();
- }
- }
- if(window.location.hostname.includes('uploaded') == true){
- console.log('uploaded auto pilot');
- if(document.getElementsByClassName('free')[0]){
- document.getElementsByClassName('free')[0].click();
- }
- }
- if(window.location.hostname.includes('dropapk') == true){
- console.log('dropapk auto pilot');
- if(document.getElementById('method_free')){
- document.getElementById('method_free').click();
- }
- if(document.getElementsByClassName('download_box')[0]){
- document.getElementsByClassName('download_box')[0].getElementsByTagName('a')[0].click();
- }
- }
- if(window.location.hostname.includes('upload.ac') == true){
- console.log('upload.ac auto pilot');
- if(document.getElementById('chkIsAdd') && document.getElementById('chkIsAdd').checked == true){
- document.getElementById('chkIsAdd').click();
- }
- if(!document.getElementById('chkIsAdd') && document.getElementsByClassName('btn-download')[0]){
- document.getElementsByClassName('btn-download')[0].click();
- }
- }
- if(window.location.hostname.includes('zippyshare.com') == true){
- console.log('zippyshare auto pilot');
- if(document.getElementById('dlbutton')){
- document.getElementById('dlbutton').click();
- }
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement