Skip to content

Commit 031f37f

Browse files
committed
优化 [自定义翻页规则] 样式
1 parent c778fbb commit 031f37f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Autopage.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7715,7 +7715,7 @@ function: {
77157715
if (getCSS('#Autopage_customRules')) return
77167716

77177717
// 插入网页
7718-
let _html = `<div id="Autopage_customRules" style="left: 0 !important; right: 0 !important; top: 0 !important; bottom: 0 !important; width: 100% !important; height: 100% !important; margin: auto !important; padding: 25px 10px 10px 10px !important; position: fixed !important; opacity: 0.9 !important; z-index: 99999 !important; background-color: #eee !important;">
7718+
let _html = `<div id="Autopage_customRules" style="left: 0 !important; right: 0 !important; top: 0 !important; bottom: 0 !important; width: 100% !important; height: 100% !important; margin: auto !important; padding: 25px 10px 10px 10px !important; position: fixed !important; opacity: 0.9 !important; z-index: 99999 !important; background-color: #eee !important; color: #222 !important; font-size: 14px !important;">
77197719
<h3><strong>自定义翻页规则(优先于脚本内置规则)</strong></h3>
77207720
<ul style="list-style: disc !important; margin-left: 35px !important;">
77217721
<li>翻页规则为 JSON 格式,因此大家需要先去了解一下 JSON 的基本格式(如:两边都需要双引号、最后一个末尾不能加逗号等)。</li>
@@ -7725,7 +7725,7 @@ function: {
77257725
</ul>
77267726
<p style="color: #ff3535 !important;">注意:不要完全照搬脚本内置规则,因为和标准 JSON 格式有所差别,如:必须两边内容都加双引号(不能用单引号)。</p>
77277727
7728-
<textarea id="Autopage_customRules_textarea" style="min-width:95% !important; min-height:300px !important; display: block !important; margin: 10px 0 10px 0; white-space:nowrap !important; overflow:scroll !important;" placeholder="留空等于默认的 {}">${JSON.stringify(GM_getValue('menu_customRules', {}), null, '\t')}</textarea>
7728+
<textarea id="Autopage_customRules_textarea" style="min-width:95% !important; min-height:300px !important; display: block !important; margin: 10px 0 10px 0; white-space:nowrap !important; overflow:scroll !important; resize: auto !important;" placeholder="留空等于默认的 {}">${JSON.stringify(GM_getValue('menu_customRules', {}), null, '\t')}</textarea>
77297729
<button id="Autopage_customRules_save">保存并刷新</button><button id="Autopage_customRules_cancel">取消</button>
77307730
</div>`
77317731
document.documentElement.insertAdjacentHTML('beforeend', _html);

0 commit comments

Comments
 (0)