diff --git a/src/website_list.json b/src/website_list.json index 9745ce283..c05ef7363 100644 --- a/src/website_list.json +++ b/src/website_list.json @@ -272,7 +272,7 @@ "url" : "https://zhuanlan.zhihu.com/p/", "title" : "

", "desc" : "", - "include" : "
", + "include" : "[[[(function(){$('.ztext-gif').each(function(){if(this.src.match(/.jpg$/))this.src=this.src.replace(/.jpg$/,'.gif')});return $('.Post-RichText');}())]]]", "exclude" : [ "" ] @@ -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" : "", + "title" : "[[{$('.QuestionHeader-main').find('h1').text()}]]", + "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" : [ - "" + "", + "
" ], "css" : ".MCNLinkCard-info { margin-left: 12px;}" },{ @@ -460,7 +461,7 @@ "" ] },{ - "name" : "book.douban.com", + "name" : "reading.book.douban.com", "url" : "https://book.douban.com/reading/*", "title" : "

", "desc" : "", @@ -468,6 +469,24 @@ "exclude" : [ "" ] + },{ + "name" : "annotation.book.douban.com", + "url" : "https://book.douban.com/annotation/*", + "title" : "", + "desc" : "", + "include" : "[[`//*[@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/*", @@ -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/*", @@ -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 }" },{ @@ -3364,5 +3401,95 @@ "<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" : "www.guancha.cn", + "url" : "https://www.guancha.cn/**/*html", + "title" : "<title>", + "desc" : "[[{$('meta[name=Description]').attr('content')||$('meta[name=description]').attr('content')}]]", + "paging" : [ + {"prev" : "[[{$('a.prev').last().attr('onclick')}]]"}, + {"next" : "[[{$('a.next').attr('onclick')}]]"} + ], + "include" : "[[[$('.content-main .content')]]]", + "exclude" : [ + "" + ] + },{ + "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;}" }] } \ No newline at end of file