file4go.net Auto Downloader

Automatically download on file4go.net.

目前为 2021-07-06 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name file4go.net Auto Downloader
  3. // @namespace file4go.netAutoDownloader
  4. // @version 0.2
  5. // @description Automatically download on file4go.net.
  6. // @author hacker09
  7. // @match http://www.file4go.net/*
  8. // @icon https://api.faviconkit.com/www.file4go.net/144
  9. // @grant none
  10. // @run-at document-end
  11. // @grant window.close
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. if (document.querySelectorAll("form")[1] !== undefined) //If the Create download button exists
  17. { //Starts the if condition
  18. document.querySelectorAll("form")[1].submit(); //Click on the create download button
  19. } //Finishes the if condition
  20. document.querySelector("a.novobotao.download").click(); //Clicks on the final download button
  21. setTimeout(function(){ window.top.close(); }, 1000);
  22. })();