您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically download on file4go.net and mp4upload.com
当前为
// ==UserScript== // @name Auto Downloader // @namespace AutoDownloader // @version 0.3 // @description Automatically download on file4go.net and mp4upload.com // @author hacker09 // @match http://www.file4go.net/* // @match https://www.mp4upload.com/* // @icon https://cdn.iconscout.com/icon/free/png-256/icloud-download-475016.png // @grant none // @run-at document-end // @grant window.close // ==/UserScript== (function() { 'use strict'; if (location.href.match('file4go') !== null) //If the user is on the file4go website { //Starts the if condition if (document.querySelectorAll("form")[1] !== undefined) //If the Create download button exists { //Starts the if condition document.querySelectorAll("form")[1].submit(); //Click on the create download button } //Finishes the if condition document.querySelector("a.novobotao.download").click(); //Clicks on the final download button setTimeout(function(){ window.top.close(); }, 1000); //Closes the tab } //Finishes the if condition if (location.href.match('mp4upload') !== null) //If the user is on the mp4upload website { //Starts the if condition if (document.querySelector("#todl") !== null) //If the go to download button exists { //Starts the if condition document.querySelector("#todl").click(); //Click on the go to download button } //Finishes the if condition document.querySelector("#downloadbtn").click(); //Clicks on the final download button setTimeout(function(){ window.top.close(); }, 2000); //Closes the tab } //Finishes the if condition })();