From 50581be5a63237740d036925f4c9c0d015a7fdaa Mon Sep 17 00:00:00 2001 From: "lzyme.dev@gmail.com" Date: Sun, 30 Aug 2026 19:42:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8115=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E5=AF=BC=E8=87=B4jq=E5=8A=A0=E8=BD=BD=E5=86=B2?= =?UTF-8?q?=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/jhs-enhance.user.js | 4 ++-- src/core/globals.js | 2 +- vite.config.mjs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/jhs-enhance.user.js b/dist/jhs-enhance.user.js index d92f6d0..64ab7fa 100644 --- a/dist/jhs-enhance.user.js +++ b/dist/jhs-enhance.user.js @@ -1100,7 +1100,7 @@ ); insertStyle(mainCss); insertStyle(subtitleModalCss); - window.$ = window.jQuery = $$1; + window.jQuery = $$1; if (typeof $$1.trim !== "function") { $$1.trim = function (text) { return text == null ? "" : (text + "").trim(); @@ -17059,4 +17059,4 @@ ${err.stack}` : ""); pluginManager.processPlugins().then(); })(); -})($, localforage, Toastify, md5, Viewer, QRCode); \ No newline at end of file +})(jQuery, localforage, Toastify, md5, Viewer, QRCode); \ No newline at end of file diff --git a/src/core/globals.js b/src/core/globals.js index c4dc4e0..5f2a914 100644 --- a/src/core/globals.js +++ b/src/core/globals.js @@ -6,7 +6,7 @@ import Viewer from 'viewerjs'; 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 = $; +window.jQuery = $; if (typeof $.trim !== 'function') { $.trim = function (text) { return text == null ? '' : (text + '').trim(); diff --git a/vite.config.mjs b/vite.config.mjs index a61f347..e7c2f68 100644 --- a/vite.config.mjs +++ b/vite.config.mjs @@ -92,7 +92,7 @@ export default defineConfig({ build: { fileName: 'jhs-enhance.user.js', externalGlobals: { - 'jquery': '$', + 'jquery': 'jQuery', 'localforage': 'localforage', 'toastify-js': 'Toastify', 'blueimp-md5': 'md5',