From 6dfebb50a3163d383c5665a6e6c68534ab9770f9 Mon Sep 17 00:00:00 2001 From: "lzyme.dev@gmail.com" Date: Sun, 30 Aug 2026 13:57:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Djavbus=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/jhs-enhance.user.js | 7 ++++++- src/core/globals.js | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/dist/jhs-enhance.user.js b/dist/jhs-enhance.user.js index 59c6854..b5677aa 100644 --- a/dist/jhs-enhance.user.js +++ b/dist/jhs-enhance.user.js @@ -1101,6 +1101,11 @@ insertStyle(mainCss); insertStyle(subtitleModalCss); window.$ = window.jQuery = $$1; + if (typeof $$1.trim !== "function") { + $$1.trim = function (text) { + return text == null ? "" : (text + "").trim(); + }; + } window.localforage = localforage$1; window.Toastify = Toastify$1; window.md5 = md5$1; @@ -4098,7 +4103,7 @@ ${value}\r
- SOL二维码 + SOL二维码

SOL

diff --git a/src/core/globals.js b/src/core/globals.js index 8b902b1..c4dc4e0 100644 --- a/src/core/globals.js +++ b/src/core/globals.js @@ -7,6 +7,11 @@ import QRCode from 'qrcodejs'; import { currentHref, isJavDb, isJavBus, isSearchPage, Status_RUNNING, Status_SUCCESS, Status_FAIL, Status_LOADING, Status_FILTER, Status_FAVORITE, Status_HAS_DOWN, Status_HAS_WATCH, NO, YES } from './constants.js'; window.$ = window.jQuery = $; +if (typeof $.trim !== 'function') { + $.trim = function (text) { + return text == null ? '' : (text + '').trim(); + }; +} window.localforage = localforage; window.Toastify = Toastify; window.md5 = md5;