欢迎来到游戏爱好者,这里是最新最全的游戏下载基地!

您的位置:首页 > 游戏软件 > 游戏辅助 > 网盘提取工具插件
网盘提取工具插件

网盘提取工具插件

网盘提取工具插件轻量运行,没有任何的影响,该插件是由热心的用户自己制作完成的,使用的编程语言是js,使用的时候需要和油猴平台提供的相关插件一同配合使用,现在用户获取链接更为的轻松,只需要提前现在百度网盘客户端中设置相应的参数,然后就能对其他用户分享的带有提取密码的外链直接跳过验证环节完成文件的获取。

功能介绍

一、尽可能在支持的网盘自动输入提取码,省去下载的烦恼。

二、目前支持的网盘:

百度云盘

蓝奏云

天翼云

网盘提取工具插件

使用方法

一、首先下载油猴脚本安装。

二、打开油猴脚本,导入本地的脚本程序,选择这个插件。

三、点击右上角的油猴脚本,选择功能进入下载界面即可使用。

部分代码展示

(function(window, self, unsafeWindow) {

'use strict';

let timeStart = new Date().getTime();

let location = self.location;

let host = location.host;

let path = location.pathname;

let code, input;

let getCode = function(rule) {

code = location.hash.slice(1, 5);

if ((rule || /([a-z\d]{4})/i.exec(code))) {

code = RegExp.$1;

} else code = null;

return code;

};

if (/(pan|e?yun)\.baidu\.com/.test(host)) {

//百度云盘

if (path.indexOf("/share/") !== -1 && document.querySelector('form[name="accessForm"]') && getCode()) {

let target = document.querySelector('.pickpw input');

if (!target)

return;

target.value = code;

unsafeWindow.document.querySelector('form[name="accessForm"]').onsubmit();

}

} else if (/\.lanzou[sx]?\.com/.test(host) && getCode()) {

let target = document.querySelector('#pwd');

if (!target)

return;

target.value = code;

let btn = unsafeWindow.document.querySelector('#sub') || unsafeWindow.document.querySelector('.passwddiv-btn');

btn && btn.dispatchEvent(new UIEvent('click'));

} else if (/cloud.189.cn/.test(host) && getCode()) {

let target = document.getElementById('code_txt');

if (!target)

return;

target.value = code;

let nameLabel = document.querySelector('.shareDate');

let delayFunc = () => {

if (!nameLabel.innerText) {

console.log('delay 500ms due to page load not complete.');

setTimeout(delayFunc, 500);

} else {

unsafeWindow.$(target.nextElementSibling).click();

}

};

setTimeout(delayFunc, 500);

} else {

//其它网站,检测链接

Array.prototype.slice.call(document.querySelectorAll("a[href*='pan.baidu.com'], a[href*='lanzou.com'], a[href*='lanzous.com'], a[href*='lanzoux.com']")).forEach(function(link) {

let txt = link.nextSibling && link.nextSibling.nodeValue;

let linkcode = /码.*?([a-z\d]{4})/i.exec(txt) && RegExp.$1;

if (!linkcode) {

txt = link.parentNode.innerText;

linkcode = /码.*?([a-z\d]{4})/i.exec(txt) && RegExp.$1;

}

if (linkcode) {

let href = link.getAttribute("href");

link.setAttribute("href", href + "#" + linkcode);

}

});

}

let timeEnd = new Date().getTime();

console.log("[网盘提取工具] 链接处理完成,耗时:" + (timeEnd - timeStart) + "毫秒. 处理模式:DOM处理");

})(window, window.self, unsafeWindow);

