Skip to content

Commit

Permalink
更新到2.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
syhyz1990 committed Sep 19, 2019
1 parent 5f77269 commit eb6a9bc
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 20 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@

## 🔔 更新日志

**2019-09-18** : v2.8.1 屏蔽暂时无效的下载方式,新增分享后下载,免登录链接替换为极速链接,不再需要退出账号

[查看更多](https://www.baiduyun.wiki/zh-cn/changelog.html)
[点击查看](https://www.baiduyun.wiki/zh-cn/changelog.html)

## 🚀 速度测试

Expand All @@ -70,7 +68,7 @@ netdisk;2.2.2;pc;pc-mac;10.14.5;macbaiduyunguanjia

- **[XDown下载速度](http://pan.baiduyun.wiki/down)**

![XDown](https://i.loli.net/2019/09/15/9f3bkXGNT8HBo1K.gif)
![XDown](https://i.loli.net/2019/09/19/187PZzbespSWMKx.gif)

## 👻 注意事项
不支持超过300M的文件夹,可批量选择文件进行下载,更多请参考 [常见问题](https://www.baiduyun.wiki/zh-cn/question.html)
Expand Down
2 changes: 1 addition & 1 deletion README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Get the real-chain download address of Baidu's network disk, speed up the downlo

**[Xdown(recommended)](http://pan.baiduyun.wiki/down)**

![XDown](https://i.loli.net/2019/09/15/9f3bkXGNT8HBo1K.gif)
![XDown](https://i.loli.net/2019/09/19/187PZzbespSWMKx.gif)

**IDM**

Expand Down
42 changes: 27 additions & 15 deletions baiduyun.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name 百度网盘直链下载助手
// @namespace https://github.com/syhyz1990/baiduyun
// @version 2.8.1
// @version 2.8.2
// @icon https://pan.baidu.com/ppres/static/images/favicon.ico
// @description 【百度网盘直链下载助手】是一款免客户端获取百度网盘文件真实下载地址的油猴脚本,支持Windows,Mac,Linux,Android等多平台,可使用IDM,迅雷,Aria2c协议等多线程加速工具加速下载,免登录下载告别下载限速问题。
// @author syhyz1990
Expand All @@ -16,7 +16,7 @@
// @match *://yun.baidu.com/share/*
// @require https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js
// @require https://cdn.bootcss.com/sweetalert/2.1.2/sweetalert.min.js
// @connect *
// @connect meek.com.cn
// @run-at document-idle
// @grant unsafeWindow
// @grant GM_xmlhttpRequest
Expand All @@ -32,7 +32,7 @@
'use strict'

;(function () {
const version = '2.8.1';
const version = '2.8.2';
const classMap = {
'list': 'zJMtAEb',
'grid': 'fyQgAEb',
Expand Down Expand Up @@ -468,8 +468,8 @@
let $sharebutton = $('<span class="g-button-menu" style="display:block;cursor: pointer">分享后下载</span>');

let $github = $('<iframe src="https://ghbtns.com/github-btn.html?user=syhyz1990&repo=baiduyun&type=star&count=true" frameborder="0" scrolling="0" style="height: 20px;max-width: 120px;padding: 0 5px;box-sizing: border-box;margin-top: 5px;"></iframe>');
//$dropdownbutton_span.append($directbutton).append($ariadirectbutton).append($outerlinkbutton).append($apibutton).append($sharebutton).append($github);
$dropdownbutton_span.append($apibutton).append($sharebutton).append($github);
$dropdownbutton_span.append($directbutton).append($ariadirectbutton).append($outerlinkbutton).append($apibutton).append($sharebutton).append($github);
//$dropdownbutton_span.append($apibutton).append($sharebutton).append($github);
$dropdownbutton.append($dropdownbutton_a).append($dropdownbutton_span);

$dropdownbutton.hover(function () {
Expand Down Expand Up @@ -915,7 +915,7 @@
num: 100,
key: searchKey,
channel: 'chunlei',
app_id: 250258,
app_id: 250528,
bdstoken: bdstoken,
logid: logid,
clienttype: 0
Expand Down Expand Up @@ -1175,16 +1175,28 @@
},
1e3);
}

$.ajax({
method: 'GET',
url: 'https://api.baiduyun.wiki/pset/' + surl,
url: 'https://api.baiduyun.wiki/reset/' + surl,
success: function (res) {
if (res.access_code) {
tip.text('发现提取码,已自动为您填写');
input.val(res.access_code);//填写密码
setTimeout(function () {
btn.click();
}, 1000);
if (res.link) {
GM_xmlhttpRequest({
method: 'GET',
url: res.link,
onload: function (xhr) {
var res = JSON.parse(xhr.responseText);
if (res.access_code) {
tip.text('发现提取码,已自动为您填写');
input.val(res.access_code);//填写密码
setTimeout(function () {
btn.click();
}, 1000);
} else {
tip.text('未发现提取码,请手动填写');
}
}
});
} else {
tip.text('未发现提取码,请手动填写');
}
Expand Down Expand Up @@ -1253,8 +1265,8 @@
let $highButton = $('<a data-menu-id="b-menu209" class="g-button-menu" style="color: #F24C43;font-weight: 700;" href="javascript:;">极速下载</a>');

let $github = $('<iframe src="https://ghbtns.com/github-btn.html?user=syhyz1990&repo=baiduyun&type=star&count=true" frameborder="0" scrolling="0" style="height: 20px;max-width: 120px;padding: 0 5px;box-sizing: border-box;margin-top: 5px;"></iframe>');
//$dropdownbutton_span.append($downloadButton).append($linkButton).append($ariclinkButton).append($highButton).append($github);
$dropdownbutton_span.append($highButton).append($github);
$dropdownbutton_span.append($downloadButton).append($linkButton).append($ariclinkButton).append($highButton).append($github);
//$dropdownbutton_span.append($highButton).append($github);
$dropdownbutton_a.append($dropdownbutton_a_span);
$dropdownbutton.append($dropdownbutton_a).append($dropdownbutton_span);

Expand Down

0 comments on commit eb6a9bc

Please sign in to comment.