diff --git a/ComicRead.user.js b/ComicRead.user.js index ee30a6d5..fb7828df 100644 --- a/ComicRead.user.js +++ b/ComicRead.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name ComicRead // @namespace ComicRead -// @version 8.10.1 +// @version 8.10.2 // @description 为漫画站增加双页阅读、翻译等优化体验的增强功能。百合会——「记录阅读历史、自动签到等」、百合会新站、动漫之家——「解锁隐藏漫画」、E-Hentai——「匹配 nhentai 漫画」、nhentai——「彻底屏蔽漫画、自动翻页」、Yurifans——「自动签到」、拷贝漫画(copymanga)——「显示最后阅读记录」、PonpomuYuri、明日方舟泰拉记事社、禁漫天堂、漫画柜(manhuagui)、漫画DB(manhuadb)、动漫屋(dm5)、绅士漫画(wnacg)、mangabz、komiic、无限动漫、新新漫画、hitomi、Anchira、kemono、nekohouse、welovemanga // @description:en Add enhanced features to the comic site for optimized experience, including dual-page reading and translation. // @description:ru Добавляет расширенные функции для удобства на сайт, такие как двухстраничный режим и перевод. @@ -1634,30 +1634,30 @@ const creatId = () => { return id; }; -var _tmpl$$Q = /*#__PURE__*/web.template(\`\`); +var _tmpl$$P = /*#__PURE__*/web.template(\`\`); const MdCheckCircle = ((props = {}) => (() => { - var _el$ = _tmpl$$Q(); + var _el$ = _tmpl$$P(); web.spread(_el$, props, true, true); return _el$; })()); -var _tmpl$$P = /*#__PURE__*/web.template(\`\`); +var _tmpl$$O = /*#__PURE__*/web.template(\`\`); const MdWarning = ((props = {}) => (() => { - var _el$ = _tmpl$$P(); + var _el$ = _tmpl$$O(); web.spread(_el$, props, true, true); return _el$; })()); -var _tmpl$$O = /*#__PURE__*/web.template(\`\`); +var _tmpl$$N = /*#__PURE__*/web.template(\`\`); const MdError = ((props = {}) => (() => { - var _el$ = _tmpl$$O(); + var _el$ = _tmpl$$N(); web.spread(_el$, props, true, true); return _el$; })()); -var _tmpl$$N = /*#__PURE__*/web.template(\`\`); +var _tmpl$$M = /*#__PURE__*/web.template(\`\`); const MdInfo = ((props = {}) => (() => { - var _el$ = _tmpl$$N(); + var _el$ = _tmpl$$M(); web.spread(_el$, props, true, true); return _el$; })()); @@ -1721,7 +1721,7 @@ toast$2.error = (msg, options) => toast$2(msg, { type: 'error' }); -var _tmpl$$M = /*#__PURE__*/web.template(\`
\`), +var _tmpl$$L = /*#__PURE__*/web.template(\`
\`), _tmpl$2$d = /*#__PURE__*/web.template(\`
\`); const iconMap = { info: MdInfo, @@ -1795,7 +1795,7 @@ const ToastItem = props => { return props.duration !== Number.POSITIVE_INFINITY || props.schedule !== undefined; }, get children() { - var _el$3 = _tmpl$$M(); + var _el$3 = _tmpl$$L(); _el$3.addEventListener("animationend", dismiss); var _ref$ = scheduleRef; typeof _ref$ === "function" ? web.use(_ref$, _el$3) : scheduleRef = _el$3; @@ -1838,7 +1838,7 @@ const ToastItem = props => { })(); }; -var _tmpl$$L = /*#__PURE__*/web.template(\`
\`); +var _tmpl$$K = /*#__PURE__*/web.template(\`
\`); const [ref, setRef] = solidJs.createSignal(); const Toaster = () => { const [visible, setVisible] = solidJs.createSignal(document.visibilityState === 'visible'); @@ -1850,7 +1850,7 @@ const Toaster = () => { solidJs.onCleanup(() => document.removeEventListener('visibilitychange', handleVisibilityChange)); }); return (() => { - var _el$ = _tmpl$$L(); + var _el$ = _tmpl$$K(); web.use(setRef, _el$); web.insert(_el$, web.createComponent(solidJs.For, { get each() { @@ -1872,8 +1872,8 @@ const Toaster = () => { })(); }; -// eslint-disable-next-line unicorn/prefer-export-from -const ToastStyle = css$3; +const ToastStyle = new CSSStyleSheet(); +ToastStyle.replaceSync(css$3); const getDom = id => { let dom = document.getElementById(id); @@ -1899,7 +1899,6 @@ const mountComponents = (id, fc, styleSheets) => { return dom; }; -var _tmpl$$K = /*#__PURE__*/web.template(\`