Anonfiles, Bayfiles, GoFile Auto Download

Auto click download button.

目前为 2022-12-13 提交的版本。查看 最新版本

// ==UserScript==
// @name         Anonfiles, Bayfiles, GoFile Auto Download
// @namespace    https://cracked.io/Faramir
// @version      0.1
// @description  Auto click download button.
// @author       Faramir
// @license      MIT
// @match        *://anonfiles.com/*
// @match        *://bayfiles.com/*
// @match        *://gofile.io/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=anonfiles.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    // find & click download button for Anonfiles & Bayfiles.
    // document.querySelector('#download-url').click();
    var anon = document.querySelector('#download-url');
    if (anon != null) {
        anon.click();
        return false;
    }
})();

var inter = setInterval(gofile, 1000);

function gofile() {
    let $ = window.jQuery;
    var link = $("a[href*='download']");
    if (link.length < 1) {
        return false;
    }
    // when the link is found, clear the timer interval.
    clearInterval(inter);
    window.location.href = link[0].href
}

QingJ © 2025

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