Auto Downloader

Automatically download on drive.google.com, file4go.net and mp4upload.com

安裝腳本?
作者推薦腳本

您可能也會喜歡 AIGPT Everywhere

安裝腳本
  1. // ==UserScript==
  2. // @name Auto Downloader
  3. // @namespace AutoDownloader
  4. // @version 10
  5. // @description Automatically download on drive.google.com, file4go.net and mp4upload.com
  6. // @author hacker09
  7. // @match http://www.file4go.net/*
  8. // @match https://www.mp4upload.com/*
  9. // @match https://drive.google.com/uc?id=*
  10. // @icon https://cdn.iconscout.com/icon/free/png-256/icloud-download-475016.png
  11. // @grant none
  12. // @run-at document-end
  13. // @grant window.close
  14. // ==/UserScript==
  15.  
  16. (function() {
  17. 'use strict';
  18. if (location.href.match('file4go') !== null) //If the user is on the file4go website
  19. { //Starts the if condition
  20. if (document.querySelectorAll("form")[1] !== undefined) //If the Create download button exists
  21. { //Starts the if condition
  22. document.querySelectorAll("form")[1].submit(); //Click on the create download button
  23. } //Finishes the if condition
  24. document.querySelector("a.novobotao.download").click(); //Clicks on the final download button
  25. window.onload = function() { //When the page is fully loaded
  26. setTimeout(function() { //Starts the setTimeout function
  27. window.top.close(); //Closes the tab
  28. }, 2000); //Finishes the setTimeout function
  29. } //Finishes the onload event listener
  30. } //Finishes the if condition
  31.  
  32. if (location.href.match('mp4upload') !== null) //If the user is on the mp4upload website
  33. { //Starts the if condition
  34. if (document.querySelector("#method_free") !== null) // If the free download button exists
  35. { //Starts the if condition
  36. document.querySelector("#method_free").click(); //Click on the free download button
  37. } //Finishes the if condition
  38. else //If the free download button doesn't exist
  39. { //Starts the else condition
  40. document.querySelector('form')?.submit(); //Download the file
  41. window.onload = function() { //When the page is fully loaded
  42. setTimeout(function() { //Starts the setTimeout function
  43. window.top.close(); //Closes the tab
  44. }, 2500); //Finishes the setTimeout function
  45. } //Finishes the onload event listener
  46. } //Finishes the else condition
  47. } //Finishes the if condition
  48.  
  49. if (location.href.match('drive.google') !== null) //If the user is on the google drive website
  50. { //Starts the if condition
  51. document.querySelector("#uc-download-link").click(); //Clicks on the download button
  52. window.onload = function() { //When the page is fully loaded
  53. setTimeout(function() { //Starts the setTimeout function
  54. window.top.close(); //Closes the tab
  55. }, 2000); //Finishes the setTimeout function
  56. } //Finishes the onload event listener
  57. } //Finishes the if condition
  58. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址