(function() {

'use strict';

//consts...

let CODE_RULE_COMMON = /^([a-z\d]{4})$/i;

let MAX_SEARCH_CODE_RANGE = 5;

//functions...

let textNodesUnder = function(el) {

let n, a = [],

walk = document.createTreeWalker(el, NodeFilter.SHOW_TEXT, null, false);

while ((n = walk.nextNode())) {

if (n.nodeName === '#text')

a.push(n);

}

return a;

};

let generalLinkifyText = function(source, eles, index, testReg, validateRule) {

let count = 0,

text = source,

match;

while ((match = testReg.exec(source))) {

count++;

let url = (match[1] || "http://") + match[2];

let originalText = (match[1] || "") + match[2];

let code = match[3] || findCodeFromElements(eles, index, validateRule) || "";

if (!code)

continue;

console.log("[网盘提取工具] 已处理网盘地址,URL=" + url + ",提取码=" + code + "模式:TEXTNODE");

//fix double #

url = url.split('#')[0];

text = text.replace(originalText, "" + url + '');

}

return {

count,

text

};

};

let linkifyTextBlockBaidu = function(...args) {

return generalLinkifyText(...[

...args,

/(https?:\/\/)?((?:pan|e?yun)\.baidu\.com\/s\/(?:[a-z\d\-_]+)(?:#[a-z\d-_]*)?)(?:.*?码.*?([a-z\d]+))?/gi,

CODE_RULE_COMMON

]);

};

let linkifyTextBlockLanZou = function(...args) {

return generalLinkifyText(...[

...args,

/(https?:\/\/)?((?:pan|d|www)\.lanzou[sx]?\.com\/(?:[a-z\d]+))(?:.*?码.*?([a-z\d]+))?/gi,

CODE_RULE_COMMON

]);

};

let linkifyTextBlock189cn = function(...args) {

return generalLinkifyText(...[

...args,

/(https?:\/\/)?(cloud\.189?\.cn\/t\/(?:[a-z\d]+))(?:.*?码.*?([a-z\d]+))?/gi,

CODE_RULE_COMMON

]);

}

let findCodeFromElements = function(eles, index, rule) {

for (let i = 0; i < MAX_SEARCH_CODE_RANGE && i < eles.length; i++) {

let txt = eles[i + index].textContent;

let codeReg = /码.*?([a-z\d]+)/gi;

let codeMatch = codeReg.exec(txt) && RegExp.$1;

if (!codeMatch) continue;

let linkTestReg = /(https?:|\.(net|cn|com|gov|cc|me))/gi;

if (linkTestReg.exec(txt) && linkTestReg.lastIndex <= codeReg.lastIndex) {

break;

}

if (rule.test(codeMatch)) return codeMatch;

}

return null;

};

let linkify = function() {

let eles = textNodesUnder(document.body);

let processor = [

linkifyTextBlockBaidu,

linkifyTextBlockLanZou,

linkifyTextBlock189cn

];

for (let i = 0; i < eles.length; i++) {

let ele = eles[i];

if (ele.parentNode.tagName == 'a' || !ele.textContent) continue;

let txt = ele.textContent;

let loopCount = 0;

for (var action of processor) {

let {

count,

text

} = action(txt, eles, i + 1);

loopCount += count;

txt = text;

}

if (loopCount > 0) {

var span = document.createElement("span");

span.innerHTML = txt;

ele.parentNode.replaceChild(span, ele);}}};

let timeStart = new Date().getTime();

linkify();

let timeEnd = new Date().getTime();

console.log("[网盘提取工具] 链接处理完成,耗时:" + (timeEnd - timeStart) + "毫秒. 处理模式:TEXTNODE处理");

})();

注意事项

一、可能会被杀毒软件报错,使用请关闭杀毒软件,或者添加信任

二、配套软件,需和油猴脚本使用

以上就是软件爱好者小编为大家带来的网盘提取工具插件下载,想要了解更多实用软件就请多多关注软件爱好者吧~

查看全部
  • 软件大小:99.69KB
  • 软件版本:3.7
  • 支持语言:简体中文
  • 软件分类:游戏软件/游戏辅助
  • 上架时间:2024-01-13
  • 运行环境:WinXp,Win2003,WinVista,Win 7,Win 8,Win 10,x64,Linux,Mac
  • 授权方式:免费版
  • 关键字:
无插件 360通过 腾讯通过 金山通过 瑞星通过
本地下载

文件大小:99.69KB

8.5

综合评分:8.5

  • 网盘提取工具插件0
  • 网盘提取工具插件1

相关软件

下载地址

!下载安装、资源包有误、报错等问题向我们反馈

注意事项

本站所有资源(含游戏)均是软件作者、开发商投稿,任何涉及商业盈利目的均不得使用,否则产生的一切后果将由您自己承担!本站将不对任何资源负法律责任,所有资源请在下载后24小时内删除。

如侵犯了您的版权、商标等,请立刻联系我们并具体说明情况后,本站将尽快处理删除。若有关在线投稿、无法下载等问题,请与本站客服人员联系QQ: 481103985

用户可自行按线路选择相应的下载点,可以直接点击下载/另存为,若直接点击下载速度太慢,请尝试使用高速下载器。为确保下载的文件能正常使用,请使用WinRAR最新版本解压本站软件。

建议大家谨慎对待所下载的文件,大家在安装的时候务必留意每一步!关于360安全卫士或QQ电脑管家的有关提示,请自行注意选择操作。

游戏软件

最新软件

更多>

游戏辅助排行榜