Skip to content

Commit

Permalink
Modify websites
Browse files Browse the repository at this point in the history
  • Loading branch information
binsee committed Oct 1, 2020
1 parent 51befd7 commit 5d3df55
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/website_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@
"url" : "https://zhuanlan.zhihu.com/p/",
"title" : "<h1 class='Post-Title'>",
"desc" : "",
"include" : "[[[(function(){$('figure noscript').each(function(){var noscript = $(this).text();var img = $(this).parent().empty().append(noscript).find('img');var src = img.attr('src') || '';if(src.match(/.gif/)) img.attr('real_src',src);});return $('.Post-RichText');}())]]]",
"include": "[[[$('.Post-RichText')]]]",
"exclude" : [
""
"[[{(function(){$('sr-rd-content figure noscript').each(function(){var noscript = $(this).text();if(noscript.match(/<img/)) {var img = $(this).parent().empty().append(noscript).find('img');var src = img.attr('src') || '';if(src.match(/.gif/)) img.attr('real_src',src);}});}())}]]"
]
},{
"name" : "dudu.zhihu.com",
Expand Down Expand Up @@ -304,8 +304,9 @@
],
"title": "[[{$('main .QuestionHeader-main').find('h1').text()}]]",
"desc": "[[{($('main .QuestionRichText span').first().html(JSON.parse(JSON.stringify($.parseJSON($('#js-initialData').text()).initialState.entities.questions).replace(/\"\\d+\":/,'\"questions\":')).questions.detail.replaceAll('。','.')).text()+'。').replace(/\\.。$/,'。')}]]",
"include" : "[[{(function(){$('figure noscript').each(function(){var noscript = $(this).text();var img = $(this).parent().empty().append(noscript).find('img');var src = img.attr('src') || '';if(src.match(/.gif/)) img.attr('real_src',src);});return $('.RichContent-inner');}())}]]",
"include": "[[[$('.RichContent-inner')]]]",
"exclude" : [
"[[{(function(){$('sr-rd-content figure noscript').each(function(){var noscript = $(this).text();if(noscript.match(/<img/)) {var img = $(this).parent().empty().append(noscript).find('img');var src = img.attr('src') || '';if(src.match(/.gif/)) img.attr('real_src',src);}});}())}]]",
"<i class='icon-external'>",
"<div class='RichText-MCNLinkCardContainer'>"
],
Expand Down

0 comments on commit 5d3df55

Please sign in to comment.