百度网盘访问助手

通过服务器获取并自动填写提取码 本脚本会收集无提取码的内容 使用即为同意收集

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
// ==UserScript==
// @name         百度网盘访问助手
// @namespace    https://baidup.top
// @version      8.1
// @description  通过服务器获取并自动填写提取码 本脚本会收集无提取码的内容 使用即为同意收集
// @icon         data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4gIoSUNDX1BST0ZJTEUAAQEAAAIYAAAAAAIQAABtbnRyUkdCIFhZWiAAAAAAAAAAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAAHRyWFlaAAABZAAAABRnWFlaAAABeAAAABRiWFlaAAABjAAAABRyVFJDAAABoAAAAChnVFJDAAABoAAAAChiVFJDAAABoAAAACh3dHB0AAAByAAAABRjcHJ0AAAB3AAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAFgAAAAcAHMAUgBHAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFhZWiAAAAAAAABvogAAOPUAAAOQWFlaIAAAAAAAAGKZAAC3hQAAGNpYWVogAAAAAAAAJKAAAA+EAAC2z3BhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABYWVogAAAAAAAA9tYAAQAAAADTLW1sdWMAAAAAAAAAAQAAAAxlblVTAAAAIAAAABwARwBvAG8AZwBsAGUAIABJAG4AYwAuACAAMgAwADEANv/bAIQACAgICAkICQoKCQ0ODA4NExEQEBETHBQWFBYUHCsbHxsbHxsrJi4lIyUuJkQ1Ly81RE5CPkJOX1VVX3dxd5yc0QEICAgICQgJCgoJDQ4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       mogumc
// @match        *://yun.baidu.com/s/*
// @match        *://pan.baidu.com/s/*
// @match        *://yun.baidu.com/share/init*
// @match        *://pan.baidu.com/share/init*
// @match        *://yun.baidu.com/wap/init*
// @match        *://pan.baidu.com/wap/init*
// @grant        GM_xmlhttpRequest
// @connect      baidu.com
// @connect      baidupcs.com
// @connect      api.baidup.top
// ==/UserScript==

function getNum(str, firstStr, secondStr)
{
    if (str == "" || str == null || str == undefined) {
        return "";
    }
    if (str.indexOf(firstStr) < 0) {
        return "";
    }
    var subFirstStr = str.substring(str.indexOf(firstStr) + firstStr.length, str.length);
    var subSecondStr = subFirstStr.substring(0, subFirstStr.indexOf(secondStr));
    return subSecondStr;
}

function parse_query_string(query)
{
    var vars = query.split("&");
    var query_string = {};
    for (var i = 0; i < vars.length; i++)
    {
        var pair = vars[i].split("=");
        var key = decodeURIComponent(pair[0]);
        var value = decodeURIComponent(pair[1]);
        if (typeof query_string[key] === "undefined") {
            query_string[key] = decodeURIComponent(value);
        }
        else if (typeof query_string[key] === "string") {
            var arr = [query_string[key], decodeURIComponent(value)];
            query_string[key] = arr;
        }
        else {
            query_string[key].push(decodeURIComponent(value));
        }
    }
    return query_string;
}

function getCookie(cname)
{
  var name = cname + "=";
  var ca = document.cookie.split(';');
  for(var i=0; i<ca.length; i++)
  {
    var c = ca[i].trim();
    if (c.indexOf(name)==0) return c.substring(name.length,c.length);
  }
  return "";
}
var uri = window.location.href;
var query = window.location.search.substring(1);
var qs = parse_query_string(query);
var edit, elements;
if (uri.indexOf('share') !=- 1) {
    edit = document.getElementById("accessCode");
}
if (uri.indexOf('wap') !=- 1) {
    edit = 'wap';
}
var n1 = "1" + qs.surl;
if(qs.surl==undefined){
    n1 = uri;
}
if (n1.indexOf('/s/') != - 1) {
    n1 = getNum(n1 + '{~}', '/s/', '{~}');
}
if (n1.indexOf('/init') != - 1) {
    n1 = '1' + getNum(n1 + '{~}', 'surl=', '{~}');
}
if (n1.indexOf('#') != - 1) {
    n1 = getNum('{~}' + n1, '{~}', '#');
}
if (n1.indexOf('?') != - 1) {
    n1 = getNum('{~}' + n1, '{~}', '?');
}
if (n1.indexOf('&') != - 1) {
    n1 = getNum('{~}' + n1, '{~}', '&');
}
if (uri.indexOf('pwd') == -1 && uri.indexOf('init?surl=') != -1)
{
    console.log('脚本加载成功~');
    console.log('仅供学习 若购买得到请主动举报出售者');
    var geturi = "https://api.baidup.top/p?surl=" + n1;
    if (edit == 'wap')
    {
        document.getElementsByClassName('colorBlock')[0].innerHTML = '<input data-v-11546ae9="" data-v-8daf617a="" type="text" placeholder="等待查询提取码" maxlength="10"">';
    }
    else {
        edit.value = "等待查询提取码";
    }
    GM_xmlhttpRequest(
        {
            method : "get", url : geturi, headers : {
                "user-agent" : "KinhWeb"
            },
            onload : function (res)
            {
                var data = JSON.parse(res.response);
                if (edit == 'wap')
                {
                    document.getElementsByClassName('colorBlock')[0].innerHTML = '<input data-v-11546ae9="" data-v-8daf617a="" type="text" placeholder="正在查询提取码..." maxlength="10"">';
                }
                else {
                    edit.value = "正在查询提取码...";
                }
                if (data.pwd != undefined && data.erron == '0')
                {
                    if (edit == 'wap')
                    {
                        document.getElementsByClassName('colorBlock')[0].innerHTML = '<input data-v-11546ae9="" data-v-8daf617a="" type="text" placeholder="获取成功" maxlength="10" value="' + data.pwd + '">';
                    }
                    else {
                        edit.value = data.pwd;
                    }
                }
                else
                {
                    if (edit == 'wap')
                    {
                        document.getElementsByClassName('colorBlock')[0].innerHTML = '<input data-v-11546ae9="" data-v-8daf617a="" type="text" placeholder="未查询到提取码" maxlength="10" value="">';
                    }
                    else {
                        edit.value = "未查询到提取码";
                    }
                }
            }
        });
} else if (uri.indexOf('init?surl=') == -1) {
    var info = document.getElementsByClassName('noicon-dingyue')[0];
    if(info != undefined){
        console.log("自动提交地址提取码...");
        var randsk = getCookie("BDCLND");
        if (randsk != ""){
            var geturis = "https://api.baidup.top/p?t=upthird&surl=" + n1 + "&randsk=" + randsk;
            GM_xmlhttpRequest(
                {
                    method : "get", url : geturis, headers : {
                        "user-agent" : "KinhDown"
                    },
                    onload : function (res)
                    {
                        var datas = JSON.parse(res.response);
                        if (datas.erron != '0')
                        {
                            console.log(datas.msg);
                        }
                        else
                        {
                            if (datas.pwd != "")
                            {
                                console.log("提交成功");
                            }
                            else
                            {
                                console.log("提交异常");
                            }
                        }
                    }
                });
        }
    }
}