mirror of
https://github.com/letian1650/N3RD.git
synced 2025-01-24 03:05:33 +08:00
79 lines
2.5 KiB
JavaScript
79 lines
2.5 KiB
JavaScript
var rule = {
|
|
类型: '小说',//影视|听书|漫画|小说
|
|
title: '顶点小说[书]',
|
|
host: 'https://www.23ddw.cc/',
|
|
编码: 'gb18030',
|
|
url: '/fyclass/#fypage',
|
|
|
|
searchUrl: '/modules/article/search.php?searchkey=**&page=fypage',
|
|
searchable: 2,
|
|
quickSearch: 0,
|
|
filterable: 1,
|
|
filter: '',
|
|
filter_url: '',
|
|
filter_def: {},
|
|
headers: {
|
|
'User-Agent': 'MOBILE_UA',
|
|
},
|
|
timeout: 5000,
|
|
hikerListCol: "text_1",
|
|
hikerClassListCol: "text_1",
|
|
class_name: '全本',
|
|
class_url: '0',
|
|
class_parse: '.nav&&ul&&li;a&&Text;a&&href;class/(.*?)_',
|
|
cate_exclude: '',
|
|
play_parse: true,
|
|
lazy: $js.toString(() => {
|
|
let html = request(input);
|
|
let title = pdfh(html, '.bookname&&h1&&Text');
|
|
let content = pdfh(html, '#content&&Html').replace(/\n/g, "").split("<br>").filter(v => v).slice(0).join("\n").replace(/ /g, ' ');
|
|
let ret = JSON.stringify({
|
|
title,
|
|
content
|
|
});
|
|
input = {parse: 0, url: 'novel://' + ret, js: ''};
|
|
}),
|
|
double: false,
|
|
推荐: '#newscontent&&ul&&li;.s2&&Text;;.s5&&Text;a&&href',
|
|
一级: $js.toString(() => {
|
|
let d = [];
|
|
if (MY_CATE == '0') {
|
|
input = urljoin(rule.host, '/quanben/' + MY_PAGE);
|
|
let html = request(input);
|
|
let lis = pdfa(html, 'table.grid&&tr:gt(0)');
|
|
lis.forEach(it => {
|
|
d.push({
|
|
title: pdfh(it, 'a&&Text'),
|
|
desc: pdfh(it, 'a:eq(1)&&Text'),
|
|
img: "",
|
|
url: pd(it, 'a&&href', MY_URL),
|
|
});
|
|
});
|
|
} else {
|
|
let html = request(input.split('#')[0]);
|
|
let lis = pdfa(html, '#newscontent&&ul&&li');
|
|
lis.forEach(it => {
|
|
d.push({
|
|
title: pdfh(it, '.s2&&Text'),
|
|
desc: pdfh(it, '.s5&&Text'),
|
|
img: "",
|
|
url: pd(it, 'a&&href', MY_URL),
|
|
});
|
|
});
|
|
}
|
|
setResult(d);
|
|
}),
|
|
二级: {
|
|
title: 'h1&&Text',
|
|
img: '#fmimg&&img&&src',
|
|
desc: '#info&&p:eq(-1)&&Text',
|
|
content: '#intro&&p&&Text',
|
|
tabs: '#list&&dt',
|
|
lists: '#list&&dd',
|
|
tab_text: 'body&&Text',
|
|
list_text: 'body&&Text',
|
|
list_url: 'a&&href',
|
|
list_url_prefix: '',
|
|
},
|
|
搜索: 'table.grid&&tr:gt(0);a&&Text;;.odd:eq(1)&&Text;a&&href;a:eq(1)&&Text',
|
|
} |