优化 [2DFan] 规则

This commit is contained in:
xiu2
2022-05-28 14:13:44 +08:00
parent 08c6552ee6
commit 8760d251e9
+5 -14
View File
@@ -735,25 +735,16 @@
"replaceE": ".page_inner"
}
},
"2DFan - 图文": {
"2DFan": {
"host": ["2dfan.com","www.2dfan.com","galge.fun"],
"url": "return (fun.getCSS('#subjects')&&fun.getCSS('.pagination'))",
"url": "return (fun.getCSS('.media-list,.topic-list')&&fun.getCSS('.pagination'))",
"pager": {
"nextL": "a[rel='next']",
"pageE": "body",
"insertP": ["#subjects>.media",5]
"pageE": ".media-list>.media,.topic-list>tbody>tr",
"replaceE": ".pagination>ul"
},
"function": {
"bF": "o=document.createElement('div'); o.innerHTML=JSON.parse(pageE[0].textContent).subjects; fun.getCSS('.pagination').outerHTML = o.querySelector('.pagination').outerHTML; return fun.src_bF([].slice.call(o.querySelectorAll('.media')), [0,'img[data-normal]','data-normal'])"
}
},
"2DFan - 表格": {
"host": ["2dfan.com","www.2dfan.com","galge.fun"],
"url": "return (fun.getCSS('.topic-list, .download-list')&&fun.getCSS('.pagination'))",
"pager": {
"nextL": "a[rel='next']",
"pageE": ".topic-list>tbody>tr, .download-list>.media",
"replaceE": ".pagination>ul"
"bF": "return fun.src_bF(pageE, [0,'img[data-normal]','data-normal'])"
}
},
"2DFan - 评论": {