// ==UserScript==
// @name 夸克网盘直链下载,解除大文件需客户端下载限制,支持Aari2批量下载,直接在浏览器中下载
// @version 1.3
// @namespace https://zhihuweb.com
// @description 解除大文件需客户端下载限制,支持Aari2批量下载,直接在浏览器中下载
// @author zhihu
// @license End-User License Agreement
// @match *://pan.quark.cn/list*
// @match *://pan.quark.cn/s/*
// @connect drive.quark.cn
// @icon https://www.google.com/s2/favicons?sz=64&domain=quark.cn
// @grant GM_xmlhttpRequest
// @grant GM_cookie
// @grant GM.cookie
// @run-at document-body
// ==/UserScript==
(function () {
'use strict';
const config ={
"playhref":"https://pan.quark.cn/list",
"host":window.location.host,
"UA":navigator.userAgent,
}
const commonFunction = {
Toast:function(msg, duration = 3000){
var m = document.createElement('div');
m.innerHTML = msg;
m.setAttribute('id','msg');
m.style.cssText = "max-width:60%;min-width: 150px;padding:0 14px;min-height: 40px;color: rgb(255, 255, 255);line-height: 40px;text-align: center;border-radius: 4px;position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: 9999999999;background: rgba(0, 0, 0,.7);font-size: 16px;";
document.body.appendChild(m);
setTimeout(() => {
var d = 0.5;
m.style.webkitTransition = '-webkit-transform ' + d + 's ease-in, opacity ' + d + 's ease-in';
m.style.opacity = '0';
setTimeout(() => { document.body.removeChild(document.querySelector("#msg")) }, d * 1000);
}, duration);
},
sleep:function(time) {
return new Promise(resolve => setTimeout(resolve, time));
},
Commonsetinterval:function(data){
var Count;
var num ="";
return new Promise(function(resolve, reject){
Count = setInterval(function() {
var node = document.querySelector(data);
num++;
if(node != null ){
resolve(node);
clearInterval(Count);
}
if(num ==100){
clearInterval(Count);
}
console.log(node)
},200);
});
},
setItem:function(name, Value) {
localStorage.setItem(name, Value);
},
getItem:function(name) {
let StorageValue = localStorage.getItem(name);
return StorageValue;
},
removeItem:function(name) {
localStorage.removeItem(name);
},
GMaddStyle:function(data,id=null) {
var addStyle = document.createElement('style');
addStyle.textContent = data;
addStyle.type = 'text/css';
addStyle.id = id;
var doc = document.head || document.documentElement;
doc.appendChild(addStyle);
},
open:function(data){
var main = document.createElement('div');
var width = data.area[0];
var height = data.area[1];
var margintop = height/2;
var marginleft = width/2;
var style = "z-index: 999999998;width: "+width+"px;height:"+height+"px;position: fixed;top: 50%;left: 50%;margin-left:-"+marginleft+"px;margin-top:-"+margintop+"px;"
var btnHTML = '<a class="zhihu-layer-btn0">'+data.btn[0]+'</a><a class="zhihu-layer-btn1">'+data.btn[1]+'</a>';
main.innerHTML = '<div class="zhihu-layer-title" style="cursor: move;">'+data.title+'</div><div class="zhihu-layer-content" >'+data.content+'</div><span class="zhihu-layer-setwin"><a class="zhihu-layer-ico zhihu-layer-close1" href="javascript:;"></a></span><div class="zhihu-layer-btn zhihu-layer-btn-c">'+btnHTML+'</div>';
main.setAttribute('id',data.id);
main.setAttribute('style',style);
main.setAttribute('class',"zhihu-layer-page");
document.body.appendChild(main);
var shade = document.createElement('div');
shade.setAttribute('style',"z-index: 999999997;background-color: rgb(0, 0, 0);opacity: 0.3;");
shade.setAttribute('class',"zhihu-layer-shade");
shade.setAttribute('id',"zhihu-layer-shade");
shade.innerHTML =''
document.body.appendChild(shade);
var css = `
::-webkit-scrollbar {
height: 6px;
width: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
width: 6px;
}
::-webkit-scrollbar-thumb {
background-color: #54be99;
border-radius: 4px;
-webkit-transition: all 1s;
transition: all 1s;
width: 6px;
}
::-webkit-scrollbar-corner {
background-color: #54be99;
}
li {
list-style: none;
}
.zhihu-form-label, .zhihu-form-select, .zhihu-input-block, .zhihu-input-inline{
position: relative;
}
.zhihu-layer-shade {
top: 0;
left: 0;
width: 100%;
height: 100%;
position: fixed;
_height: expression(document.body.offsetHeight+"px");
}
.zhihu-layer-page{
margin: 0;
padding: 0;
background-color: #fff;
border-radius: 10px;
box-shadow: 1px 1px 50px rgba(0,0,0,.4);
font-family: PingFang SC, HarmonyOS_Regular, Helvetica Neue, Microsoft YaHei, sans-serif;
}
.zhihu-layer-title{
padding: 0 80px 0 20px;
height: 50px;
line-height: 50px;
border-bottom: 1px solid #F0F0F0;
border-radius: 2px 2px 0 0;
font-size: 14px;
color: #333;
overflow: visible;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: bold;
}
.zhihu-layer-setwin {
position: absolute;
right: 15px;
top: 17px;
font-size: 0;
line-height: initial;
}
.zhihu-layer-setwin .zhihu-layer-close1 {
background-position: 1px -40px;
cursor: pointer;
}
.zhihu-layer-setwin a {
position: relative;
width: 16px;
height: 16px;
margin-left: 10px;
font-size: 12px;
_overflow: hidden;
}
.zhihu-layer-btn a, .zhihu-layer-setwin a {
display: inline-block;
vertical-align: top;
}
.zhihu-layer-ico {
background: url(https://www.layuicdn.com/layui/css/modules/layer/default/icon.png) no-repeat;
}
.zhihu-layer-btn {
text-align: right;
padding: 10px 15px 12px;
pointer-events: auto;
user-select: none;
-webkit-user-select: none;
}
.zhihu-layer-btn-c {
text-align: center;
}
.zhihu-layer-btn a {
height: 28px;
line-height: 28px;
margin: 5px 5px 0;
padding: 0 15px;
border: 1px solid #dedede;
background-color: #fff;
color: #333;
border-radius: 4px;
font-weight: 400;
cursor: pointer;
text-decoration: none;
}
.zhihu-layer-btn1 {
border-color: #54be99!important;
background-color: #54be99!important;
color: #fff!important;
}
.zhihu-form-item {
margin-bottom: 5px;
clear: both;
}
.zhihu-form-label {
float: left;
display: block;
padding: 9px 15px;
width: 80px;
font-weight: 400;
line-height: 20px;
text-align: right;
box-sizing: content-box;
}
.zhihu-input-inline {
display: inline-block;
vertical-align: middle;
width: 190px;
margin-right: 10px;
}
.zhihu-input, .zhihu-select, .zhihu-textarea {
height: 38px;
line-height: 1.3;
border-width: 1px;
border-style: solid;
border-color: #eee;
display: block;
width: 100%;
padding-left: 10px;
background-color: #fff;
color: rgba(0,0,0,.85);
border-radius: 2px;
outline: 0;
-webkit-appearance: none;
transition: all .3s;
-webkit-transition: all .3s;
box-sizing: border-box;
}
.zhihu-input-block {
min-height: auto;
margin-left: 110px;
}
.zhihu-input-block p {
font-size: 12px;
line-height: 22px;
}
.zhihu-form {
display: flex;
margin-top: 20px;
}
`;
commonFunction.GMaddStyle(css,"open");
// await commonFunction.sleep(1000);
//获取表单对象
var zhihuform = document.querySelector('.zhihu-form');
//保存按钮点击事件
document.querySelector('.zhihu-layer-btn1').addEventListener('click',function() {
data.btn1(zhihuform);
document.body.removeChild(document.querySelector(".zhihu-layer-page"));
document.body.removeChild(document.querySelector("#zhihu-layer-shade"));
document.getElementsByTagName("head").item(0).removeChild(document.getElementById("open"));
})
//取消钮点击事件
document.querySelector(".zhihu-layer-btn0").addEventListener('click',function() {
document.body.removeChild(document.querySelector(".zhihu-layer-page"));
document.body.removeChild(document.querySelector("#zhihu-layer-shade"));
document.getElementsByTagName("head").item(0).removeChild(document.getElementById("open"));
})
//关闭钮点击事件
document.querySelector(".zhihu-layer-close1").addEventListener('click',function() {
document.body.removeChild(document.querySelector(".zhihu-layer-page"));
document.body.removeChild(document.querySelector("#zhihu-layer-shade"));
document.getElementsByTagName("head").item(0).removeChild(document.getElementById("open"));
})
},
}
//aria2设置开始
const Controlleraria2 = {
aria2set:function(){
let css= `
.layui-form{
display: flex;
margin-top: 20px;
}
.layui-form-label {
box-sizing: content-box;
}
.layui-input-block p{
font-size:12px
}
.layui-form-item{
margin-bottom:5px
}
.layui-input-block{
min-height:auto;
}
.main-left{
width: 367px;
}
.zhihu-scan{
width:180px;
display:inline-block;
text-align: center;
margin-right: 40px;
}
.zhihu-scan img{
width: 140px;
margin: 0 5px 10px 5px;
}
.zhihu-scan h1{
font-size: 18px;
font-weight: bold;
margin: 0px 0 20px 0;
}
.zhihu-scan p{
margin: 0;
color: #666;
font-size: 12px;
line-height: 26px;
}
`;
commonFunction.GMaddStyle(css);
let rpc="ws://localhost:6800/jsonrpc";
if(commonFunction.getItem("rpc")!=null){
rpc= commonFunction.getItem("rpc")
}
let token="";
if(commonFunction.getItem("token")!=null){
token= commonFunction.getItem("token")
}
let mulu="D:/";
if(commonFunction.getItem("mulu")!=null&&commonFunction.getItem("mulu")!=""){
mulu= commonFunction.getItem("mulu")
}
let contenthtml ="";
contenthtml +='<form class="zhihu-form" style="height: 280px;"><div class="main-left">'
contenthtml +='<div class="zhihu-form-item"> <label class="zhihu-form-label">RPC地址</label><div class="zhihu-input-inline"><input name="rpc" value="'+rpc+'" placeholder="" class="zhihu-input"></div></div>'
contenthtml +='<div class="zhihu-form-item" style="color: #acaeb5;"><div class="zhihu-input-block"><p>Aria2配置:ws://localhost:6800/jsonrpc<br>Motrix配置:ws://localhost:16800/jsonrpc</p></div></div>'
contenthtml +='<div class="zhihu-form-item"> <label class="zhihu-form-label">token</label><div class="zhihu-input-inline"><input name="token" value="'+token+'" placeholder="" class="zhihu-input"></div></div>'
contenthtml +='<div class="zhihu-form-item" style="color: #acaeb5;"><div class="zhihu-input-block"><p>没有请留空</p></div></div>'
contenthtml +='<div class="zhihu-form-item"> <label class="zhihu-form-label">保存地址</label><div class="zhihu-input-inline"><input name="mulu" value="'+mulu+'" placeholder="留空使用默认目录" class="zhihu-input"></div></div>'
contenthtml +='<div class="zhihu-form-item" style="color: #acaeb5;"><div class="zhihu-input-block"><p>留空使用默认目录</p></div></div>'
contenthtml +='</div><div class="zhihu-scan"><img src="http://cdn.wezhicms.com/uploads/allimg/20211215/1-21121500044Q94.jpg"><h1>关注公众号</h1>'
contenthtml +='<p>微信扫描上方二维码</p><p>关注我</p><p>从此不迷路</p></div></form>'
commonFunction.open({
area: ['580', '405'],
title: "批量下载设置",
shade: 0,
id:"biliset",
btn: ['取消', '保存设置'],
content:contenthtml,
btn1: function(data) {
var n = data.getElementsByTagName('input');
for(let i= 0; i <n.length; i++ ){
if (n[i].getAttribute("name") == "rpc") {
commonFunction.setItem("rpc",n[i].value);
}
else if (n[i].getAttribute("name") == "token") {
commonFunction.setItem("token",n[i].value);
}
else if (n[i].getAttribute("name") == "mulu") {
commonFunction.setItem("mulu",n[i].value);
}
}
}
});
},
addUri:function(u,t) {
//配置
return new Promise(function(resolve, reject) {
var wsurl = commonFunction.getItem("rpc");;
var uris = [u];
var token="";
var filename = t
if(commonFunction.getItem("mulu")!=null&&commonFunction.getItem("mulu")!=""){
var mulu= commonFunction.getItem("mulu")
}else{
mulu ="D:/"
}
var options = {
"dir":mulu,
"max-connection-per-server": "16",
"header": [`Cookie: ${document.cookie}`]
};
console.log(uris)
if (filename != "") {
options.out = filename;
}
var json = {
"id": "zhihu",
"jsonrpc": '2.0',
"method": 'aria2.addUri',
"params": [uris, options],
};
console.log(json)
if (token != "") {
json.params.unshift("token:" + token); // 坑死了,必须要加在第一个
}
var ws = new WebSocket(wsurl);
ws.onerror = event => {
commonFunction.Toast('连接错误, Aria2 连接错误,请检查RPC设置!');
};
ws.onopen = () => { ws.send(JSON.stringify(json)); }
ws.onmessage = event => {
let received_msg = JSON.parse(event.data);
if (received_msg.error !== undefined) {
if (received_msg.error.code === 1)commonFunction.Toast('通过RPC连接失败', '请打开控制台查看详细错误信息,返回信息:' + received_msg.error.message);
}
resolve();
switch (received_msg.method) {
case "aria2.onDownloadStart":
commonFunction.Toast("Aria2 发送成功, "+filename+" 已经开始下载!",1000);
ws.close();
break;
default:
break;
}
};
});
},
};
//aria2设置结束
function addMian(resData){
let listhtml=""
resData.forEach((item,index)=>{
listhtml += `<div style="display:flex;height:36px;line-height:36px;position:relative;justify-content:space-between"><input data-title="${item.file_name}" data-url="${item.download_url}" type="checkbox" style="width:14px;height:14px;position:absolute;top:50%;margin-top:-7px"><div style="width:350px;overflow:hidden;white-space:nowrap;margin-left:20px;font-size:14px;color:#333">${item.file_name}</div><div><a href="${item.download_url}"><div style="width:16px;height:100%;background-repeat:no-repeat;background-position:50%;background-size:contain;margin-right:16px;cursor:pointer;display:inline-block;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAOmUlEQVR4Xu2daawtRRWFP4I4RNGgPgEZgwwGcAiDDBIRRYUocUBBFIMSVIxBAhjEGOMQDa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EoDY/M8CXtFnIcrdWYGpfAc5D9i9c9XOjqUAsemtBOxtXbVhFZjCXSx747vIWioJiC2Lj+Z8iDPsOhvl6GN/DnJ5+EV7Sin1SwNiddlblna/+sBSRWqc1QqM9Um67VVszzfsfa9/l/RzCEDm6rNXFAwUO79PrX8Fxvgulr3n9fUAxr39S/ToEYYEZG42tjWLvQlsx5PZv9XyKjC2t3nttq2dCmzv9NnT+kFbDYDMCmAbP7wK2CjcvrNbeE8K/15zUKXGNfgY/h7EPirZw8bbZn7a33HY37FU02oDpBphNBEpYAoIEK0DKbCEAgJEy0MKCBCtASngU0BXEJ9uimpEAQHSiNEq06eAAPHppqhGFBAgjRitMn0KCBCfbopqRAEB0ojRKtOngADx6aaoRhQQII0YrTJ9CggQn26KakQBAdKI0SrTp4AA8emmqEYUECCNGK0yfQoIEJ9uimpEAQHSiNEq06eAAPHppqhGFBAgjRitMn0KCBCfbopqRAEB0ojRKtOngADx6aaoRhQQII0YrTJ9CggQn26KakQBAdKI0SrTp4AA8emmqEYUECCNGK0yfQoIEJ9uimpEgf8D7Y5D9tnq3qYAAAAASUVORK5CYII=)" title="下载"></div></a>
<div data-title="${item.file_name}" data-url="${item.download_url}" class="copyjs" style="width:16px;height:100%;background-repeat:no-repeat;background-position:50%;background-size:contain;margin-right:16px;cursor:pointer;display:inline-block;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAPf0lEQVR4Xu2de/BuUxnHP0bRRSiEcpuopuRSSEgxUzMuueUyXXAYhXIJk0Q1Md2EoXAqUpyQ4sjdMZMZKtGFSqKR3AlFM3QbqdE82u90zulc3u/aaz9777WeNbP/+q1nPWt9nuf72+/ea+21liBKEAgCCyWwRLAJAkFg4QRCIJEdQWARBEIgkR5BIAQSORAE0gjEHSSNW1hVQiAEUkmgY5hpBEIgadzCqhICIZBKAh3DTCMQAknjFlaVEAiBVBLoGGYagRBIGrewqoRACKSSQMcw0wiEQNK4hVUlBEIglQ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cse1avpg4FDvfw+yj+BA4oTlfJMXbUYDZF1E8BWJHodmRaKnFnklMJPaGJEo3BOxNoyW3+swxd2/syDc7+q2I4ikQA2bbRe7fktz9wG8B+6jGAvFIy/ZqNs+9qduZwAElAfUWSNu7SEnsSxxLUXcPC5C3QHLdRUpMrrGPqbi7R18CWQ+4wuMAxrFn3Ij6bz97dwBuG1Gfp+pqH3cQ65gdmGKnAy05VS+j0pAJ2CE27xjap7K5gPUlkIlI7HShKOMmYB9GDeo78pw4+xRIiCRnJPtpq2hx9PUMMn8o7bwImx+x5QlRxkHAlg3ZGyt79ii69H0HmcC1tVqzYt3VKHLN1mfNKGWt1eKID0Ug1k9bOXpahonExY05/p5OwF7l2sGb1aywHpJAJmGzyUSbbW87456eBmE5PwEThl3FLCGZNsRDFMjcQtkXsNW8r5x2QFEvG4GHm9W8thVodcKYUByyQOaOtC2im1zZMiAaWiCByYZusSi0p6UmbfNyWWByLQcs3bbBiu2fbjZ1ewqYXBXj+P+hj+UOEkELAr0QCIH0gj2cjoVACGQskYp+9kIgBNIL9nA6FgIhkLFEKvrZC4EQSC/Yw+lYCIRAxhKp6GcvBEIgvWAPp2MhEAIZS6Sin70QCIH0gj2cjoVACGQskYp+9kIgBNIL9nA6FgIhkLFEKvrZC4EQSC/Yw+lYCIRAxhKp6GcvBEIgvWAPp2Mh8B93r+3niYBvjQAAAABJRU5ErkJggg==)" title="复制链接"></div>
<div data-title="${item.file_name}" data-url="${item.download_url}" class="ariajs" style="width:16px;height:100%;background-repeat:no-repeat;background-position:50%;background-size:contain;margin-right:16px;cursor:pointer;display:inline-block;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAXj0lEQVR4Xu2dC/S+2VTHv1S6EKPcak1lJIoSIyQUDYYKDc241QzlNppSyhq3XJpCk1yikTRKbiUx0UUq001DRSlpkpFbUYp0QZFan5nzrPXOb37v+z57P/uc5zzPb++1fmv+a8257nO+73POPnt/9+WUkhpI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vpBXlQTDIeTQY+TUBjnPx4wjywRqIAGyW5mnj7xs30PSKwLXJZvqRAMJkP0LgYMhXriHUXdeWHJ38KVJWaEGEiDjFvXKku4uibDTG0mCSZC4bP4Ll27KSjWQAFnpwua0YjSQAInRY7ayUg0kQFa6sDmtGA0kQGL0mK2sVAMJkJUubE4rRgMJkBg9Zisr1UACZKULm9OK0UACJEaP2cpKNZAAWenC5rRiNJAAidFjtrJSDSRAVrqwOa0YDSRAYvSYraxUAwmQlS5sTitGAwmQGD1mKyvVQAJkpQub04rRQAIkRo/Zyko1kABZ6cLmtGI0kACJ0WO2slINJEBWurA5rRgN/D+26Yb2hhg8eQAAAABJRU5ErkJggg==)" title="发送到Aaria2"></div></div></div>`
})
let mainhtml =`<div id="downmain">
<div style="background:#00000030;position:fixed;top:0;right:0;width:100%;height:100%;z-index:99999998"></div>
<div style="background:#fff;width:540px;min-height:150px;position:fixed;z-index:99999999;top:50%;left:50%;box-shadow:0 0 20px 1px #00000042;border-radius:10px;margin-left:-270px;margin-top:calc(height/2px);transform:translateY(-50%)">
<div style="height:48px;line-height:48px;margin:0 20px;border-bottom:1px solid #f6f6f6;font-size:14px;color:#000;position:relative"><span style="">下载列表</span> <span id="zhihuclose" style="background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAIf0lEQVR4Xu3dXZbUOgxFYTOdy3hgOsB0YDwwnruyuor+IZWyFcnRsTbPsSMf6cMNFN2fGr9IgAQeJvCJbEiABB4nABCmgwQOEgAI40ECAGEGSMCWADeILTdWFUkAIEUazTFtCQDElhuriiQAkCKN5pi2BABiy41VRRIASJFGc0xbAgCx5caqIgkApEijOaYtAYDYcmNVkQQAUqTRHNOWAEBsubGqSAIAKdJojmlLACC23FhVJAGAFGk0x7QlABBbbqwqkgBAijSaY9oSAIgtN1YVSQAgRRrNMW0JAMSWG6uKJACQIo3mmLYEAGLLjVVFEgBIkUZzTFsCALHlxqoiCQCkSKM5pi0BgNh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qQO5IfvHZKg0h7eUnXX3J8Nmq0cSyfdRktH6eJ4HQBAASGi+bqycAEPUOUn9oAgAJjZfN1RMAiHoHqT80AYCExsvm6gkARL2D1B+aAEBC42Vz9QQAot5B6g9NACCh8bK5egIAUe8g9YcmAJDQeNlcPQGAqHeQ+kMTAEhovGyungBA1DtI/aEJACQ0XjZXTwAg6h2k/tAEABIaL5urJwAQ9Q5Sf2gCAAmNl83VEwCIegepPzQBgITGy+bqCQBEvYPUH5oAQELjZXP1BACi3kHqD00AIKHxsrl6AgBR7yD1hyYAkNB42Vw9AYCod5D6QxMASGi8bK6eAEDUO0j9oQkAJDReNldPACDqHaT+0AT+B7+1uOcLrSnTAAAAAElFTkSuQmCC');width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:contain;cursor:pointer;position:absolute;right:0;top:50%;margin-top:-8px"></span></div>
<div style="min-height:48px;margin:0 20px;padding:10px 0;max-height:480px;overflow:auto"><div>${listhtml}</div></div>
<div style="height:68px;line-height:48px;margin:0 20px;border-top:1px solid #f6f6f6;font-size:14px;color:#000;padding:10px 0"><div class="ant-btn-group" style="float:right"><button type="button" id="all" class="ant-btn btn-file"><span >全选</span></button><button type="button" id="delall" class="ant-btn btn-file"><span >取消全选</span></button><button id="pldown" type="button" class="ant-btn btn-file"><span>批量下载</span></button><button type="button" id="ariaset" class="ant-btn btn-file"><span>设置</span></button></div></div></div></div>`
document.body.insertAdjacentHTML('afterbegin', mainhtml);
var downmain = document.querySelector("#downmain");
var checkbinput = downmain.querySelectorAll('input');
var ariajsall = downmain.querySelectorAll('.ariajs');
var copyjsall = downmain.querySelectorAll('.copyjs');
console.log(checkbinput)
document.querySelector("#all") .addEventListener('click',function() {
checkbinput.forEach(function(element) {
element.checked = true;
})
commonFunction.Toast("已经全部选择",3000)
});
document.querySelector("#delall").addEventListener('click',function() {
checkbinput.forEach(function(element) {
element.checked = false;
});
commonFunction.Toast("已经全部取消选择",3000)
});
document.querySelector("#zhihuclose").addEventListener('click',function() {
document.querySelector("#downmain").remove();
});
document.querySelector("#ariaset").addEventListener('click',function() {
Controlleraria2.aria2set();
});
ariajsall.forEach((element)=>{
element.addEventListener('click',function() {
if(!commonFunction.getItem("rpc")||commonFunction.getItem("rpc") == null) {commonFunction.Toast("请在设置里设置rpc链接",3000); return;}
//if(!commonFunction.getItem("cookie")||commonFunction.getItem("cookie") == null){ commonFunction.Toast("请在设置里设置Cookie",3000); return;}
let url = this.getAttribute('data-url');
let title =this.getAttribute('data-title');
Controlleraria2.addUri(url,title);
});
});
copyjsall.forEach((element)=>{
element.addEventListener('click',function() {
let url = this.getAttribute('data-url');
const input = document.createElement('input');
input.setAttribute('value',`${url}`);
document.body.appendChild(input);
input.focus()//获取焦点
input.select()//选中输入框
document.execCommand('copy',true)//复制当前选中文本到前切板
commonFunction.Toast("复制成功",1500);
document.body.removeChild(input);
});
})
document.querySelector("#pldown").addEventListener('click',async function() {
if(!commonFunction.getItem("rpc")||commonFunction.getItem("rpc") == null) {commonFunction.Toast("请在设置里设置rpc链接",3000); return;}
//if(!commonFunction.getItem("cookie")||commonFunction.getItem("cookie") == null){ commonFunction.Toast("请在设置里设置Cookie",3000); return;}
for (var i = 0; i < checkbinput.length; i++) {
if(checkbinput[i].checked){
let url = checkbinput[i].getAttribute('data-url');
let title =checkbinput[i].getAttribute('data-title');
await Controlleraria2.addUri(url,title)
}
}
})
}
function download(fids) {
console.log(config.cookie)
GM_xmlhttpRequest({
method: "POST",
url: "https://drive.quark.cn/1/clouddrive/file/download?pr=ucpro&fr=pc&ve=2.1.5",
headers: {
"Content-Type": "application/json;charset=utf-8",
},
data: JSON.stringify({"fids": fids}),
onload: function (res) {
let resData = JSON.parse(res.responseText).data;
if (resData === undefined || resData.length === 0) {
commonFunction.Toast("获取直链失败, 请尝试刷新页面!")
return;
} else {
console.log('get real download url, size: ', resData.length)
}
console.log(resData)
addMian(resData);
}
});
}
function getSelectedFids() {
const checkboxes = document.getElementsByClassName('ant-table-row');
let fids = [];
for (let i = 0; i < checkboxes.length; i++) {
let checkbox = checkboxes[i].querySelector(".ant-checkbox-input")
if (checkbox.checked) {
let fidtype = checkboxes[i].querySelector(".ant-table-row-cell-break-word");
if(fidtype.innerText!="-"){
const fid = checkboxes[i].getAttribute('data-row-key');
if (fid !== undefined && fid !== '') {
fids.push(fid);
}
}else{
commonFunction.Toast("文件夹不支持直链下载,已忽略",1000)
}
}
}
return fids;
}
async function addButton(){
const detectPage =()=>{
let path = location.pathname;
if (/^\/(list)/.test(path)) return 'home';
if (/^\/(s|share)\//.test(path)) return 'share';
return '';
}
const HomeBtn =()=>{
let btnhtml =`<div class="btn-main" id="zhihudown"><div class="ant-dropdown-trigger" style="display:inline-block"><span class=""><div class="ant-upload ant-upload-select ant-upload-select-text"><span class="ant-upload"><button type="button" class="ant-btn btn-file btn-file-primary upload-btn ant-btn-primary"><img class="btn-icon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAOA0lEQVR4Xu2da6hmVRnH//8vQWCUQ9GFPkgihdF4yS42ZUqgBFaWaY2XyfKajpqm5aW8dJlKnWwcrZy0MmsqbUqTIC1oqBRFDEkao4KMoBtZgvUhvzyxah85jnPO2Wvt/ay91l7/DTJ+eNaz1vo9z+/s993v++5N6BABEViSAMVGBERgaQISRN0hAssQkCBqDxGQIOoBEUgjoDNIGjeNaoSABGmk0NpmGgEJksZNoxohIEEaKbS2mUZAgqRx06hGCEiQRgqtbaYRkCBp3DSqEQISJFOhzewVAN4IYF8AeyZMuwPAgwB+QfKBhPEakkBAgiRAix1iZocC2AZgt9ixS8RvJnnWSLmUZhkCEsS5PcwsNPImh2kuI3m5Q16lXERAgji2g5m9CcCPHadYQ/Iex/zNp5Ygji1gZtcBON1xii0kT3XM33xqCeLYAmYW/rof6DjFAyQPcMzffGoJ4tgCZmaO6f+XmqRq6AhZcB3hShBHuJlSSxBH0BLEEW6m1BLEEbQEcYSbKbUEcQQtQRzhZkotQRxBSxBHuJlSSxB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button></span></div></span></div></div>`
let btnnode = commonFunction.Commonsetinterval(".btn-operate");
btnnode.then((node)=>{
node.insertAdjacentHTML('afterbegin', btnhtml);
document.querySelector("#zhihudown").onclick= async()=>{
let fids= await getSelectedFids();
if(fids&&fids!=""){
download(fids)
}else{
commonFunction.Toast("请选择文件")
}
}
})
}
const ShareBtn =()=>{
let btnhtml =`<div class="file-info_r" id="zhihudown" style="margin-right:10px"><span class="save-btn-icon" style="background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAOA0lEQVR4Xu2da6hmVRnH//8vQWCUQ9GFPkgihdF4yS42ZUqgBFaWaY2XyfKajpqm5aW8dJlKnWwcrZy0MmsqbUqTIC1oqBRFDEkao4KMoBtZgvUhvzyxah85jnPO2Wvt/ay91l7/DTJ+eNaz1vo9z+/s993v++5N6BABEViSAMVGBERgaQISRN0hAssQkCBqDxGQIOoBEUgjoDNIGjeNaoSABGmk0NpmGgEJksZNoxohIEEaKbS2mUZAgqRx06hGCEiQRgqtbaYRkCBp3DSqEQISJFOhzewVAN4IYF8AeyZMuwPAgwB+QfKBhPEakkBAgiRAix1iZocC2AZgt9ixS8RvJnnWSLmUZhkCEsS5PcwsNPImh2kuI3m5Q16lXERAgji2g5m9CcCPHadYQ/Iex/zNp5Ygji1gZtcBON1xii0kT3XM33xqCeLYAmYW/rof6DjFAyQPcMzffGoJ4tgCZmaO6f+XmqRq6AhZcB3hShBHuJlSSxBH0BLEEW6m1BLEEbQEcYSbKbUEcQQtQRzhZkotQRxBSxBHuJlSSxBH0BLEEW6m1BLEEbQEcYSbKbUEcQQtQRzhZkotQRxBSxBHuJlSSxBH0BLEEW6m1BLEEbQEcYSbKbUEcQQtQRzhZkotQRxBSxBHuJlSSxBH0BLEEW6m1BLEEbQEcYSbKbUEcQQtQRzhZkotQRxBSxBHuJlSSxBH0BLEEW6m1BLEEbQEcYSbKbUEcQQtQRzhZkotQRxBSxBHuJlSSxBH0BLEEW6m1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XK+4+wxiGChN+MhwdM6hCBkgmcTfKa1AUmC9KdRbYCWJs6ucaJgDOBpO9fLV7TUEHWdF8YdN6n0otAEoHDSf4gaWQ3aJAg3VlkC4CThyxCY0XAgcCNJE8amncMQZ4JIPzw/oChi9F4ERiJQDhrvGOMG34MFqQ7i4TLvjsK+M7/SHyVpmICfwfwMpKPjrGHUQTpJNkHwINjLEo5RGAAgT1I/mHA+KcMHU2QTpLwcf59Yy1OeUQgksDrSd4dOWbZ8FEF6SR5NoDbABw85kKVSwSWIfDr0G8k/zo2pdEFWVigmW3q7mAx9pqVTwQWE9hK8lgvJG6CdGeTMwCEL4mF5z/oEIExCTwC4CqS142ZdOdcroJ0koQ7WwRJzvHciHI3ReDqTo5wRxvXw12QRS+5wg2Kgyhvdd2Rks+ZQPiCbDhr/CzXJrMJskiUvQAc0X0TOMddvXOx1Dw+BMLPu7eF+6CRDC+rsh7ZBVm8OzN7PoBXAXhB91+42Vj4/1VZKWiyEgg83t0AcOFGgOHfe0mGD/4mOyYVZLJda2IR6ElAgvQEpbA2CUiQNuuuXfckIEF6glJYmwQkSJt11657EpAgPUEprE0CEqTNumvXPQlIkJ6gFNYmAQnSZt21654EJEhPUAprk4AEabPu2nVPAhKkJyiFtUlAgrRZd+26JwEJ0hOUwtokIEHarLt23ZOABOkJSmFtEpAgbdZdu+5JQIL0BKWwNglIkDbrrl33JCBBeoJSWJsEJEibddeuexKQID1BKaxNAhKkzbpr1z0JSJCeoBTWJgEJ0mbdteueBP4L4+ZGFCnaIuUAAAAASUVORK5CYII=)"></span><span>智狐直链下载</span></div>`
let btnnode = commonFunction.Commonsetinterval(".file-info-share-buttom");
btnnode.then((node)=>{
node.insertAdjacentHTML('afterbegin', btnhtml);
document.querySelector("#zhihudown").onclick= async()=>{
let fids= await getSelectedFids();
if(fids&&fids!=""){
download(fids)
}else{
commonFunction.Toast("请选择文件")
}
}
})
}
const pt = await detectPage();
if(!pt) return
if(pt == "home") await HomeBtn();
if(pt == "share") await ShareBtn();
}
addButton();
})();