From 56c56de4d12915cf6865d7c6a6cacfb5a8cd6be7 Mon Sep 17 00:00:00 2001 From: Xmader Date: Fri, 28 Sep 2018 15:39:59 +0800 Subject: [PATCH] v1.15.3 --- README.md | 2 ++ biliTwin.user.js | 2 +- biliTwinBabelCompiled.user.js | 2 +- src/bilitwin.entry.js | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3134cf0..2dfcfc6 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ Greasy Fork地址: [https://greasyfork.org/scripts/372516](https://greasyfork.or 如果有bug,请直接使用[Github Issues](https://github.com/Xmader/bilitwin/issues)向我反馈 +## 由于B站限制,右键一下播放器才能显示下载按钮 + --- # 国产浏览器请点[这里](https://github.com/Xmader/bilitwin/raw/master/biliTwinBabelCompiled.user.js) diff --git a/biliTwin.user.js b/biliTwin.user.js index eeda6ed..6aff758 100644 --- a/biliTwin.user.js +++ b/biliTwin.user.js @@ -8757,7 +8757,7 @@ class BiliTwin extends BiliUserJS { // 2. monkey and polyfill this.monkey = new BiliMonkey(this.playerWin, this.option); this.polyfill = new BiliPolyfill(this.playerWin, this.option, t => UI.hintInfo(t, this.playerWin)); - await Promise.all([this.polyfill.setFunctions()]); + await this.polyfill.setFunctions(); // 3. async consistent => render UI const cidRefresh = BiliTwin.getCidRefreshPromise(this.playerWin); diff --git a/biliTwinBabelCompiled.user.js b/biliTwinBabelCompiled.user.js index 18c303f..85b0f9d 100644 --- a/biliTwinBabelCompiled.user.js +++ b/biliTwinBabelCompiled.user.js @@ -8197,7 +8197,7 @@ var BiliTwin = function (_BiliUserJS) { return UI.hintInfo(t, _this50.playerWin); }); _context70.next = 20; - return Promise.all([this.polyfill.setFunctions()]); + return this.polyfill.setFunctions(); case 20: diff --git a/src/bilitwin.entry.js b/src/bilitwin.entry.js index be42da8..7c90e38 100644 --- a/src/bilitwin.entry.js +++ b/src/bilitwin.entry.js @@ -55,7 +55,7 @@ class BiliTwin extends BiliUserJS { // 2. monkey and polyfill this.monkey = new BiliMonkey(this.playerWin, this.option); this.polyfill = new BiliPolyfill(this.playerWin, this.option, t => UI.hintInfo(t, this.playerWin)); - await Promise.all([this.polyfill.setFunctions()]); + await this.polyfill.setFunctions() // 3. async consistent => render UI const cidRefresh = BiliTwin.getCidRefreshPromise(this.playerWin);