@@ -1350,11 +1350,6 @@ function: {
13501350 }
13511351 } // 国家自然科学基金
13521352 } ;
1353- // 向后兼容一段时间就移除
1354- /*if (JSON.stringify(GM_getValue('menu_customRules', {})).indexOf('functionS') > -1 || JSON.stringify(GM_getValue('menu_customRules', {})).indexOf('css;') > -1) { // 改名过渡,过段时间将其移除
1355- GM_setValue('menu_customRules', JSON.parse(JSON.stringify(GM_getValue('menu_customRules', {})).replaceAll('functionS', 'url').replaceAll('css;', '')))
1356- }*/
1357- //console.log(GM_getValue('menu_customRules'), GM_getValue('menu_rules'))
13581353 // 合并 自定义规则、外置规则、内置规则
13591354 DBSite = Object . assign ( GM_getValue ( 'menu_customRules' , { } ) , GM_getValue ( 'menu_rules' , { } ) , DBSite )
13601355 // 生成 SiteTypeID
@@ -3231,8 +3226,8 @@ function: {
32313226 // 自定义翻页规则
32323227 function customRules ( ) {
32333228 if ( getCSS ( '#Autopage_customRules' ) ) return
3234- // 改名过渡,过段时间将其移除
3235- let customRules = JSON . stringify ( GM_getValue ( 'menu_customRules' , { } ) , null , '\t' ) . replaceAll ( 'functionS' , 'url' ) . replaceAll ( 'css;' , '' ) ;
3229+
3230+ let customRules = JSON . stringify ( GM_getValue ( 'menu_customRules' , { } ) , null , '\t' ) ;
32363231 if ( customRules == '{}' ) customRules = '{\n\t\n}' ; // 引导用户插入位置
32373232 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.95 !important; z-index: 99999 !important; background-color: #eee !important; color: #222 !important; font-size: 14px !important; overflow: scroll !important; text-align: left !important;">
32383233<h3 style="font-size: 22px !important;"><strong># 自定义翻页规则(优先级最高,但前提是 "规则名" 不能重复)-【将规则插入默认的 <code>{ }</code> 中间】</strong></h3>
@@ -3306,8 +3301,7 @@ function: {
33063301 document . documentElement . style . overflow = document . body . style . overflow = 'hidden' ;
33073302 // 点击事件
33083303 getCSS ( '#Autopage_customRules_save' ) . onclick = function ( ) {
3309- // 改名过渡,过段时间将其移除
3310- customRules = getCSS ( '#Autopage_customRules_textarea' ) . value . replaceAll ( 'functionS' , 'url' ) . replaceAll ( 'css;' , '' ) ;
3304+ customRules = getCSS ( '#Autopage_customRules_textarea' ) . value ;
33113305 //console.log(customRules)
33123306 if ( ! customRules ) customRules = '{}'
33133307 try {
0 commit comments