Skip to content

Commit

Permalink
同步大佬更新"在未使用环境变量自定义的前提下,云端添加使用随机UA功能"
Browse files Browse the repository at this point in the history
  • Loading branch information
Choicc committed Jan 12, 2021
1 parent 3c53f6f commit 7d362ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions smartReplace.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ async function inject_jd() {
ignore_jd();
await downloader_jd();
await downloader_notify();
await downloader_user_agents();
}

function ignore_jd() {
Expand Down Expand Up @@ -227,6 +228,10 @@ async function downloader_notify() {
await download("https://github.com/lxk0301/jd_scripts/raw/master/sendNotify.js", "./sendNotify.js", "统一通知");
}

async function downloader_user_agents() {
await download("https://github.com/lxk0301/jd_scripts/raw/master/USER_AGENTS.js", "./USER_AGENTS.js", "云端UA");
}

async function download(url, path, target) {
let response = await axios.get(url);
let fcontent = response.data;
Expand Down

0 comments on commit 7d362ad

Please sign in to comment.