| @@ -4,7 +4,7 @@ | |||||
| // @name:zh-HK 龍圖急速陣型鏈接助手 | // @name:zh-HK 龍圖急速陣型鏈接助手 | ||||
| // @name:zh-TW 龍圖急速陣型鏈接助手 | // @name:zh-TW 龍圖急速陣型鏈接助手 | ||||
| // @namespace http://www.mapaler.com/ | // @namespace http://www.mapaler.com/ | ||||
| // @version 1.0.2 | |||||
| // @version 1.0.3 | |||||
| // @description Helps obtain team data from external cross-domain servers such as PADDB | // @description Helps obtain team data from external cross-domain servers such as PADDB | ||||
| // @description:zh-CN 帮助获取 PADDB 等外部跨域服务器的队伍分享数据 | // @description:zh-CN 帮助获取 PADDB 等外部跨域服务器的队伍分享数据 | ||||
| // @description:zh-HK 幫助獲取 PADDB 等外部跨域服務器的隊伍分享數據 | // @description:zh-HK 幫助獲取 PADDB 等外部跨域服務器的隊伍分享數據 | ||||
| @@ -42,5 +42,4 @@ | |||||
| GM_xmlhttpRequest(options); | GM_xmlhttpRequest(options); | ||||
| }); | }); | ||||
| }; | }; | ||||
| document.body.classList.add("external-link-support"); | |||||
| })(); | })(); | ||||
| @@ -1932,6 +1932,10 @@ function initialize() { | |||||
| qrCodeFrame.show(); | qrCodeFrame.show(); | ||||
| }; | }; | ||||
| qrCodeFrame.initialize = function(){ | qrCodeFrame.initialize = function(){ | ||||
| //如果检测到功能 | |||||
| if (btnExternalSupport?.asyncGM_xmlhttpRequest) { | |||||
| document.body.classList.add("external-link-support"); | |||||
| } | |||||
| const qrSaveBox = this.content.saveBox; | const qrSaveBox = this.content.saveBox; | ||||
| const qrReadBox = this.content.readBox; | const qrReadBox = this.content.readBox; | ||||
| qrReadBox.info.show(''); | qrReadBox.info.show(''); | ||||
| @@ -2246,7 +2250,6 @@ function initialize() { | |||||
| const paddbSaveOrUpload = document.querySelector("#paddb-save-or-upload-team"); | const paddbSaveOrUpload = document.querySelector("#paddb-save-or-upload-team"); | ||||
| paddbSaveOrUpload.onclick = async function(){ | paddbSaveOrUpload.onclick = async function(){ | ||||
| this.disabled = true; | this.disabled = true; | ||||
| const btnExternalSupport = document.body.querySelector("#external-support"); | |||||
| if (!btnExternalSupport?.asyncGM_xmlhttpRequest) { | if (!btnExternalSupport?.asyncGM_xmlhttpRequest) { | ||||
| alert(localTranslating.link_read_message.need_user_script); | alert(localTranslating.link_read_message.need_user_script); | ||||
| return; | return; | ||||
| @@ -8091,7 +8091,7 @@ const cachesMap = new Map([ | |||||
| ], | ], | ||||
| [ | [ | ||||
| "script.js", | "script.js", | ||||
| "910c1850224619f8c574087b1b5e0e8f" | |||||
| "bc145197afe8fe38b0090b2930a69e15" | |||||
| ], | ], | ||||
| [ | [ | ||||
| "solo.html", | "solo.html", | ||||
| @@ -8367,7 +8367,7 @@ const cachesMap = new Map([ | |||||
| ], | ], | ||||
| [ | [ | ||||
| "doc/index.html", | "doc/index.html", | ||||
| "b76648dd229ac25cfe97e670cf925ba9" | |||||
| "16d7e69c328a122a2d6a2e14251c5f9a" | |||||
| ], | ], | ||||
| [ | [ | ||||
| "doc/images/player-bind-box.webp", | "doc/images/player-bind-box.webp", | ||||