Greasy Fork

收费网盘助手

💫减少大量繁琐的人工操作,用户只需要输入验证码或者点击真实下载按钮;没有破解VIP,网盘原有的各种限制还在。

目前为 2023-01-28 提交的版本。查看 最新版本

// ==UserScript==
// @name         收费网盘助手
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  💫减少大量繁琐的人工操作,用户只需要输入验证码或者点击真实下载按钮;没有破解VIP,网盘原有的各种限制还在。
// @author       czy
// @require      http://cdn.bootcss.com/jquery/1.8.3/jquery.min.js
// @match        http://www.xfpan.cc/*.html
// @match        http://www.xunniufile.com/*.html
// @match        http://www.kufile.net/file/*.html
// @license    GPL-3.0-only
// @grant    GM_setClipboard
// @grant    GM_getValue
// @grant    GM_setValue
// @run-at       document-end
// @compatible	 Chrome
// ==/UserScript==
/* eslint-disable no-redeclare */
/* eslint-disable no-undef */

(function() {
    'use strict';
    console.log('-----title-----'+ document.title);
    console.log('-----href-----'+ document.location.href);

    if(document.location.href.indexOf('http://www.xfpan.cc/') != -1)
    {
        console.log("-----www.xfpan.cc-----");
        var str1='<font size="2" color="green">💫 收费网盘助手 💫<p><p>1.减少人工操作<p>2.用户只需要输入验证码<p>3.没有破解VIP,网站各种限制还在</font>';

        var obj9=document.querySelectorAll("div.Dow_nr_r");
        if(obj9!=null && obj9.length>0)
            obj9[0].innerHTML =str1;
        if(document.location.href.indexOf('/file/') > 0)
        {
            $('#slow_button').click();
            var myVar = setInterval(function(){
                var obj1=document.querySelector("#spanDownWait > lable");
                document.title=obj1.innerText.substring(3);
            }, 1000);
        }
    }
    else if(document.location.href.indexOf('http://www.xunniufile.com/') != -1)
    {
        console.log("-----www.xunniufile.com----");
        var str1= '<font size="2" color="green">💫 收费网盘助手 💫<p><p>1.减少人工操作<p>2.不需要输入验证码<p>3.一直等待直到出现[普通下载]按钮<p>4.用户点击[普通下载]按钮开始下载<p>5.没有破解VIP,网站各种限制还在</font>';
        var obj9=document.querySelector("#main-content > div:nth-child(4)");
        var obj8=document.querySelector("#page-content > div.row-fluid > div:nth-child(2) > div:nth-child(6)");
        var obj7=document.querySelector("#page-content > div > div:nth-child(2) > div:nth-child(2)");
        if(obj9!=null)
            obj9.innerHTML =str1;
        else if(obj8!=null)
            obj8.innerHTML =str1;
        else if(obj7!=null)
            obj7.innerHTML =str1;

        if(document.location.href.indexOf('/file-') > 0)
        {
            var myVar = setInterval(function(){
                var obj1=document.querySelector("#down_link");
                document.title=obj1.innerText.substring(7);
                console.log(console.log(obj1.innerText));
                if (obj1.innerHTML.indexOf('下载页面') != -1)
                {
                    var obj2=document.querySelector("#down_link > a");
                    obj2.removeAttribute('target');
                    obj2.click();
                    clearInterval(myVar);
                }

            }, 1000);
        }
        else if(document.location.href.indexOf('/down2-') > 0)
        {
            var myVar = setInterval(function(){
                var obj1=document.querySelector("#down_link > a");
                obj1.removeAttribute('target');
                console.log(obj1.innerText);
                obj1.click();
            }, 2000);
        }
        else if(document.location.href.indexOf('/down-') > 0)
        {
            var k=0;
            var myVar = setInterval(function(){
                console.log("down_box");
                document.getElementById('down_box').style.display ='';
                var obj1=document.querySelector("#addr_list > a:nth-child(6)");
                console.log(obj1.innerText);
                var obj3=obj1.getAttribute('onclick');
                console.log(obj3);
                if(obj1!=null && obj1.innerText.indexOf('普通下载') >= 0)
                {
                    clearInterval(myVar);
                    alert("助手提示:<p>点击[普通下载]按钮开始下载");
                }
                else
                    alert("助手提示:<p>发生错误,无法下载。");

            }, 1000);
        }
    }
    else if(document.location.href.indexOf('http://www.kufile.net/file/') != -1)
    {
        console.log("-----www.kufile.net-----");
        var str1='<font size="2" color="green">💫 收费网盘助手 💫<p><p>1.减少人工操作<p>2.用户只需要输入验证码<p>3.没有破解VIP,网站各种限制还在</font>';

        var obj9=document.querySelectorAll("div.cright");
        if(obj9!=null && obj9.length>0)
            obj9[0].innerHTML =str1;

        var obj1=document.querySelector("#ptxz");
        var obj3=obj1.getAttribute('onclick');
        var p=obj3.indexOf('down');
        obj1.setAttribute('onclick','ck_code();'+obj3.substring(p));
        obj1.click();

        var myVar = setInterval(function(){
            var obj1=document.querySelector("#ptxz");
            document.title=obj1.innerText;
        }, 1000);


    }
})();