|
1 | 1 | // ==UserScript== |
2 | 2 | // @name auto-task.compatibility |
3 | 3 | // @namespace auto-task.compatibility |
4 | | -// @version 5.0.0 |
| 4 | +// @version 5.0.1 |
5 | 5 | // @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。 |
6 | 6 | // @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites. |
7 | 7 | // @author HCLonely |
8 | 8 | // @license MIT |
9 | 9 | // @run-at document-start |
10 | 10 | // @homepage https://auto-task-doc.js.org/ |
11 | 11 | // @supportURL https://github.com/HCLonely/auto-task/issues |
12 | | -// @updateURL https://github.com/HCLonely/auto-task-v4/raw/main/dist/auto-task.compatibility.user.js |
13 | | -// @installURL https://github.com/HCLonely/auto-task-v4/raw/main/dist/auto-task.compatibility.user.js |
14 | | -// @downloadURL https://github.com/HCLonely/auto-task-v4/raw/main/dist/auto-task.compatibility.user.js |
| 12 | +// @updateURL https://github.com/HCLonely/auto-task/raw/main/dist/auto-task.compatibility.user.js |
| 13 | +// @installURL https://github.com/HCLonely/auto-task/raw/main/dist/auto-task.compatibility.user.js |
| 14 | +// @downloadURL https://github.com/HCLonely/auto-task/raw/main/dist/auto-task.compatibility.user.js |
15 | 15 | // @icon https://auto-task.hclonely.com/favicon.ico |
16 | 16 | // @tag games |
17 | 17 |
|
|
46 | 46 |
|
47 | 47 | // @include https://auto-task.hclonely.com/setting.html |
48 | 48 | // @include https://auto-task.hclonely.com/history.html |
| 49 | +// @include https://auto-task-doc.js.org/setting.html |
| 50 | +// @include https://auto-task-doc.js.org/history.html |
49 | 51 |
|
50 | 52 | // @grant GM_setValue |
51 | 53 | // @grant GM_getValue |
@@ -136,7 +138,7 @@ const missingDependencies = neededDependencies.filter(dependency => typeof windo |
136 | 138 | if (missingDependencies.length > 0) { |
137 | 139 | console.log('%c%s', 'color:red', `[Auto-Task] 脚本加载失败,缺少的依赖:${missingDependencies.join(', ')}`); |
138 | 140 | if (confirm(`[Auto-Task] 脚本依赖加载失败,请刷新重试或安装全依赖版本,是否前往安装全依赖版本?\n缺少的依赖:${missingDependencies.join(', ')}`)) { |
139 | | - GM_openInTab('https://github.com/HCLonely/auto-task-v4/raw/main/dist/auto-task.compatibility.all.user.js', { active: true }); |
| 141 | + GM_openInTab('https://github.com/HCLonely/auto-task/raw/main/dist/auto-task.compatibility.all.user.js', { active: true }); |
140 | 142 | } |
141 | 143 | } |
142 | 144 |
|
@@ -15540,7 +15542,7 @@ if (missingDependencies.length > 0) { |
15540 | 15542 | } |
15541 | 15543 | static test() { |
15542 | 15544 | const {host: host, pathname: pathname} = window.location; |
15543 | | - const isMatch = [ 'auto-task.hclonely.com', 'auto-task.js.org' ].includes(host) && pathname === '/setting.html'; |
| 15545 | + const isMatch = [ 'auto-task.hclonely.com', 'auto-task-doc.js.org' ].includes(host) && pathname === '/setting.html'; |
15544 | 15546 | debug('检查设置页面匹配', { |
15545 | 15547 | host: host, |
15546 | 15548 | pathname: pathname, |
@@ -15834,7 +15836,7 @@ if (missingDependencies.length > 0) { |
15834 | 15836 | static test() { |
15835 | 15837 | try { |
15836 | 15838 | const {host: host, pathname: pathname} = window.location; |
15837 | | - const isMatch = [ 'auto-task.hclonely.com', 'auto-task.js.org' ].includes(host) && pathname === '/history.html'; |
| 15839 | + const isMatch = [ 'auto-task.hclonely.com', 'auto-task-doc.js.org' ].includes(host) && pathname === '/history.html'; |
15838 | 15840 | debug('检查是否为历史记录页面', { |
15839 | 15841 | host: host, |
15840 | 15842 | pathname: pathname, |
@@ -18067,7 +18069,7 @@ if (missingDependencies.length > 0) { |
18067 | 18069 | changeGlobalOptions('swal'); |
18068 | 18070 | })); |
18069 | 18071 | GM_registerMenuCommand(I18n('settingPage'), (() => { |
18070 | | - GM_openInTab('https://auto-task-doc.js.org/setting.html', { |
| 18072 | + GM_openInTab('https://auto-task.hclonely.com/setting.html', { |
18071 | 18073 | active: true |
18072 | 18074 | }); |
18073 | 18075 | })); |
|
0 commit comments