Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Change appid in generated download links #669

Closed
wants to merge 2 commits into from

Conversation

refraction-ray
Copy link

Based on #667 (comment). I can verify substantial speed up compared to original appid download link which is limited to less than 100kbps.

However no extensive tests are carried out for now, so there is no guarantee the new link is valid for every scenarios. But it does help in my user case.

Just leaving this PR for anyone who may think it helpful.

@chengjianhao
Copy link

需要重新编译crx出来吗?该怎么编译

@refraction-ray
Copy link
Author

需要重新编译crx出来吗?该怎么编译

我这边是 chrome 开发者模式直接 load unpacked extension 加载这个 repo 里 chrome/release 文件夹, 在这种用法的前提下,最简单快速无依赖的暴力改法就是把 js 文件夹里两个压缩的 home.js share.js 中直接搜索老的 appid 250528 改成新的 624966.
如果是像这个 pr 改源码的话,得用 gulp 重新生成压缩的 js(参考)。
更省事的方法就是用插件导出下载链接之后手动把 appid 改掉,在命令行用 aria2 下载。
但我也不太确定变这个 appid 到底有多通用,速度能提升多少,可能需要先试试看。

@chengjianhao
Copy link

下载多了好像就会限制线程,和之前一样了。难道下多了就封了这个id?

@acgotaku
Copy link
Owner

不试试就瞎改啊。。。

@chengjianhao
Copy link

刚改的时候真能满速....

@acgotaku
Copy link
Owner

把appid改了 也不一定效果好 ,我把这个暴露成配置参数 你们自行修改吧

@acgotaku
Copy link
Owner

master 分支已更新 可以使用了

@acgotaku acgotaku closed this Nov 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants