This repository has been archived by the owner on Feb 25, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
84 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,51 @@ | ||
# :octocat: baidu-pan-downloader | ||
----------------------------------- | ||
# Feature | ||
### 通过右下脚的下载图标<img src="https://greasyfork.org/system/screenshots/screenshots/000/021/778/thumb/%E3%83%80%E3%82%A6%E3%83%B3%E3%83%AD%E3%83%BC%E3%83%89.png?1592725597" width="5%">可以将已经勾选的文件加入下载列表 | ||
<img src="https://greasyfork.org/system/screenshots/screenshots/000/021/779/original/%E3%83%80%E3%82%A6%E3%83%B3%E3%83%AD%E3%83%BC%E3%83%89_%281%29.png?1592725597" width="50%"> | ||
## A Baidu-yun storage downloader script using Greasemonkey/Tampermonkey | ||
#### This repository contains a stub project for developing usercript extensions with React+Redux+[toolkit]+Typescript. | ||
#### It uses `react-app-rewired` to change the webpack configuration to complile React code so that it can be included in a userscript. | ||
In Firefox or Chrome, install [Greasemonkey](https://addons.mozilla.org/en-CA/firefox/addon/greasemonkey/) or Tampermonkey. | ||
You can then test the userscript by installing it [here](https://github.com/siefkenj/react-userscripts/raw/master/dist/react-userscripts.user.js). | ||
Navigate to [google](https://www.google.com) and you should see a react component inserted at the bottom of the page. | ||
|
||
# 🎅 Development | ||
## Building | ||
```shell script | ||
git clone https://github.com/dotennin/baidu-pan-downloader.git | ||
cd baidu-pan-downloader/ | ||
npm install | ||
npm run build | ||
``` | ||
After the build is complete, you should have a new version of userscript located at `dist/bundle.user.js`. | ||
|
||
##1.4 追加了自定义设置功能 | ||
# <img src="https://greasyfork.org/system/screenshots/screenshots/000/021/888/original/config-modal.png?1593252766" width="70%"> | ||
- ###默认自动下载 | ||
- ###最大支持同时下载文件数2 | ||
## Development and Dynamic loading | ||
It's able to get the newest version of your script upon a page refresh when developing. | ||
To do this, copy the source from `dist/react-userscripts-dev.user.js` or click [here](https://github.com/dotennin/baidu-pan-downloader/blob/master/dist/react-userscripts-dev.user.js). | ||
The dev script will dynamically load the extension from port `8124`, so you can take advantage of | ||
`create-react-app`'s ability to auto-recompile an app when the source changes. | ||
|
||
# 2.0 追加内容 | ||
## 1. 修复一些UI错误问题 | ||
## 2. 全局错误异常处理 | ||
## 3. `exe` `apk` `pdf` 等格式的下载支持 | ||
# <img src="https://greasyfork.org/system/screenshots/screenshots/000/022/152/original/WeChat_Image_20200714003946.png?1594654806" width="70%"> | ||
and run | ||
```shell script | ||
npm start | ||
``` | ||
----------------------------------- | ||
# 🎁 Feature | ||
### You can add checked files to download list Modal through the download icon<img src="https://greasyfork.org/system/screenshots/screenshots/000/021/778/thumb/%E3%83%80%E3%82%A6%E3%83%B3%E3%83%AD%E3%83%BC%E3%83%89.png?1592725597" width="5%"> In the lower right corner of the page(https://pan.baidu.com/disk/home) | ||
<img src="https://greasyfork.org/system/screenshots/screenshots/000/021/779/original/%E3%83%80%E3%82%A6%E3%83%B3%E3%83%AD%E3%83%BC%E3%83%89_%281%29.png?1592725597" width="50%"> | ||
|
||
----------------------------------- | ||
## 浏览器支持情况: | ||
## ❄ Browser support: | ||
``` | ||
Chrome: 通过 | ||
Edge: 通过 | ||
Firefox: 通过(需要TampermonkeyBETA v4.11.6115 或以上版本) | ||
Opera: 未测试 | ||
Safari: 未测试 | ||
Chrome: ✔ | ||
Edge: ✔ | ||
Firefox: ✔⚠(Required TampermonkeyBETA v4.11.6115 or higher) | ||
Opera: ⁉ | ||
Safari: ⁉ | ||
``` | ||
|
||
## 关于默认下载位置,以Chrome为例(这里感谢[cw2012](https://greasyfork.org/en/users/20287-cw2012) 的帮忙): | ||
1. 打开设置页面:`chrome://settings/?search=下载` | ||
2. 修改图中的设置项即可 | ||
|
||
<img src="https://greasyfork.org/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZG89IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--b28afb4aac736c362a53ef9e93835e4ee8df033b/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20200703160219.jpg?locale=zh-CN" width="50%"> | ||
|
||
## 如果出现无法下载的情况时的处理方式: | ||
- 删除cookie重新登录 | ||
|
||
#### 或者 | ||
- 切换账号 | ||
|
||
----------------------------------- | ||
# Changelog | ||
点击 [这里](https://dotennin.github.io/baidu-pan-downloader/CHANGELOG) 查看更新日志 | ||
# 📑 Changelog | ||
See👉 [here](https://dotennin.github.io/baidu-pan-downloader/CHANGELOG) to confirm Changelog | ||
------------------------------------------ | ||
----------------------------------- | ||
# 📚 中文说明 | ||
点👉 [here](https://dotennin.github.io/baidu-pan-downloader/README.zh_cn) 查看中文版本说明 | ||
------------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
----------------------------------- | ||
# 🎁 Feature | ||
### 通过右下脚的下载图标<img src="https://greasyfork.org/system/screenshots/screenshots/000/021/778/thumb/%E3%83%80%E3%82%A6%E3%83%B3%E3%83%AD%E3%83%BC%E3%83%89.png?1592725597" width="5%">可以将已经勾选的文件加入下载列表 | ||
<img src="https://greasyfork.org/system/screenshots/screenshots/000/021/779/original/%E3%83%80%E3%82%A6%E3%83%B3%E3%83%AD%E3%83%BC%E3%83%89_%281%29.png?1592725597" width="50%"> | ||
|
||
##1.4 追加了自定义设置功能 | ||
# <img src="https://greasyfork.org/system/screenshots/screenshots/000/021/888/original/config-modal.png?1593252766" width="70%"> | ||
- ###默认自动下载 | ||
- ###最大支持同时下载文件数2 | ||
|
||
# 2.0 追加内容 | ||
## 1. 修复一些UI错误问题 | ||
## 2. 全局错误异常处理 | ||
## 3. `exe` `apk` `pdf` 等格式的下载支持 | ||
# <img src="https://greasyfork.org/system/screenshots/screenshots/000/022/152/original/WeChat_Image_20200714003946.png?1594654806" width="70%"> | ||
|
||
----------------------------------- | ||
## ❄ 浏览器支持情况: | ||
``` | ||
Chrome: ✔ | ||
Edge: ✔ | ||
Firefox: ✔⚠(需要TampermonkeyBETA v4.11.6115 或以上版本) | ||
Opera: ⁉ | ||
Safari: ⁉ | ||
``` | ||
|
||
## 关于默认下载位置,以Chrome为例(这里感谢[cw2012](https://greasyfork.org/en/users/20287-cw2012) 的帮忙): | ||
1. 打开设置页面:`chrome://settings/?search=下载` | ||
2. 修改图中的设置项即可 | ||
|
||
<img src="https://greasyfork.org/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZG89IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--b28afb4aac736c362a53ef9e93835e4ee8df033b/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20200703160219.jpg?locale=zh-CN" width="50%"> | ||
|
||
## 如果出现无法下载的情况时的处理方式: | ||
- 删除cookie重新登录 | ||
|
||
#### 或者 | ||
- 切换账号 | ||
|
||
----------------------------------- | ||
# 📑 Changelog | ||
点击 [这里](https://dotennin.github.io/baidu-pan-downloader/CHANGELOG) 查看更新日志 | ||
------------------------------------------ |