mirror of
https://github.com/fireinrain/JHS-enhance.git
synced 2026-10-13 12:56:37 +08:00
修复在115首页导致jq加载冲突
This commit is contained in:
Vendored
+2
-2
@@ -1100,7 +1100,7 @@
|
|||||||
);
|
);
|
||||||
insertStyle(mainCss);
|
insertStyle(mainCss);
|
||||||
insertStyle(subtitleModalCss);
|
insertStyle(subtitleModalCss);
|
||||||
window.$ = window.jQuery = $$1;
|
window.jQuery = $$1;
|
||||||
if (typeof $$1.trim !== "function") {
|
if (typeof $$1.trim !== "function") {
|
||||||
$$1.trim = function (text) {
|
$$1.trim = function (text) {
|
||||||
return text == null ? "" : (text + "").trim();
|
return text == null ? "" : (text + "").trim();
|
||||||
@@ -17059,4 +17059,4 @@ ${err.stack}` : "");
|
|||||||
pluginManager.processPlugins().then();
|
pluginManager.processPlugins().then();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
})($, localforage, Toastify, md5, Viewer, QRCode);
|
})(jQuery, localforage, Toastify, md5, Viewer, QRCode);
|
||||||
+1
-1
@@ -6,7 +6,7 @@ import Viewer from 'viewerjs';
|
|||||||
import QRCode from 'qrcodejs';
|
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';
|
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') {
|
if (typeof $.trim !== 'function') {
|
||||||
$.trim = function (text) {
|
$.trim = function (text) {
|
||||||
return text == null ? '' : (text + '').trim();
|
return text == null ? '' : (text + '').trim();
|
||||||
|
|||||||
+1
-1
@@ -92,7 +92,7 @@ export default defineConfig({
|
|||||||
build: {
|
build: {
|
||||||
fileName: 'jhs-enhance.user.js',
|
fileName: 'jhs-enhance.user.js',
|
||||||
externalGlobals: {
|
externalGlobals: {
|
||||||
'jquery': '$',
|
'jquery': 'jQuery',
|
||||||
'localforage': 'localforage',
|
'localforage': 'localforage',
|
||||||
'toastify-js': 'Toastify',
|
'toastify-js': 'Toastify',
|
||||||
'blueimp-md5': 'md5',
|
'blueimp-md5': 'md5',
|
||||||
|
|||||||
Reference in New Issue
Block a user