Skip to content

Commit 6a28edf

Browse files
committed
新增 [V2EX - 帖子内] 支持; 合并 各个 V2EX 规则; 补充 [古诗文网] 其他域名
1 parent 6de42d2 commit 6a28edf

1 file changed

Lines changed: 12 additions & 40 deletions

File tree

other/Autopage/rules.json

Lines changed: 12 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -578,52 +578,24 @@
578578
"scriptT": 2
579579
}
580580
},
581-
"V2EX - 最近主题页": {
581+
"V2EX - 帖子内": {
582582
"host": ["v2ex.com","www.v2ex.com"],
583-
"url": "return (fun.lp() == '/recent')",
584-
"blank": 3,
585-
"pager": {
586-
"nextL": "a.page_current+a.page_normal",
587-
"pageE": ".cell.item",
588-
"replaceE": "#Main>.box>.cell[style]:not(.item)>table"
589-
}
590-
},
591-
"V2EX - 提醒消息页": {
592-
"host": ["v2ex.com","www.v2ex.com"],
593-
"url": "return (fun.lp() == '/notifications')",
594-
"pager": {
595-
"nextL": "a.page_current+a.page_normal",
596-
"pageE": "#notifications>div",
597-
"replaceE": "#Main>.box>.cell[style]>table"
598-
}
599-
},
600-
"V2EX - 用户回复页": {
601-
"host": ["v2ex.com","www.v2ex.com"],
602-
"url": "/\\/replies/",
583+
"url": "/^\\/t\\//",
584+
"thread": true,
603585
"pager": {
604-
"nextL": "a.page_current+a.page_normal",
605-
"pageE": "//div[@id='Main']//div[@class='box']//div[@class='dock_area'] | //*[@id='Main']//div[@class='box']//div[@class='inner'] | //*[@id='Main']//div[@class='box']//div[@class='dock_area'][last()]/following-sibling::div[@class='cell'][1]",
606-
"insertP": ["//div[@id='Main']//div[@class='box']//div[@class='cell'][last()]",1],
607-
"replaceE": "#Main>.box>.cell[style]>table"
586+
"nextL": ".page_current+a",
587+
"pageE": ".cell[id^='r_']",
588+
"replaceE": "//a[@class='page_current']/../.."
608589
}
609590
},
610-
"V2EX - 分类主题页": {
591+
"V2EX": {
611592
"host": ["v2ex.com","www.v2ex.com"],
612-
"url": "/\\/go\\//",
593+
"url": "return fun.getCSS('.page_current+a')",
613594
"blank": 3,
614595
"pager": {
615-
"nextL": "a.page_current+a.page_normal",
616-
"pageE": "#TopicsNode>div",
617-
"replaceE": "#Main>.box>.cell[style]>table"
618-
}
619-
},
620-
"V2EX - 账户余额页": {
621-
"host": ["v2ex.com","www.v2ex.com"],
622-
"url": "return (fun.lp() == '/balance')",
623-
"pager": {
624-
"nextL": "a.page_current+a.page_normal",
625-
"pageE": "#Main .box>div:not(.cell)>table>tbody>tr:not(:first-child)",
626-
"replaceE": "#Main>.box>.cell[style]>table"
596+
"nextL": ".page_current+a",
597+
"pageE": ".cell.item, #notifications>div, #TopicsNode>div, #Main>.box>.dock_area,#Main>.box>.dock_area+.inner,#Main>.box>.dock_area+.cell:not([style]), table.data>tbody>tr:not(:first-child)",
598+
"replaceE": "//a[@class='page_current']/../.."
627599
}
628600
},
629601
"煎蛋网": {
@@ -5292,7 +5264,7 @@
52925264
}
52935265
},
52945266
"古诗文网": {
5295-
"host": ["www.gushiwen.cn","so.gushiwen.cn","m.gushiwen.cn"],
5267+
"host": ["www.gushiwen.cn","so.gushiwen.cn","m.gushiwen.cn","shiwens.com"],
52965268
"pager": {
52975269
"nextL": "a.amore",
52985270
"pageE": ".left .sons:not([id]), .sonspic",

0 commit comments

Comments
 (0)