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',