修复在115首页导致jq加载冲突

This commit is contained in:
lzyme.dev@gmail.com
2026-08-30 19:42:34 +08:00
parent e92991c365
commit 50581be5a6
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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);
})(jQuery, localforage, Toastify, md5, Viewer, QRCode);
+1 -1
View File
@@ -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();
+1 -1
View File
@@ -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',