@@ -7765,7 +7765,7 @@ function: {
77657765 if ( getCSS ( '#Autopage_customRules' ) ) return
77667766
77677767 // 插入网页
7768- 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;">
7768+ 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; overflow: scroll !important; ">
77697769<h3><strong>自定义翻页规则(优先于脚本内置规则)</strong></h3>
77707770<details>
77717771<summary><kbd><strong>「 点击展开 查看示例 」(把常用规则都放在一起了,方便需要的时候可复制一份修改使用)</strong></kbd></summary>
@@ -7775,7 +7775,7 @@ function: {
77757775<li>该功能只适用于<strong>简单的网站</strong>,当然这类网站占<strong>大多数</strong>,我写的数百规则里大部分都是这类网站。</li>
77767776<li>脚本会自动格式化规则,因此<strong>无需手动缩进、换行</strong>。</li>
77777777</ul>
7778- <p style="color: #ff3535 !important;">注意:不要完全照搬脚本内置规则,因为和标准 JSON 格式等有所差别。</p>
7778+ <p style="color: #ff3535 !important;">注意:不要完全照搬脚本内置规则,因为和标准 JSON 格式等有所差别,具体请参考下面示例 。</p>
77797779<pre>
77807780"aaa": {
77817781 "host": "aaa",
@@ -7816,7 +7816,7 @@ function: {
78167816<button id="Autopage_customRules_save">保存并刷新</button><button id="Autopage_customRules_cancel">取消</button>
78177817</div>`
78187818 document . documentElement . insertAdjacentHTML ( 'beforeend' , _html ) ;
7819- document . body . style . overflow = 'hidden' ;
7819+ document . documentElement . style . overflow = document . body . style . overflow = 'hidden' ;
78207820 // 点击事件
78217821 getCSS ( '#Autopage_customRules_save' ) . onclick = function ( ) {
78227822 let rules = getCSS ( '#Autopage_customRules_textarea' ) . value ;
@@ -7832,7 +7832,7 @@ function: {
78327832 window . alert ( '自定义规则存在格式错误:\n' + e + '\n\n注意事项:\n规则中冒号 : 左右的内容都需要加上双引号 " 而不能用单引号 \',如果内容中含有双引号则需要对双引号转义(即 \" 这样)或者改用单引号' ) ;
78337833 }
78347834 }
7835- getCSS ( '#Autopage_customRules_cancel' ) . onclick = function ( ) { document . body . style . overflow = '' ; getCSS ( '#Autopage_customRules' ) . remove ( ) ; }
7835+ getCSS ( '#Autopage_customRules_cancel' ) . onclick = function ( ) { document . documentElement . style . overflow = document . body . style . overflow = '' ; getCSS ( '#Autopage_customRules' ) . remove ( ) ; }
78367836 }
78377837 // 显示页码
78387838 function pageNumber ( type ) {
0 commit comments