hmjz100 / Online-disk-direct-link-download-assistant

一个基于 JavaScript 的网盘文件下载地址获取工具。基于【网盘直链下载助手】修改 ,自用,去推广,无需输入“暗号”即可使用,甚至比原版还要好用!
https://greasyfork.org/scripts/449291
GNU Affero General Public License v3.0
2.19k stars 94 forks source link

1.0.9.3版本第3088行应该是逻辑判断错误了吧,导致兼容Tampermonkey的其他脚本管理器无法获取token #119

Closed examplecode closed 1 week ago

examplecode commented 1 week ago

应该改成 res.includes('authorize') 吧

` if (!res.includes('authorize') && !res.includes('access_token=')) { openTab(); return waitForToken(); }

`

hmjz100 commented 1 week ago

原文如此:https://greasyfork.org/zh-CN/scripts/436446/code#:~:text=if%20(!res.includes(%27authorize%27)%20%26%26%20!res.includes(%27access_token%3D%27))%20%7B