Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new sites #1067

Merged
merged 13 commits into from
Sep 6, 2020
Merged
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 119 additions & 5 deletions src/website_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,17 +296,18 @@
]
},{
"name" : "question.zhihu.com",
"url" : "https://www.zhihu.com/question/**/*",
"url" : "https://www.zhihu.com/question/*",
"type" : "multi",
"avatar" : [
{"name" : "[[{$('.AuthorInfo-name')}]]"},
{"url" : "[[{$('.AuthorInfo-avatar')}]]"}
],
"title" : "[[{$($('.QuestionHeader-main').find('h1')[0]).text()}]]",
"desc" : "",
"desc" : "[[{($('.QuestionRichText span').html(JSON.parse(JSON.stringify($.parseJSON($('#js-initialData').text()).initialState.entities.questions).replace(/\"\\d+\":/,'\"questions\":')).questions.detail.replaceAll('。','.')).text()+'。').replace(/.。$/,'。')}]]",
"include" : "[[{$('.RichContent-inner')}]]",
"exclude" : [
"<i class='icon-external'>"
"<i class='icon-external'>",
"<div class='RichText-MCNLinkCardContainer'>"
],
"css" : ".MCNLinkCard-info { margin-left: 12px;}"
},{
Expand Down Expand Up @@ -460,14 +461,32 @@
""
]
},{
"name" : "book.douban.com",
"name" : "reading.book.douban.com",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

由于book.douban.com域名下有多种页面分类,因此将标识进一步明确

"url" : "https://book.douban.com/reading/*",
"title" : "<h1>",
"desc" : "",
"include" : "<div class=\"book-content\">",
"exclude" : [
""
]
},{
"name" : "annotation.book.douban.com",
"url" : "https://book.douban.com/annotation/*",
binsee marked this conversation as resolved.
Show resolved Hide resolved
"title" : "<title>",
"desc" : "",
"include" : "<div id='link-report'>",
"exclude" : [
""
]
},{
"name" : "review.book.douban.com",
"url" : "https://book.douban.com/review/*",
"title" : "<title>",
"desc" : "",
"include" : "<div id='link-report'>",
"exclude" : [
""
]
},{
"name" : "people.douban.com",
"url" : "https://www.douban.com/people/*/status/*",
Expand All @@ -477,6 +496,23 @@
"exclude" : [
""
]
},{
"name" : "group.douban.com",
"url" : "http*://www.douban.com/group/topic/*",
"title" : "<title>",
"desc" : "",
"avatar" : [
{"name" : "[[{$('.topic-doc h3 a,h4 a')}]]"},
{"url" : "[[{$('.user-face img')}]]"}
],
"paging" : [
{"prev" : "[[{$('.paginator .prev a').attr('href')}]]"},
{"next" : "[[{$('.paginator .next a').attr('href')}]]"}
],
"include" : "[[{$('.article #link-report,.reply-content')}]]",
"exclude" : [
""
]
},{
"name" : "douban.com",
"url" : "https://www.douban.com/*",
Expand Down Expand Up @@ -1927,7 +1963,8 @@
"include" : "[[`//*[@id='articleId']`]]",
"exclude" : [
"<h1 class='item-name'>",
"<span class='embed-card'>"
"<div class='coupon-card-wraper'>",
"<div class='brand-card-box'>"
],
"css" : ".embed-card-logo { margin-right: 14px }"
},{
Expand Down Expand Up @@ -3364,5 +3401,82 @@
"<aside>",
"<svg>"
]
},{
"name" : "www.52pojie.cn",
"url" : "http*://www.52pojie.cn/thread-*",
"title" : "[[{$('meta[name=keywords]').attr('content')||$('title').text()}]]",
"desc" : "[[{$('meta[name=Description]').attr('content')||$('meta[name=description]').attr('content')}]]",
"avatar" : [
{"name" : "[[{$('*.pls *.avatar img').parent().parent().parent().parent().find('div.pi a')}]]"},
{"url" : "[[{$('*.pls *.avatar img')}]]"}
],
"paging" : [
{"prev" : "[[{$('div.pg a.prev').attr('href')}]]"},
{"next" : "[[{$('div.pg a.nxt').attr('href')}]]"}
],
"include" : "[[{$('td.t_f')}]]",
"exclude" : [
"[[[$('div.tip')]]]",
"[[[$('i.pstatus')]]]"
]
},{
"name" : "bbs.pcbeta.com",
"url" : "http*://bbs.pcbeta.com/viewthread-*",
"title" : "[[{$('meta[name=keywords]').attr('content')||$('title').text()}]]",
"desc" : "[[{$('meta[name=Description]').attr('content')||$('meta[name=description]').attr('content')}]]",
"avatar" : [
{"name" : "[[{$('*.pls *.avatar img').parent().parent().parent().parent().find('div.pi a')}]]"},
{"url" : "[[{$('*.pls *.avatar img')}]]"}
],
"paging" : [
{"prev" : "[[{$('div.pg a.prev').attr('href')}]]"},
{"next" : "[[{$('div.pg a.nxt').attr('href')}]]"}
],
"include" : "[[{$('td.t_f')}]]",
"exclude" : [
"[[[$('div.tip')]]]",
"[[[$('i.pstatus')]]]"
]
},{
"name" : "xie.infoq.cn",
"url" : "http*://xie.infoq.cn/article/*",
"title" : "<title>",
"desc" : "[[{$('meta[name=Description]').attr('content')||$('meta[name=description]').attr('content')}]]",
"include" : "[[`//*[@class='preview-wrap']`]]",
"exclude" : [
"[[`//div[contains(@class,'selection-operation-bar')]`]]"
]
},{
"name" : "www.biji.com",
"url" : "http*://www.biji.com/article/*",
"title" : "<div class='article-title'>",
"desc" : "[[{$('div.course-title').text()||$('meta[name=Description]').attr('content')||$('meta[name=description]').attr('content')}]]",
"include" : "[[`//div[@class='artical-info']`]]",
"exclude" : [
"<div class='message-v2'>",
"<div class='em-menu'>",
"<div class='author'>",
"<div class='article-title'>",
"<div class='article-info'>"
]
},{
"name" : "www.chongdiantou.com",
"url" : "http*://www.chongdiantou.com/wp/archives/*",
"title" : "<title>",
"desc" : "[[{$('meta[name=Description]').attr('content')||$('meta[name=description]').attr('content')}]]",
"include" : "[[`//*[contains(@class,'post-content')]`]]",
"exclude" : [
""
]
},{
"name" : "bbs.pediy.com",
"url" : "http*://bbs.pediy.com/thread-*",
"title" : "[[{$('meta[name=keywords]').attr('content')||$('meta[name=description]').attr('content')}]]",
"desc" : "[[{$('meta[name=Description]').attr('content')||$('meta[name=description]').attr('content')}]]",
"include" : "[[[$('div.message:first')]]]",
"exclude" : [
""
],
"css" : ".simpread-read-root {align-items: baseline;}"
}]
}