diff --git a/Autopage.user.js b/Autopage.user.js index 3f15175..aa45ea3 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1350,11 +1350,6 @@ function: { } } // 国家自然科学基金 }; - // 向后兼容一段时间就移除 - /*if (JSON.stringify(GM_getValue('menu_customRules', {})).indexOf('functionS') > -1 || JSON.stringify(GM_getValue('menu_customRules', {})).indexOf('css;') > -1) { // 改名过渡,过段时间将其移除 - GM_setValue('menu_customRules', JSON.parse(JSON.stringify(GM_getValue('menu_customRules', {})).replaceAll('functionS', 'url').replaceAll('css;', ''))) - }*/ - //console.log(GM_getValue('menu_customRules'), GM_getValue('menu_rules')) // 合并 自定义规则、外置规则、内置规则 DBSite = Object.assign(GM_getValue('menu_customRules', {}), GM_getValue('menu_rules', {}), DBSite) // 生成 SiteTypeID @@ -3231,8 +3226,8 @@ function: { // 自定义翻页规则 function customRules() { if (getCSS('#Autopage_customRules')) return - // 改名过渡,过段时间将其移除 - let customRules = JSON.stringify(GM_getValue('menu_customRules', {}), null, '\t').replaceAll('functionS', 'url').replaceAll('css;', ''); + + let customRules = JSON.stringify(GM_getValue('menu_customRules', {}), null, '\t'); if (customRules == '{}') customRules = '{\n\t\n}'; // 引导用户插入位置 let _html = `
{ } 中间】