From 4db67ec2aa26d3df664ee7c949d8f20aeba33fc2 Mon Sep 17 00:00:00 2001 From: Kenshin Date: Sat, 9 Sep 2017 14:00:48 +0800 Subject: [PATCH 01/20] Update README.md. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7a4ab0c95..1630a025b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@

简悦 - SimpRead

让你瞬间进入沉浸式阅读的 Chrome 扩展,还原阅读的本质,提升你的阅读体验。

-

为了达到完美的阅读模式这个小目标 ,我适配了 180+ 个网站,因此诞生了简悦。

+

为了达到完美的阅读模式这个小目标 ,我适配了 200+ 个网站,因此诞生了简悦。

@@ -18,7 +18,7 @@ #### 主要功能一览: - 阅读模式: - 简悦 `原创` 功能,逐一适配了 [180+](https://github.com/kenshin/simpread/wiki/适配站点列表) 个网站,自动提取 `标题` `描述` `正文` `媒体资源( 图片/ 视频 )` 等,生成 `符合中文阅读` 的页面 + 简悦 `原创` 功能,逐一适配了 [200+](https://github.com/kenshin/simpread/wiki/适配站点列表) 个网站,自动提取 `标题` `描述` `正文` `媒体资源( 图片/ 视频 )` 等,生成 `符合中文阅读` 的页面 - 聚焦模式: 不改变当前页面的结构,仅仅高亮需要阅读的部分,不分散用户的注意力;适合 `临时阅读` 或者 `未适配阅读模式` 的网站 From 4a0c94a4571a425d893275c1571ebac593a10460 Mon Sep 17 00:00:00 2001 From: Kenshin Date: Sat, 9 Sep 2017 14:01:47 +0800 Subject: [PATCH 02/20] Add same webiste. --- src/website_list.json | 152 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 147 insertions(+), 5 deletions(-) diff --git a/src/website_list.json b/src/website_list.json index 143ef3a11..1c7b1cf68 100644 --- a/src/website_list.json +++ b/src/website_list.json @@ -42,6 +42,15 @@ "exclude" : [ "

" ] + },{ + "name" : "pingwest.com", + "url" : "http://www.pingwest.com/wire/", + "title" : "

", + "desc" : "", + "include" : "
", + "exclude" : [ + "

", + "desc" : "", + "include" : "
", + "exclude" : [ + "
" + ] },{ "name" : "blog.jobbole.com", "url" : "http://blog.jobbole.com/*/", @@ -539,6 +557,42 @@ "
", "
" ] + },{ + "name" : "android.jobbole.com", + "url" : "http://android.jobbole.com/*/", + "title" : "", + "desc" : "", + "include" : "<div class='entry'>", + "exclude" : [ + "<div class='copyright-area'>", + "<blockquote class='rewards'>", + "<div class='post-adds'>", + "<div id='author-bio'>" + ] + },{ + "name" : "ios.jobbole.com", + "url" : "http://ios.jobbole.com/*/", + "title" : "<title>", + "desc" : "", + "include" : "<div class='entry'>", + "exclude" : [ + "<div class='copyright-area'>", + "<blockquote class='rewards'>", + "<div class='post-adds'>", + "<div id='author-bio'>" + ] + },{ + "name" : "python.jobbole.com", + "url" : "http://python.jobbole.com/*/", + "title" : "<title>", + "desc" : "", + "include" : "<div class='entry'>", + "exclude" : [ + "<div class='copyright-area'>", + "<blockquote class='rewards'>", + "<div class='post-adds'>", + "<div id='author-bio'>" + ] },{ "name" : "top.jobbole.com", "url" : "http://top.jobbole.com/*/", @@ -837,7 +891,7 @@ "url" : "https://www.v2ex.com/t/", "title" : "[[{$('.header h1').text()}]]", "desc" : "", - "include" : "<div class='markdown_body'>", + "include" : "<div class='topic_content'>", "exclude" : [ "" ] @@ -1236,9 +1290,31 @@ "include" : "<div class='entry-content'>", "exclude" : [ "<div class='similarity'>", - "<div class='post-copyright'>", + "<div class='post-copyright'>", "[[/src=\\S+(youshege725)\\S+'/]]" ] + },{ + "name" : "kancloud.cn", + "url" : "https://www.kancloud.cn/*/*/*", + "paging" : [ + {"prev" : "[[{$('.article-navigation').find('.prev a').attr('href')}]]"}, + {"next" : "[[{$('.article-navigation').find('.next a').attr('href')}]]"} + ], + "title" : "[[{$('.article-head').find('h1').text()}]]", + "desc" : "", + "include" : "<div class='article-body'>", + "exclude" : [ + "" + ] + },{ + "name" : "blog.wanqu.co", + "url" : "https://wanqu.co/b/*/*.html*", + "title" : "[[{$('.blog-post-body h1').text()}]]", + "desc" : "", + "include" : "<div class='blog-post-body'>", + "exclude" : [ + "" + ] },{ "name" : "voidcn.com", "url" : "http://www.voidcn.com/blog/**/*/*.html", @@ -1374,7 +1450,7 @@ },{ "name" : "ithome.com", "url" : "https://www.ithome.com/html/**/*/*.htm", - "title" : "<h1>", + "title" : "[[{$('.post_title').find('h1').text()}]]", "desc" : "", "include" : "<div id='paragraph'>", "exclude" : [ @@ -1445,7 +1521,16 @@ ] },{ "name" : "toutiao.com", - "url" : "https://www.toutiao.com/a*/", + "url" : "http*://www.toutiao.com/a*/", + "title" : "<h1 class='article-title'>", + "desc" : "", + "include" : "<div class='article-content'>", + "exclude" : [ + "" + ] + },{ + "name" : "toutiao.com", + "url" : "http*://www.toutiao.com/i*/", "title" : "<h1 class='article-title'>", "desc" : "", "include" : "<div class='article-content'>", @@ -1593,6 +1678,36 @@ "exclude" : [ "" ] + },{ + "name" : "news.china.com.cn", + "url" : "http://news.china.com.cn/**/*/*.htm", + "title" : "<h1 class='articleTitle'>", + "desc" : "", + "include" : "<div id='articleBody'>", + "exclude" : [ + "" + ] + },{ + "name" : "article.huanqiu.com/", + "url" : "http://*.huanqiu.com/*/*/*.html", + "title" : "<h1>", + "desc" : "", + "include" : "<div id='text'>", + "exclude" : [ + "<div class='editorSign'>", + "<div class='reTopics'>" + ] + },{ + "name" : "news.mindynode.com", + "url" : "https://news.mindynode.com/zh/links/*", + "title" : "<div id='parsed_title'>", + "desc" : "", + "include" : "<div id='parsed_content'>", + "exclude" : [ + "<div class='reTopics'>", + "<p class='read-art-extra-bonus'>", + "<div class='editorSign'>" + ] },{ "name" : "zhidx.com", "url" : "http://zhidx.com/p/", @@ -1767,6 +1882,19 @@ "exclude" : [ "" ] + },{ + "name" : "jingyan.baidu.com", + "url" : "http://jingyan.baidu.com/article/*.html", + "title" : "<title>", + "desc" : "", + "include" : "<li class='exp-content-list'>", + "exclude" : [ + "<span class='exp-album-enter-mask'>", + "<span class='enter-step-btn'>", + "<span class='last-item-end'>", + "<div class='quote-item'>", + "<div class='list-icon'>" + ] },{ "name" : "g-cores.com", "url" : "http://www.g-cores.com/articles/", @@ -1818,6 +1946,20 @@ "[[/src=\\S+(none.gif)\\S+'/]]", "<div class='aimg_tip'>" ] + },{ + "name" : "bbs.hupu.com", + "url" : "https://bbs.hupu.com/*.html", + "title" : "<h1 id='j_data'>", + "desc" : "", + "avatar" : [ + {"name" : "[[{$('.author').find('.left a')}]]"}, + {"url" : "[[{$('.user').find('img')}]]"} + ], + "include" : "[[{$('table.case')}]]", + "exclude" : [ + "<div class='video-play-1'>", + "<div class='vote_box'>" + ] },{ "name" : "qu.la", "url" : "http://www.qu.la/book/*/*.html", From 76c40dcf92f4086fd46c7dfc0afb9bc659076d40 Mon Sep 17 00:00:00 2001 From: Kenshin <fxblog@gmail.com> Date: Sat, 9 Sep 2017 14:30:35 +0800 Subject: [PATCH 03/20] Modify same website. --- src/website_list.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/website_list.json b/src/website_list.json index 1c7b1cf68..a0e1b69d5 100644 --- a/src/website_list.json +++ b/src/website_list.json @@ -1313,7 +1313,7 @@ "desc" : "", "include" : "<div class='blog-post-body'>", "exclude" : [ - "" + "<h1>" ] },{ "name" : "voidcn.com", From 783b1d81ed8507ec1106e93a365f60133b602f41 Mon Sep 17 00:00:00 2001 From: Kenshin <fxblog@gmail.com> Date: Fri, 15 Sep 2017 13:35:13 +0800 Subject: [PATCH 04/20] Add same website. --- src/website_list.json | 81 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 79 insertions(+), 2 deletions(-) diff --git a/src/website_list.json b/src/website_list.json index a0e1b69d5..af88906e7 100644 --- a/src/website_list.json +++ b/src/website_list.json @@ -162,9 +162,19 @@ },{ "name" : "dgtle.com", "url" : "http://www.dgtle.com/article-*.html", - "title" : "[[{$('meta[name=keywords]').attr('content')}]]", + "title" : "<title>", + "desc" : "[[{$('meta[name=description]').attr('content')}]]", + "include" : "<div class='view_content'>", + "exclude" : [ + "<div id='comments_top'>", + "[[/src=\\S+(xxxxxbbs)\\S+'/]]" + ] + },{ + "name" : "bbs.dgtle.com", + "url" : "http://*.dgtle.com/thread-*.html", + "title" : "<title>", "desc" : "[[{$('meta[name=description]').attr('content')}]]", - "include" : "<div id='view_content'>", + "include" : "<div class='view_content'>", "exclude" : [ "<div id='comments_top'>", "[[/src=\\S+(xxxxxbbs)\\S+'/]]" @@ -545,6 +555,45 @@ "exclude" : [ "<div class='x_detail_btm'>" ] + },{ + "name" : "creative.adquan.com", + "url" : "http://creative.adquan.com/show/*", + "title" : "<h2 class='text_title'>", + "desc" : "", + "include" : "<div class='con_Text'>", + "exclude" : [ + "" + ] + },{ + "name" : "post.adquan.com", + "url" : "http://www.adquan.com/post-*.html", + "title" : "<h2 class='text_title'>", + "desc" : "", + "include" : "<div class='con_Text'>", + "exclude" : [ + "" + ] + },{ + "name" : "gonglve.mafengwo.cn", + "url" : "http*://www.mafengwo.cn/gonglve/ziyouxing/*.html", + "title" : "<h1>", + "desc" : "[[{$('meta[name=description]').attr('content')}]]", + "include" : "<div class='_j_content'>", + "exclude" : [ + "<section class='travelnote'>", + "<div class='product-box'>", + "<div class='pro_list'>" + ] + },{ + "name" : "i.mafengwo.cn", + "url" : "http*://www.mafengwo.cn/i/*.html", + "title" : "<title>", + "desc" : "", + "include" : "<div class='vc_article'>", + "exclude" : [ + "<a class='_j_anchor'>", + "<div id='_j_paragraph_1'>" + ] },{ "name" : "blog.jobbole.com", "url" : "http://blog.jobbole.com/*/", @@ -1315,6 +1364,24 @@ "exclude" : [ "<h1>" ] + },{ + "name" : "hacknews.codedata.cn", + "url" : "http://www.codedata.cn/hacknews/*", + "title" : "<title>", + "desc" : "", + "include" : "<article>", + "exclude" : [ + "" + ] + },{ + "name" : "topics.codedata.cn", + "url" : "http://www.codedata.cn/topics/*", + "title" : "<h1 class='media-heading'>", + "desc" : "", + "include" : "<article>", + "exclude" : [ + "" + ] },{ "name" : "voidcn.com", "url" : "http://www.voidcn.com/blog/**/*/*.html", @@ -1708,6 +1775,16 @@ "<p class='read-art-extra-bonus'>", "<div class='editorSign'>" ] + },{ + "name" : "8btc.com", + "url" : "http://www.8btc.com/*-*", + "title" : "<h1>", + "desc" : "", + "include" : "[[{$($('.article-content')[0]).html()}]]", + "exclude" : [ + "<div class='content-source-info'>", + "<div class='content-bottom'>" + ] },{ "name" : "zhidx.com", "url" : "http://zhidx.com/p/", From 592d4e17f9746079385bcd6ed9b6232065fca144 Mon Sep 17 00:00:00 2001 From: Kenshin <fxblog@gmail.com> Date: Fri, 22 Sep 2017 09:46:08 +0800 Subject: [PATCH 05/20] Update README.md. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1630a025b..6b22aa34f 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ #### 主要功能一览: - 阅读模式: - 简悦 `原创` 功能,逐一适配了 [200+](https://github.com/kenshin/simpread/wiki/适配站点列表) 个网站,自动提取 `标题` `描述` `正文` `媒体资源( 图片/ 视频 )` 等,生成 `符合中文阅读` 的页面 + 简悦 `原创` 功能,逐一适配了 [210+](https://github.com/kenshin/simpread/wiki/适配站点列表) 个网站,自动提取 `标题` `描述` `正文` `媒体资源( 图片/ 视频 )` 等,生成 `符合中文阅读` 的页面 - 聚焦模式: 不改变当前页面的结构,仅仅高亮需要阅读的部分,不分散用户的注意力;适合 `临时阅读` 或者 `未适配阅读模式` 的网站 From e77ba77dd86b49d4aa4b6c49123453cd6abd6475 Mon Sep 17 00:00:00 2001 From: Kenshin <fxblog@gmail.com> Date: Fri, 22 Sep 2017 09:46:21 +0800 Subject: [PATCH 06/20] Add same websites. --- src/website_list.json | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/website_list.json b/src/website_list.json index af88906e7..55a4cf916 100644 --- a/src/website_list.json +++ b/src/website_list.json @@ -1785,6 +1785,24 @@ "<div class='content-source-info'>", "<div class='content-bottom'>" ] + },{ + "name" : "wiki.8btc.com", + "url" : "http://www.8btc.com/wiki/*", + "title" : "<div class='page-title'>", + "desc" : "", + "include" : "<div class='col-xs-12'>", + "exclude" : [ + "<div class='page-title'>" + ] + },{ + "name" : "vip.qikan.com", + "url" : "http://nlc.vip.qikan.com/text/Article.aspx*", + "title" : "<h1>", + "desc" : "", + "include" : "<div class='newartbox'>", + "exclude" : [ + "" + ] },{ "name" : "zhidx.com", "url" : "http://zhidx.com/p/", @@ -2114,6 +2132,19 @@ "<script>", "<a>" ] + },{ + "name" : "read.qidian.com", + "url" : "https://read.qidian.com/chapter/**/*", + "paging" : [ + {"prev" : "[[{$('#j_chapterPrev').attr('href')}]]"}, + {"next" : "[[{$('#j_chapterNext').attr('href')}]]"} + ], + "title" : "<h3 class='j_chapterName'>", + "desc" : "", + "include" : "<div class='read-content'>", + "exclude" : [ + "" + ] },{ "name" : "lofter.com", "url" : "http://*.lofter.com/post/*", From 599df38bb06c2d08ec020c1c7d938e5e940e3a71 Mon Sep 17 00:00:00 2001 From: Kenshin <fxblog@gmail.com> Date: Fri, 22 Sep 2017 11:17:17 +0800 Subject: [PATCH 07/20] Add same websites. --- src/website_list.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/website_list.json b/src/website_list.json index 55a4cf916..99052fd7d 100644 --- a/src/website_list.json +++ b/src/website_list.json @@ -2145,6 +2145,19 @@ "exclude" : [ "" ] + },{ + "name" : "vipreader.qidian.com", + "url" : "https://vipreader.qidian.com/chapter/**/*", + "paging" : [ + {"prev" : "[[{$('#j_chapterPrev').attr('href')}]]"}, + {"next" : "[[{$('#j_chapterNext').attr('href')}]]"} + ], + "title" : "<h3 class='j_chapterName'>", + "desc" : "", + "include" : "<div class='read-content'>", + "exclude" : [ + "" + ] },{ "name" : "lofter.com", "url" : "http://*.lofter.com/post/*", From d4f79f0d654f23b74e8a76e15e42aed703fa9395 Mon Sep 17 00:00:00 2001 From: Kenshin <fxblog@gmail.com> Date: Sun, 1 Oct 2017 12:13:00 +0800 Subject: [PATCH 08/20] Add same website. --- src/website_list.json | 155 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 153 insertions(+), 2 deletions(-) diff --git a/src/website_list.json b/src/website_list.json index 99052fd7d..4a2c3b35f 100644 --- a/src/website_list.json +++ b/src/website_list.json @@ -594,6 +594,15 @@ "<a class='_j_anchor'>", "<div id='_j_paragraph_1'>" ] + },{ + "name" : "bohaishibei.com", + "url" : "https://bohaishibei.com/post/*/", + "title" : "<h1 class='article-title'>", + "desc" : "", + "include" : "<article>", + "exclude" : [ + "" + ] },{ "name" : "blog.jobbole.com", "url" : "http://blog.jobbole.com/*/", @@ -1382,6 +1391,44 @@ "exclude" : [ "" ] + },{ + "name" : "teakki.com", + "url" : "https://teakki.com/p/*", + "title" : "<h1 class='content-title'>", + "desc" : "", + "include" : "<div class='content-content'>", + "exclude" : [ + "" + ] + },{ + "name" : "cppdaxue.com", + "url" : "http://cppdaxue.com/*/*.html", + "title" : "<h1 class='article-title'>", + "desc" : "", + "include" : "<article class='article-content>", + "exclude" : [ + "<div class='article-social'>" + ] + },{ + "name" : "bobao.360.cn", + "url" : "http://bobao.360.cn/*/*/*.html", + "title" : "<title>", + "desc" : "", + "include" : "<div id='article_box'>", + "exclude" : [ + "<h2>", + "<div class='article-msg'>", + "<hr>" + ] + },{ + "name" : "thebigdata.cn", + "url" : "http://www.thebigdata.cn/*/*.html", + "title" : "<h1 class='aTitle'>", + "desc" : "", + "include" : "<div id='content'>", + "exclude" : [ + "" + ] },{ "name" : "voidcn.com", "url" : "http://www.voidcn.com/blog/**/*/*.html", @@ -1525,7 +1572,7 @@ ] },{ "name" : "news.sohu.com", - "url" : "http://news.sohu.com/*/*.shtml", + "url" : "http*://news.sohu.com/*/*.shtml", "title" : "<h1>", "desc" : "", "include" : "<div id='contentText'>", @@ -1534,7 +1581,7 @@ ] },{ "name" : "sohu.com", - "url" : "http://www.sohu.com/a/*_*", + "url" : "http*://www.sohu.com/a/*_*", "title" : "<h1>", "desc" : "", "include" : "<article class='article'>", @@ -1568,6 +1615,110 @@ "exclude" : [ "[['<p>【新浪财经股吧】</p>']]" ] + },{ + "name" : "sports.sina.com.cn", + "url" : "http://sports.sina.com.cn/**/*.shtml", + "title" : "<h1 id='j_title'>", + "desc" : "", + "include" : "<div class='article-a__content'>", + "exclude" : [ + "" + ] + },{ + "name" : "collection.sina.com.cn", + "url" : "http://collection.sina.com.cn/**/*.shtml", + "title" : "<h1 id='main_title'>", + "desc" : "", + "include" : "<div id='artibody'>", + "exclude" : [ + "" + ] + },{ + "name" : "news.workercn.cn", + "url" : "http://news.workercn.cn/*/*/**/*.shtml", + "title" : "<div class='ad_tl_main'>", + "desc" : "", + "include" : "<div class='ad_content'>", + "exclude" : [ + "" + ] + },{ + "name" : "news.xinhuanet.com", + "url" : "http://news.xinhuanet.com/**/*/*.htm", + "title" : "<div class='h-title'>", + "desc" : "", + "include" : "<div id='p-detail'>", + "exclude" : [ + "<div class='zan-wap'>", + "<div class='p-tags'>", + "[[/src=\\S+(129713364_15065013734641n)\\S+'/]]" + ] + },{ + "name" : "news.gold678.com", + "url" : "http://www.gold678.com/C/**/*.html", + "title" : "<h1>", + "desc" : "", + "include" : "<div class='news_inter_area'>", + "exclude" : [ + "" + ] + },{ + "name" : "stockstar.com", + "url" : "http://*.stockstar.com/*.shtml", + "title" : "<title>", + "desc" : "", + "include" : "<div id='container-article'>", + "exclude" : [ + "" + ] + },{ + "name" : "takungpao.com", + "url" : "http://*.takungpao.com/**/*/*.html", + "title" : "<h1 class='tpk_con_tle'>", + "desc" : "", + "include" : "<div class='tpk_text'>", + "exclude" : [ + "" + ] + },{ + "name" : "money.jrj.com.cn", + "url" : "http://money.jrj.com.cn/**/*/*.shtml", + "title" : "<title>", + "desc" : "", + "include" : "<div class='titimg'>", + "exclude" : [ + "" + ] + },{ + "name" : "news.ynet.com", + "url" : "http://news.ynet.com/**/*/*.html", + "title" : "<title>", + "desc" : "", + "include" : "<div id='articleAll'>", + "exclude" : [ + "<ul class='pageBox'>", + "<span class='authors'>", + "<a class='scrollLeft'>", + "<a class='scrollRight'>" + ] + },{ + "name" : "qianlong.com", + "url" : "http://*.qianlong.com/*/*/*.shtml", + "title" : "<title>", + "desc" : "", + "include" : "<div class='article-content'>", + "exclude" : [ + "" + ] + },{ + "name" : "article.myzaker.com", + "url" : "http://www.myzaker.com/article/*/", + "title" : "<h1>", + "desc" : "", + "include" : "<div class='article_content'>", + "exclude" : [ + "" + ] },{ "name" : "people.com.cn", "url" : "http://*.people.com.cn/**/*/*.html", From b2b0c7f2596399fd5557240d04cf70201c6f3226 Mon Sep 17 00:00:00 2001 From: Kenshin <fxblog@gmail.com> Date: Sun, 1 Oct 2017 12:13:15 +0800 Subject: [PATCH 09/20] Update README.md. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6b22aa34f..bf854fa13 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ <p align="center"><img src="http://ojec5ddd5.bkt.clouddn.com/logo%20bigger.png" /></p> <h1 align="center">简悦 - SimpRead</h1> <p align="center">让你瞬间进入沉浸式阅读的 Chrome 扩展,还原阅读的本质,提升你的阅读体验。</p> -<p align="center">为了达到完美的阅读模式这个小目标 ,我适配了 <a target="_blank" href="https://github.com/kenshin/simpread/wiki/适配站点列表">200+</a> 个网站,因此诞生了简悦。</p> +<p align="center">为了达到完美的阅读模式这个小目标 ,我适配了 <a target="_blank" href="https://github.com/kenshin/simpread/wiki/适配站点列表">220+</a> 个网站,因此诞生了简悦。</p> <p align="center"> <a href="https://github.com/kenshin/simpread/releases"><img src="https://img.shields.io/badge/lastest_version-1.0.3-blue.svg"></a> <a target="_blank" href="http://ksria.com/simpread"><img src="https://img.shields.io/badge/website-_simpread.ksria.com-1DBA90.svg"></a> @@ -69,7 +69,7 @@ - 右键选择 `简悦 - SimpRead` → `阅读模式`; -- 快捷键;(默认为 `双击 A` ) +- 快捷键;(默认为 双击 <kbd>A</kbd> ) #### 如何使用(聚焦模式): @@ -77,7 +77,7 @@ - 在需要高亮的区域,右键选择 `简悦 - SimpRead` → `聚焦模式`; -- 快捷键;(默认为 `A S` ) +- 快捷键;(默认为 <kbd>A</kbd> <kbd>S</kbd> ) #### 投票: 简悦是一个免费并开源的项目。如果觉得不错,请给我 [投票](https://chrome.google.com/webstore/detail/%E7%AE%80%E6%82%A6-simpread/ijllcpnolfcooahcekpamkbidhejabll/reviews) 。这样让更多人了解并受用与 `简悦` 带来的便利,你的认可是对我最大的鼓励。 From 74d1279d43d1bcc6f0fa8166a118ce4ddbc25ddc Mon Sep 17 00:00:00 2001 From: Kenshin <fxblog@gmail.com> Date: Tue, 24 Oct 2017 13:23:55 +0800 Subject: [PATCH 10/20] Merge conflict. --- src/website_list.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/website_list.json b/src/website_list.json index 24a97b897..236ba4383 100644 --- a/src/website_list.json +++ b/src/website_list.json @@ -2310,8 +2310,6 @@ "" ] },{ -<<<<<<< HEAD -======= "name" : "37zw.net", "url" : "http://www.37zw.net/**/*.html", "paging" : [ @@ -2325,7 +2323,6 @@ "" ] },{ ->>>>>>> release/1.0.4 "name" : "lofter.com", "url" : "http://*.lofter.com/post/*", "title" : "<title>", From 03388a6d9b1aace833b6a39ca5c07ca5399ca60f Mon Sep 17 00:00:00 2001 From: Kenshin <fxblog@gmail.com> Date: Sun, 4 Feb 2018 13:55:41 +0800 Subject: [PATCH 11/20] Update donate link. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cb88a7380..1949ec513 100644 --- a/README.md +++ b/README.md @@ -154,8 +154,9 @@ * npmw run publish ( for Win ) 用于发布 #### 请杯咖啡: -如果简悦可以解决你在阅读上痛点,提升 Web 端的阅读体验,可以请我喝杯咖啡,想必也是非常愉悦的事情。 :smile: -![支付](http://ksria.qiniudn.com/zhifu_m.png) +如果简悦可以解决你在阅读上痛点,提升 Web 端的阅读体验,可以请我喝杯咖啡,想必也是非常愉悦的事情。 :smile: +_如发现下图显示不全,请直接访问 http://ojec5ddd5.bkt.clouddn.com/zhifu_m2.png_ +![支付](http://ojec5ddd5.bkt.clouddn.com/zhifu_m2.png) #### 许可: [![license-badge]][license-link] From 8e16d7ff47eba5d005364be052d4bf09608ed8b2 Mon Sep 17 00:00:00 2001 From: Kenshin <fxblog@gmail.com> Date: Mon, 2 Apr 2018 09:16:16 +0800 Subject: [PATCH 12/20] Update files. --- .gitignore | 16 ++- README.md | 13 ++- src/website_list.json | 242 ++++++++++++++++++++++++++++++++---------- 3 files changed, 208 insertions(+), 63 deletions(-) diff --git a/.gitignore b/.gitignore index 0a79b0401..eb1c3f38e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,19 @@ -#ignore node_modules +# for common node_modules/** -src/bundle/** publish/** +# for chrome +src/bundle/** + +# for firefox +ext/website_list.json +ext/bundle/** +ext/focus/** +ext/read/** +ext/module/** +ext/options/** +ext/assets/** +ext/_locales/** + # for mac **/.DS_Store diff --git a/README.md b/README.md index 1949ec513..2f99c298c 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,12 @@ <p align="center"><img src="http://ojec5ddd5.bkt.clouddn.com/logo%20bigger.png" /></p> <h1 align="center">简悦 - SimpRead</h1> <p align="center">让你瞬间进入沉浸式阅读的 Chrome 扩展,还原阅读的本质,提升你的阅读体验。</p> -<p align="center">为了达到完美的阅读模式这个小目标 ,我适配了 <a target="_blank" href="https://github.com/kenshin/simpread/wiki/适配站点列表">230+</a> 个网站,因此诞生了简悦。</p> +<p align="center">为了达到完美的阅读模式这个小目标 ,我适配了 <a target="_blank" href="https://github.com/kenshin/simpread/wiki/适配站点列表">240+</a> 个网站,因此诞生了简悦。</p> <p align="center"> <a href="https://github.com/kenshin/simpread/releases"><img src="https://img.shields.io/badge/lastest_version-1.1.0-blue.svg"></a> <a target="_blank" href="http://ksria.com/simpread"><img src="https://img.shields.io/badge/website-_simpread.ksria.com-1DBA90.svg"></a> <a target="_blank" href="https://chrome.google.com/webstore/detail/%E7%AE%80%E6%82%A6-simpread/ijllcpnolfcooahcekpamkbidhejabll"><img src="https://img.shields.io/badge/download-_chrome_webstore-brightgreen.svg"></a> + <a target="_blank" href="https://addons.mozilla.org/zh-CN/firefox/addon/simpread"><img src="https://img.shields.io/badge/download-_firefox_addon-DD512A.svg"></a> <a href="http://ksria.com/simpread/crx/1.1.0/simpread.crx"><img src="https://img.shields.io/badge/download-_crx-brightgreen.svg"></a> </p> @@ -13,15 +14,18 @@ *** #### 马上使用: -* [Chrome 应用商店](https://chrome.google.com/webstore/detail/%E7%AE%80%E6%82%A6-simpread/ijllcpnolfcooahcekpamkbidhejabll) 或者 [离线下载](http://ksria.com/simpread/crx/1.1.0/simpread.crx) 或者 [下载测试版](https://github.com/Kenshin/simpread/wiki/%E5%85%A5%E9%97%A8%E6%8C%87%E5%8D%97%EF%BC%88-%E6%93%8D%E4%BD%9C%E6%8C%87%E5%BC%95-%EF%BC%89#%E6%B5%8B%E8%AF%95%E7%89%88%E9%80%9A%E9%81%93) 体验简悦最新功能。 +* [Chrome 应用商店](https://chrome.google.com/webstore/detail/%E7%AE%80%E6%82%A6-simpread/ijllcpnolfcooahcekpamkbidhejabll) 或者 [离线下载](http://ksria.com/simpread/crx/1.1.0/simpread.crx) +* [Firefox 扩展中心](https://addons.mozilla.org/zh-CN/firefox/addon/simpread) +* [下载测试版](https://github.com/Kenshin/simpread/wiki/%E5%85%A5%E9%97%A8%E6%8C%87%E5%8D%97%EF%BC%88-%E6%93%8D%E4%BD%9C%E6%8C%87%E5%BC%95-%EF%BC%89#%E6%B5%8B%E8%AF%95%E7%89%88%E9%80%9A%E9%81%93) 体验简悦最新功能。 * 现在就加入 [Telegram 群](https://t.me/simpread),获取简悦的第一手资料。 +* 不同简悦如何使用?想知道简悦的高级功能,请看简悦的 [帮助中心](https://github.com/kenshin/simpread/wiki) 。 #### 主要功能一览: - [聚焦模式](https://github.com/Kenshin/simpread/wiki/%E8%81%9A%E7%84%A6%E6%A8%A1%E5%BC%8F): 不改变当前页面的结构,仅仅高亮需要阅读的部分,不分散用户的注意力;适合 `临时阅读` 或者 `未适配阅读模式` 的网站 - [阅读模式](https://github.com/Kenshin/simpread/wiki/%E9%98%85%E8%AF%BB%E6%A8%A1%E5%BC%8F/): - 简悦 `原创` 功能,逐一适配了 [230+](https://github.com/kenshin/simpread/wiki/适配站点列表) 个网站,自动提取 `标题` `描述` `正文` `媒体资源( 图片/ 视频 )` 等,生成 `符合中文阅读` 的页面 + 简悦 `原创` 功能,逐一适配了 [240+](https://github.com/kenshin/simpread/wiki/适配站点列表) 个网站,自动提取 `标题` `描述` `正文` `媒体资源( 图片/ 视频 )` 等,生成 `符合中文阅读` 的页面 * 支持 `自动生成目录` [TXT 阅读器](https://github.com/Kenshin/simpread/wiki/txt-%E9%98%85%E8%AF%BB%E5%99%A8) [论坛类页面及分页](https://github.com/Kenshin/simpread/wiki/%E8%AE%BA%E5%9D%9B%E7%B1%BB%E9%A1%B5%E9%9D%A2%E5%8F%8A%E5%88%86%E9%A1%B5) 如:知乎 · 百度贴吧等 @@ -106,8 +110,7 @@ 简悦是一个免费并开源的项目。如果觉得不错,请给我 [投票](https://chrome.google.com/webstore/detail/%E7%AE%80%E6%82%A6-simpread/ijllcpnolfcooahcekpamkbidhejabll/reviews) 。这样让更多人了解并受用与 `简悦` 带来的便利,你的认可是对我最大的鼓励。 #### 下一步: -- 适配 Firfox; -- 适配 Safari; +-[ ] 适配 UserScript; #### 相关链接: * [更新日志](http://ksria.com/simpread/changelog.html) diff --git a/src/website_list.json b/src/website_list.json index 861768e59..39fcc5ce5 100644 --- a/src/website_list.json +++ b/src/website_list.json @@ -1,14 +1,15 @@ { "sites" : [{ "name" : "cnbeta.com", - "url" : "http://*.cnbeta.com/articles/*/*.htm", + "url" : "http*://*.cnbeta.com/articles/*/*", "title" : "[[{$('header.title h1').text()}]]", "desc" : "[[{$('.article-summary').text()}]]", "include" : "<div class='article-content'>", "exclude" : [ "<div class='clearfix'>", "<div class='rating_box'>", - "[['<strong>[广告]活动入口:</strong>']]" + "[['<strong>[广告]活动入口:</strong>']]", + "<div class='article-relation'>" ] },{ "name" : "qdaily.com", @@ -161,7 +162,7 @@ ] },{ "name" : "dgtle.com", - "url" : "http://www.dgtle.com/article-*.html", + "url" : "http*://www.dgtle.com/article-*.html", "title" : "<title>", "desc" : "[[{$('meta[name=description]').attr('content')}]]", "include" : "<div class='view_content'>", @@ -171,10 +172,10 @@ ] },{ "name" : "bbs.dgtle.com", - "url" : "http://*.dgtle.com/thread-*.html", + "url" : "http*://*.dgtle.com/thread-*.html", "title" : "<title>", "desc" : "[[{$('meta[name=description]').attr('content')}]]", - "include" : "<div class='view_content'>", + "include" : "<div class='forum-viewthread-article-box'>", "exclude" : [ "<div id='comments_top'>", "[[/src=\\S+(xxxxxbbs)\\S+'/]]" @@ -182,9 +183,9 @@ },{ "name" : "zhuanlan.zhihu.com", "url" : "https://zhuanlan.zhihu.com/p/", - "title" : "<h1 class='PostIndex-title'>", + "title" : "<h1 class='Post-Title'>", "desc" : "", - "include" : "<div class='PostIndex-content'", + "include" : "<div class='RichText Post-RichText'>", "exclude" : [ "" ] @@ -391,7 +392,7 @@ ] },{ "name" : "appinn.com", - "url" : "http://www.appinn.com/*/", + "url" : "http*://www.appinn.com/*/", "title" : "<h2 class='entry-title'>", "desc" : "", "include" : "<div class='entry-content'>", @@ -414,7 +415,7 @@ ] },{ "name" : "playpcesor.com", - "url" : "http://www.playpcesor.com/*", + "url" : "http*://www.playpcesor.com/**/*.html", "title" : "<h3 class='entry-title'>", "desc" : "", "include" : "<div class='entry-content'>", @@ -432,7 +433,7 @@ ] },{ "name" : "azofreeware.com", - "url" : "http://www.azofreeware.com/*", + "url" : "http*://www.azofreeware.com/**/*.html", "title" : "<h2 class='entry-title'>", "desc" : "", "include" : "<div class='entry-content'>", @@ -441,7 +442,7 @@ ] },{ "name" : "weibo.com", - "url" : "http://weibo.com/ttarticle/p/", + "url" : "http*://weibo.com/ttarticle/p/*", "title" : "[[{$('.main_editor ').find('.title').text()}]]", "desc" : "", "include" : "<div class='WB_editor_iframe'>", @@ -460,10 +461,10 @@ ] },{ "name" : "xueqiu.com", - "url" : "https://xueqiu.com/*/*", - "title" : "<h1 class='status-title'>", + "url" : "http*://xueqiu.com/*/*", + "title" : "<h1 class='article__bd__title'>", "desc" : "", - "include" : "[[[$('.status-content').find('.detail')]]]", + "include" : "<div class='article__bd__detail'>", "exclude" : [ "<script class='single-description'>", "<a class='ke_img_link'>" @@ -640,6 +641,15 @@ "" ] },{ + "name" : "www.yixieshi.com", + "url" : "http*://www.yixieshi.com/*.html", + "title" : "<h1 class='post-title'>", + "desc" : "", + "include" : "<article class='article-content'>", + "exclude" : [ + "" + ] + }11,{ "name" : "blog.jobbole.com", "url" : "http://blog.jobbole.com/*/", "title" : "<title>", @@ -799,18 +809,18 @@ ] },{ "name" : "post.juejin.im", - "url" : "https://juejin.im/post/", - "title" : "<h1 class='post-title'>", + "url" : "http*://juejin.im/post/*", + "title" : "<h1 class='article-title'>", "desc" : "", - "include" : "<div class='post-content-container'>", + "include" : "<div class='article-content'>", "exclude" : [ "" ] },{ "name" : "entry.juejin.im", - "url" : "https://juejin.im/entry/", + "url" : "http*://juejin.im/entry/*", "title" : "[[{$('.entry-public-view h1').text()}]]", - "desc" : "<div class='header'>", + "desc" : "", "include" : "<div class='entry-content'>", "exclude" : [ "" @@ -835,12 +845,12 @@ ] },{ "name" : "solidot.org", - "url" : "http://www.solidot.org/story?sid=*", - "title" : "<title>", + "url" : "https://www.solidot.org/story?sid=*", + "title" : "<div class='bg_htit'>", "desc" : "", "include" : "<div class='p_mainnew'>", "exclude" : [ - "" + "[[/src=\\S+(liiLIZF8Uh6yM.jpg)\\S+/]]" ] },{ "name" : "ifeve.com", @@ -923,7 +933,7 @@ ] },{ "name" : "geek.csdn.net", - "url" : "http://geek.csdn.net/news/detail/", + "url" : "http*://geek.csdn.net/news/detail/*", "title" : "<title>", "desc" : "", "include" : "<div class='news_description'>", @@ -937,8 +947,8 @@ ] },{ "name" : "blog.csdn.net", - "url" : "http://blog.csdn.net/*/article/details/*", - "title" : "<span class='link_title'>", + "url" : "http*://blog.csdn.net/*/article/details/*", + "title" : "<title>", "desc" : "", "include" : "<div id='article_content'>", "exclude" : [ @@ -946,7 +956,7 @@ ] },{ "name" : "lib.csdn.net", - "url" : "http://lib.csdn.net/article/*/*", + "url" : "http*://lib.csdn.net/article/*/*", "title" : "<h1>", "desc" : "", "include" : "<div class='divtexts'>", @@ -1328,7 +1338,7 @@ ] },{ "name" : "edaoe.com", - "url" : "http://www.edaoe.com/*.html", + "url" : "http*://www.edaoe.com/*.html", "title" : "<h1 class='article-title'>", "desc" : "", "include" : "<article class='article-content'>", @@ -1389,14 +1399,75 @@ ] },{ "name" : "kancloud.cn", - "url" : "https://www.kancloud.cn/*/*/*", + "url" : "http*://www.kancloud.cn/*/*/*", "paging" : [ {"prev" : "[[{$('.article-navigation').find('.prev a').attr('href')}]]"}, {"next" : "[[{$('.article-navigation').find('.next a').attr('href')}]]"} ], "title" : "[[{$('.article-head').find('h1').text()}]]", "desc" : "", - "include" : "<div class='article-body'>", + "include" : "[[{$($('.article-body')[0]).html()}]]", + "exclude" : [ + "[[/src=\\S+(5a5e9e309af5e)\\S+'/]]" + ] + },{ + "name" : "index.gitbook.com", + "url" : "http*://*.gitbooks.io/*/content/", + "paging" : [ + {"prev" : "[[{$('.navigation-prev').attr('href')}]]"}, + {"next" : "[[{$('.navigation-next').attr('href')}]]"} + ], + "title" : "<h1>", + "desc" : "", + "include" : "<div class='page-inner'>", + "exclude" : [ + "" + ] + },{ + "name" : "gitbook.com", + "url" : "http*://*.gitbooks.io/*/content/**/*", + "paging" : [ + {"prev" : "[[{$('.navigation-prev').attr('href')}]]"}, + {"next" : "[[{$('.navigation-next').attr('href')}]]"} + ], + "title" : "<h1>", + "desc" : "", + "include" : "<div class='page-inner'>", + "exclude" : [ + "" + ] + },{ + "name" : "index.developers.weixin.qq.com", + "url" : "http*://developers.weixin.qq.com/miniprogram/dev/", + "paging" : [ + {"prev" : "[[{$('.navigation-prev').attr('href')}]]"}, + {"next" : "[[{$('.navigation-next').attr('href')}]]"} + ], + "title" : "<title>", + "desc" : "", + "include" : "<section class='markdown-section'>", + "exclude" : [ + "" + ] + },{ + "name" : "developers.weixin.qq.com", + "url" : "http*://developers.weixin.qq.com/miniprogram/dev/**/*", + "paging" : [ + {"prev" : "[[{$('.navigation-prev').attr('href')}]]"}, + {"next" : "[[{$('.navigation-next').attr('href')}]]"} + ], + "title" : "<title>", + "desc" : "", + "include" : "<section class='markdown-section'>", + "exclude" : [ + "" + ] + },{ + "name" : "williamlong.info", + "url" : "http*://www.williamlong.info/archives/*.html", + "title" : "<h1 class='post-title'>", + "desc" : "", + "include" : "<div id='artibody'>", "exclude" : [ "" ] @@ -1502,6 +1573,15 @@ "exclude" : [ "" ] + },{ + "name" : "readhub.me", + "url" : "http*://readhub.me/topic/", + "title" : "<title>", + "desc" : "", + "include" : "<div class='summary___1i4y3'>", + "exclude" : [ + "" + ] },{ "name" : "voidcn.com", "url" : "http://www.voidcn.com/blog/**/*/*.html", @@ -1663,26 +1743,26 @@ ] },{ "name" : "news.sina.com.cn", - "url" : "http://news.sina.com.cn/**/*/*.shtml", - "title" : "<h1 id='artibodyTitle'>", + "url" : "http*://news.sina.com.cn/**/*/*.shtml", + "title" : "<h1 class='main-title'>", "desc" : "", - "include" : "<div id='artibody'>", + "include" : "<div id='article'>", "exclude" : [ "" ] },{ "name" : "tech.sina.com.cn", - "url" : "http://tech.sina.com.cn/**/*/*.shtml", - "title" : "<h1 id='main_title'>", + "url" : "http*://tech.sina.com.cn/**/*/*.shtml", + "title" : "<h1 class='main-title'>", "desc" : "", - "include" : "<div class='content'>", + "include" : "<div id='artibody'>", "exclude" : [ "" ] },{ "name" : "finance.sina.com.cn", - "url" : "http://finance.sina.com.cn/**/*/*.shtml", - "title" : "<h1 id='artibodyTitle'>", + "url" : "http*://finance.sina.com.cn/**/*/*.shtml", + "title" : "<title>", "desc" : "", "include" : "<div id='artibody'>", "exclude" : [ @@ -1690,22 +1770,31 @@ ] },{ "name" : "sports.sina.com.cn", - "url" : "http://sports.sina.com.cn/**/*.shtml", - "title" : "<h1 id='j_title'>", + "url" : "http*://sports.sina.com.cn/**/*.shtml", + "title" : "<h1 class='main-title'>", "desc" : "", - "include" : "<div class='article-a__content'>", + "include" : "<div id='artibody'>", "exclude" : [ "" ] },{ "name" : "collection.sina.com.cn", - "url" : "http://collection.sina.com.cn/**/*.shtml", + "url" : "http*://collection.sina.com.cn/**/*.shtml", "title" : "<h1 id='main_title'>", "desc" : "", "include" : "<div id='artibody'>", "exclude" : [ "" ] + },{ + "name" : "blog.sina.com.cn", + "url" : "http*://blog.sina.com.cn/s/*", + "title" : "<title>", + "desc" : "", + "include" : "<div class='articalContent'>", + "exclude" : [ + "" + ] },{ "name" : "news.workercn.cn", "url" : "http://news.workercn.cn/*/*/**/*.shtml", @@ -1728,7 +1817,7 @@ ] },{ "name" : "news.gold678.com", - "url" : "http://www.gold678.com/C/**/*.html", + "url" : "http*://www.gold678.com/C/**/*", "title" : "<h1>", "desc" : "", "include" : "<div class='news_inter_area'>", @@ -1858,7 +1947,7 @@ ] },{ "name" : "news.163.com", - "url" : "http://news.163.com/**/*/*.html", + "url" : "http*://news.163.com/**/*/*.html", "title" : "<title>", "desc" : "", "include" : "<div id='endText'>", @@ -1867,7 +1956,7 @@ ] },{ "name" : "renjian.163.com", - "url" : "http://renjian.163.com/**/*/*.html", + "url" : "http*://renjian.163.com/**/*/*.html", "title" : "<title>", "desc" : "", "include" : "<div id='endText'>", @@ -1876,9 +1965,18 @@ "<div class='ep-pages'>", "<p class='end'>" ] + },{ + "name" : "dy.163.com", + "url" : "http*://dy.163.com/v2/article/detail/*.html", + "title" : "<h2>", + "desc" : "", + "include" : "<div id='content'>", + "exclude" : [ + "" + ] },{ "name" : "tech.163.com", - "url" : "http://*.163.com/**/*/*.html", + "url" : "http*://*.163.com/**/*/*.html", "title" : "[[{$('.post_content_main').find('h1').text()}]]", "desc" : "", "include" : "<div class='post_text'>", @@ -1887,19 +1985,19 @@ ] },{ "name" : "mi.techweb.com.cn", - "url" : "http://mi.techweb.com.cn/tmt/*/*.shtml", - "title" : "[[{$('.title').find('h1').text()}]]", + "url" : "http*://mi.techweb.com.cn/tmt/*/*.shtml", + "title" : "<h1>", "desc" : "", - "include" : "<div class='content_txt'>", + "include" : "<div id='content'>", "exclude" : [ "" ] },{ "name" : "techweb.com.cn", - "url" : "http://www.techweb.com.cn/*/*/*.shtml", - "title" : "[[{$('.title').find('h1').text()}]]", + "url" : "http*://www.techweb.com.cn/*/*/*.shtml", + "title" : "<h1>", "desc" : "", - "include" : "<div class='content_txt'>", + "include" : "<div id='content'>", "exclude" : [ "" ] @@ -1930,6 +2028,15 @@ "exclude" : [ "" ] + },{ + "name" : "news.newseed.cn", + "url" : "http*://news.newseed.cn/p/*", + "title" : "<h1>", + "desc" : "", + "include" : "<div id='news-content'>", + "exclude" : [ + "" + ] },{ "name" : "digi.tech.qq.com", "url" : "http://digi.tech.qq.com/a/*/*.htm", @@ -1969,6 +2076,15 @@ "exclude" : [ "" ] + },{ + "name" : "new.qq.com", + "url" : "http*://new.qq.com/**/*/*.html", + "title" : "<h1>", + "desc" : "", + "include" : "<div class='content-article'>", + "exclude" : [ + "" + ] },{ "name" : "news.china.com.cn", "url" : "http://news.china.com.cn/**/*/*.htm", @@ -1980,10 +2096,10 @@ ] },{ "name" : "article.huanqiu.com/", - "url" : "http://*.huanqiu.com/*/*/*.html", + "url" : "http*://*.huanqiu.com/*/*/*.html", "title" : "<h1>", "desc" : "", - "include" : "<div id='text'>", + "include" : "<div class='la_con'>", "exclude" : [ "<div class='editorSign'>", "<div class='reTopics'>" @@ -2176,7 +2292,7 @@ ] },{ "name" : "cn.engadget.com", - "url" : "http://cn.engadget.com/*/*/*/*/", + "url" : "http*://cn.engadget.com/*/*/*/*/", "title" : "[[{$('head').find('title').text()}]]", "desc" : "", "include" : "<div class='article-text'>", @@ -2203,7 +2319,7 @@ ] },{ "name" : "jingyan.baidu.com", - "url" : "http://jingyan.baidu.com/article/*.html", + "url" : "http*://jingyan.baidu.com/article/*.html", "title" : "<title>", "desc" : "", "include" : "<li class='exp-content-list'>", @@ -2225,7 +2341,7 @@ ] },{ "name" : "tieba.baidu.com", - "url" : "https://tieba.baidu.com/p/", + "url" : "http*://tieba.baidu.com/p/*", "avatar" : [ {"name" : "[[{$('.p_author_name')}]]"}, {"url" : "[[{$('.p_author_face').find('img')}]]"} @@ -2241,6 +2357,20 @@ "<span class='apc_src_wrapper'>", "<div class='save_face_bg_2'>" ] + },{ + "name" : "qgc.qq.com", + "url" : "http*://qgc.qq.com/*/t/*", + "avatar" : [ + {"name" : "[[{$('.gn')}]]"}, + {"url" : "[[{$('.avatar').find('img').filter(':even')}]]"} + ], + "title" : "<title>", + "desc" : "", + "include" : "[[{$('.pctmessage')}]]", + "exclude" : [ + "<span class='apc_src_wrapper'>", + "<div class='save_face_bg_2'>" + ] },{ "name" : "article.chiphell.com", "url" : "https://www.chiphell.com/article-*.html", From 0b88846fef8850b583fa83c5ed5a9edaa2206068 Mon Sep 17 00:00:00 2001 From: Kenshin <fxblog@gmail.com> Date: Mon, 2 Apr 2018 09:27:49 +0800 Subject: [PATCH 13/20] Add some website. --- src/website_list.json | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/website_list.json b/src/website_list.json index 39fcc5ce5..ce1546ff8 100644 --- a/src/website_list.json +++ b/src/website_list.json @@ -524,10 +524,10 @@ ] },{ "name" : "article.pmcaff.com", - "url" : "http://www.pmcaff.com/article/index/*", + "url" : "http*://www.pmcaff.com/article/index/*", "title" : "<title>", "desc" : "", - "include" : "<div class='article-body'>", + "include" : "<div id='editorContent'>", "exclude" : [ "[[/src=\\S+(FlHy2hPIJYsjjeQRRKHhk0yfoLv)\\S+'/]]", "[['<b>本文由PMCAFF专栏作者</b>']]", @@ -536,7 +536,7 @@ ] },{ "name" : "discuss.pmcaff.com", - "url" : "http://www.pmcaff.com/discuss/answer/*", + "url" : "http*://www.pmcaff.com/discuss/answer/*", "title" : "<title>", "desc" : "<div class='discussion-content'>", "include" : "[[{$('.panel-body').find('.content').html()}]]", @@ -545,14 +545,10 @@ ] },{ "name" : "answer.pmcaff.com", - "url" : "http://www.pmcaff.com/discuss/index/*", - "avatar" : [ - {"name" : "[[{$('.panel-heading').find('a').find('b')}]]"}, - {"url" : "[[{$('.avatar').find('img')}]]"} - ], + "url" : "http*://www.pmcaff.com/discuss/index/*", "title" : "<title>", "desc" : "", - "include" : "[[{$('.panel-body').find('.content')}]]", + "include" : "<div id='editorContent'>", "exclude" : [ "" ] @@ -649,7 +645,7 @@ "exclude" : [ "" ] - }11,{ + },{ "name" : "blog.jobbole.com", "url" : "http://blog.jobbole.com/*/", "title" : "<title>", From e5d359731afff27af3c3de813b316b15d08970cc Mon Sep 17 00:00:00 2001 From: Kenshin <fxblog@gmail.com> Date: Mon, 2 Apr 2018 09:33:32 +0800 Subject: [PATCH 14/20] Update README.md. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f99c298c..e34346fbc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ <p align="center"><img src="http://ojec5ddd5.bkt.clouddn.com/logo%20bigger.png" /></p> <h1 align="center">简悦 - SimpRead</h1> -<p align="center">让你瞬间进入沉浸式阅读的 Chrome 扩展,还原阅读的本质,提升你的阅读体验。</p> +<p align="center">让你瞬间进入沉浸式阅读的扩展,还原阅读的本质,提升你的阅读体验。</p> <p align="center">为了达到完美的阅读模式这个小目标 ,我适配了 <a target="_blank" href="https://github.com/kenshin/simpread/wiki/适配站点列表">240+</a> 个网站,因此诞生了简悦。</p> <p align="center"> <a href="https://github.com/kenshin/simpread/releases"><img src="https://img.shields.io/badge/lastest_version-1.1.0-blue.svg"></a> From 0335fdf17d776a065696ba8dc945a400d009c866 Mon Sep 17 00:00:00 2001 From: Kenshin <fxblog@gmail.com> Date: Mon, 16 Apr 2018 11:56:33 +0800 Subject: [PATCH 15/20] Update README.md. --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e34346fbc..18d38248e 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,9 @@ <a href="https://github.com/kenshin/simpread/releases"><img src="https://img.shields.io/badge/lastest_version-1.1.0-blue.svg"></a> <a target="_blank" href="http://ksria.com/simpread"><img src="https://img.shields.io/badge/website-_simpread.ksria.com-1DBA90.svg"></a> <a target="_blank" href="https://chrome.google.com/webstore/detail/%E7%AE%80%E6%82%A6-simpread/ijllcpnolfcooahcekpamkbidhejabll"><img src="https://img.shields.io/badge/download-_chrome_webstore-brightgreen.svg"></a> - <a target="_blank" href="https://addons.mozilla.org/zh-CN/firefox/addon/simpread"><img src="https://img.shields.io/badge/download-_firefox_addon-DD512A.svg"></a> <a href="http://ksria.com/simpread/crx/1.1.0/simpread.crx"><img src="https://img.shields.io/badge/download-_crx-brightgreen.svg"></a> + <a target="_blank" href="https://addons.mozilla.org/zh-CN/firefox/addon/simpread"><img src="https://img.shields.io/badge/download-_firefox_addon-DD512A.svg"></a> + <a target="_blank" href="https://greasyfork.org/zh-CN/scripts/39998"><img src="https://i.imgur.com/JFhxHeR.png"></a> </p> @@ -16,6 +17,7 @@ #### 马上使用: * [Chrome 应用商店](https://chrome.google.com/webstore/detail/%E7%AE%80%E6%82%A6-simpread/ijllcpnolfcooahcekpamkbidhejabll) 或者 [离线下载](http://ksria.com/simpread/crx/1.1.0/simpread.crx) * [Firefox 扩展中心](https://addons.mozilla.org/zh-CN/firefox/addon/simpread) +* [支持 UserScript 的浏览器](https://greasyfork.org/zh-CN/scripts/39998) 如:Apple Safari · Microsoft Edge · Opera · Dolphin 详细 [请看这里](https://github.com/Kenshin/simpread-little) * [下载测试版](https://github.com/Kenshin/simpread/wiki/%E5%85%A5%E9%97%A8%E6%8C%87%E5%8D%97%EF%BC%88-%E6%93%8D%E4%BD%9C%E6%8C%87%E5%BC%95-%EF%BC%89#%E6%B5%8B%E8%AF%95%E7%89%88%E9%80%9A%E9%81%93) 体验简悦最新功能。 * 现在就加入 [Telegram 群](https://t.me/simpread),获取简悦的第一手资料。 * 不同简悦如何使用?想知道简悦的高级功能,请看简悦的 [帮助中心](https://github.com/kenshin/simpread/wiki) 。 @@ -109,9 +111,6 @@ #### 投票: 简悦是一个免费并开源的项目。如果觉得不错,请给我 [投票](https://chrome.google.com/webstore/detail/%E7%AE%80%E6%82%A6-simpread/ijllcpnolfcooahcekpamkbidhejabll/reviews) 。这样让更多人了解并受用与 `简悦` 带来的便利,你的认可是对我最大的鼓励。 -#### 下一步: --[ ] 适配 UserScript; - #### 相关链接: * [更新日志](http://ksria.com/simpread/changelog.html) * [帮助中心](https://github.com/kenshin/simpread/wiki) From 4369f0620aaac29faa2538840b10cb47de838379 Mon Sep 17 00:00:00 2001 From: Kenshin <fxblog@gmail.com> Date: Sat, 21 Apr 2018 09:51:59 +0800 Subject: [PATCH 16/20] Update README.md. --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 18d38248e..0f78ea9de 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,6 @@ <a href="http://ksria.com/simpread/crx/1.1.0/simpread.crx"><img src="https://img.shields.io/badge/download-_crx-brightgreen.svg"></a> <a target="_blank" href="https://addons.mozilla.org/zh-CN/firefox/addon/simpread"><img src="https://img.shields.io/badge/download-_firefox_addon-DD512A.svg"></a> <a target="_blank" href="https://greasyfork.org/zh-CN/scripts/39998"><img src="https://i.imgur.com/JFhxHeR.png"></a> - </p> *** @@ -108,6 +107,9 @@ * 更多说明请看 [站点编辑器](https://github.com/kenshin/simpread/wiki/站点编辑器) [站点管理](https://github.com/Kenshin/simpread/wiki/%E7%AB%99%E7%82%B9%E7%AE%A1%E7%90%86%E5%99%A8) [站点适配源](https://github.com/Kenshin/simpread/wiki/%E7%AB%99%E7%82%B9%E9%80%82%E9%85%8D%E6%BA%90); +#### Chrome / Firefox / 轻阅版(UserScript)功能差别: +![Chrome / Firefox / 轻阅版(UserScript)功能差别](https://i.imgur.com/z4WI7uK.png) + #### 投票: 简悦是一个免费并开源的项目。如果觉得不错,请给我 [投票](https://chrome.google.com/webstore/detail/%E7%AE%80%E6%82%A6-simpread/ijllcpnolfcooahcekpamkbidhejabll/reviews) 。这样让更多人了解并受用与 `简悦` 带来的便利,你的认可是对我最大的鼓励。 @@ -157,7 +159,7 @@ #### 请杯咖啡: 如果简悦可以解决你在阅读上痛点,提升 Web 端的阅读体验,可以请我喝杯咖啡,想必也是非常愉悦的事情。 :smile: -_如发现下图显示不全,请直接访问 http://ojec5ddd5.bkt.clouddn.com/zhifu_m2.png_ +_如发现下图显示不全,请直接访问 http://ojec5ddd5.bkt.clouddn.com/zhifu_m2.png_ ![支付](http://ojec5ddd5.bkt.clouddn.com/zhifu_m2.png) #### 许可: From a4f73645590f46cca06134f7f0d6e654ca9511df Mon Sep 17 00:00:00 2001 From: Kenshin <fxblog@gmail.com> Date: Fri, 25 May 2018 15:25:40 +0800 Subject: [PATCH 17/20] Update README.md. --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0f78ea9de..07d88a7dd 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,13 @@ <p align="center"> <a href="https://github.com/kenshin/simpread/releases"><img src="https://img.shields.io/badge/lastest_version-1.1.0-blue.svg"></a> <a target="_blank" href="http://ksria.com/simpread"><img src="https://img.shields.io/badge/website-_simpread.ksria.com-1DBA90.svg"></a> +</p> +<p align="center"> <a target="_blank" href="https://chrome.google.com/webstore/detail/%E7%AE%80%E6%82%A6-simpread/ijllcpnolfcooahcekpamkbidhejabll"><img src="https://img.shields.io/badge/download-_chrome_webstore-brightgreen.svg"></a> <a href="http://ksria.com/simpread/crx/1.1.0/simpread.crx"><img src="https://img.shields.io/badge/download-_crx-brightgreen.svg"></a> <a target="_blank" href="https://addons.mozilla.org/zh-CN/firefox/addon/simpread"><img src="https://img.shields.io/badge/download-_firefox_addon-DD512A.svg"></a> <a target="_blank" href="https://greasyfork.org/zh-CN/scripts/39998"><img src="https://i.imgur.com/JFhxHeR.png"></a> + <a target="_blank" href="https://xteko.com/redir?url=http://ojec5ddd5.bkt.clouddn.com/jsbox/simpread-1.0.0.box?201805251238&name=%E7%AE%80%E6%82%A6"><img src="https://i.imgur.com/zZeOllB.png"></a> </p> *** @@ -17,7 +20,8 @@ * [Chrome 应用商店](https://chrome.google.com/webstore/detail/%E7%AE%80%E6%82%A6-simpread/ijllcpnolfcooahcekpamkbidhejabll) 或者 [离线下载](http://ksria.com/simpread/crx/1.1.0/simpread.crx) * [Firefox 扩展中心](https://addons.mozilla.org/zh-CN/firefox/addon/simpread) * [支持 UserScript 的浏览器](https://greasyfork.org/zh-CN/scripts/39998) 如:Apple Safari · Microsoft Edge · Opera · Dolphin 详细 [请看这里](https://github.com/Kenshin/simpread-little) -* [下载测试版](https://github.com/Kenshin/simpread/wiki/%E5%85%A5%E9%97%A8%E6%8C%87%E5%8D%97%EF%BC%88-%E6%93%8D%E4%BD%9C%E6%8C%87%E5%BC%95-%EF%BC%89#%E6%B5%8B%E8%AF%95%E7%89%88%E9%80%9A%E9%81%93) 体验简悦最新功能。 +* [iOS( iPhone / iPad )版](https://xteko.com/redir?url=http://ojec5ddd5.bkt.clouddn.com/jsbox/simpread-1.0.0.box?201805251238&name=%E7%AE%80%E6%82%A6) 详细 [请看这里](https://github.com/Kenshin/simpread/wiki/JSBox) + * 现在就加入 [Telegram 群](https://t.me/simpread),获取简悦的第一手资料。 * 不同简悦如何使用?想知道简悦的高级功能,请看简悦的 [帮助中心](https://github.com/kenshin/simpread/wiki) 。 From 9f44587d17ebe4427684db7812af9d1ac2c4a7fb Mon Sep 17 00:00:00 2001 From: Kenshin <fxblog@gmail.com> Date: Wed, 5 Sep 2018 14:16:23 +0800 Subject: [PATCH 18/20] Update README.md. --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fcfe75419..06cf5b50b 100644 --- a/README.md +++ b/README.md @@ -54,10 +54,10 @@ - 站点管理器: 可管理全部的适配站点,详细请看 [站点管理器](https://github.com/kenshin/simpread/wiki/站点管理器) -- ![Imgur](https://i.imgur.com/G1nQZxr.png) 站点集市: +- ![new纯色.png](https://i.loli.net/2018/09/05/5b8f718046acb.png) 站点集市: 上传并共享自己的适配站点,一键分享临时阅读模式,适配失败的站一键提交,详细请看 [站点集市](https://simpread.ksria.cn/sites) -- ![Imgur](https://i.imgur.com/G1nQZxr.png) 插件系统: +- ![new纯色.png](https://i.loli.net/2018/09/05/5b8f718046acb.png) 插件系统: 现在开始可以使用 JavaScript 编写基于 `简悦` 的插件了,更上线了 [插件中心](https://simpread.ksria.cn/plugins/) ,如何编写插件请看 → [说明文档](https://github.com/Kenshin/simpread/wiki/插件系统) - 多种主题: @@ -112,12 +112,14 @@ #### 提交新站: -* 方式1:通过 **提交 issues** 的方式(不要使用 `pr` 方式),请提交网址 [到这里](https://github.com/kenshin/simpread/labels/new%20site); +* 方式1:通过 **提交到 站点集市** 的方式,详细请看 [站点管理器 · 上传](https://github.com/Kenshin/simpread/wiki/站点管理器#上传) + +* 方式2:通过 **提交 issues** 的方式(不要使用 `pr` 方式),请提交网址 [到这里](https://github.com/kenshin/simpread/labels/new%20site); > 当适配完成后关闭此 `issues`,之后通过 `简悦` → `选项` → `手动同步适配列表` 更新; -* 方式2:通过 **新增站点编辑器** 的方式(适合逐一添加单个新站),详细说明 [请看这里](https://github.com/Kenshin/simpread/wiki/%E7%AB%99%E7%82%B9%E7%BC%96%E8%BE%91%E5%99%A8#%E5%A6%82%E4%BD%95%E6%96%B0%E5%A2%9E%E4%BF%AE%E6%94%B9); +* 方式3:通过 **新增站点编辑器** 的方式(适合逐一添加单个新站),详细说明 [请看这里](https://github.com/Kenshin/simpread/wiki/%E7%AB%99%E7%82%B9%E7%BC%96%E8%BE%91%E5%99%A8#%E5%A6%82%E4%BD%95%E6%96%B0%E5%A2%9E%E4%BF%AE%E6%94%B9); -* 方式3:通过 **提交适配源** 的方式(适合同时添加多个新站),详细说明请看 [使用自定义适配源](https://github.com/Kenshin/simpread/wiki/%E7%AB%99%E7%82%B9%E9%80%82%E9%85%8D%E6%BA%90#%E5%A6%82%E4%BD%95%E6%8F%90%E4%BA%A4%E5%88%B0%E7%AE%80%E6%82%A6%E7%9A%84%E5%AE%98%E6%96%B9%E6%AC%A1%E9%80%82%E9%85%8D%E6%BA%90) +* 方式4:通过 **提交适配源** 的方式(适合同时添加多个新站),详细说明请看 [使用自定义适配源](https://github.com/Kenshin/simpread/wiki/%E7%AB%99%E7%82%B9%E9%80%82%E9%85%8D%E6%BA%90#%E5%A6%82%E4%BD%95%E6%8F%90%E4%BA%A4%E5%88%B0%E7%AE%80%E6%82%A6%E7%9A%84%E5%AE%98%E6%96%B9%E6%AC%A1%E9%80%82%E9%85%8D%E6%BA%90) * 更多说明请看 [站点编辑器](https://github.com/kenshin/simpread/wiki/站点编辑器) [站点管理](https://github.com/Kenshin/simpread/wiki/%E7%AB%99%E7%82%B9%E7%AE%A1%E7%90%86%E5%99%A8) [站点适配源](https://github.com/Kenshin/simpread/wiki/%E7%AB%99%E7%82%B9%E9%80%82%E9%85%8D%E6%BA%90); From 272c88c5d978e2e907161767ac3ebd3744343264 Mon Sep 17 00:00:00 2001 From: Kenshin <fxblog@gmail.com> Date: Fri, 7 Sep 2018 14:23:29 +0800 Subject: [PATCH 19/20] Update .gitgnore. --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index eb1c3f38e..1758fbaff 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # for common node_modules/** publish/** +.vscode/** # for chrome src/bundle/** From 1b0adefd6a6d9eca90982b963d6a91151d200ebd Mon Sep 17 00:00:00 2001 From: Kid <44045911+kidonng@users.noreply.github.com> Date: Wed, 25 Mar 2020 16:44:08 +0800 Subject: [PATCH 20/20] Fix typo --- src/service/tips.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/service/tips.js b/src/service/tips.js index 6c2012b1b..7e72a3d41 100644 --- a/src/service/tips.js +++ b/src/service/tips.js @@ -25,7 +25,7 @@ function Render( plugins ) { messages = { "klGUASLasg": '检测到当前环境有代码段,请使用 <a target="blank" href="https://simpread.ksria.cn/plugins/details/klGUASLasg">代码增强插件</a> 辅助阅读', "VQOZdNET2d": '检测到当前环境有大量的图片,可以使用 <a target="blank" href="https://simpread.ksria.cn/plugins/details/VQOZdNET2d">点击查看大图</a> 辅助阅读', - "DxlFcL52iy": '如果你想换个论坛类页面风格,可以使用 <a target="blank" href="https://simpread.ksria.cn/plugins/details/DxlFcL52iy">Materail Design 风格</a> 辅助阅读', + "DxlFcL52iy": '如果你想换个论坛类页面风格,可以使用 <a target="blank" href="https://simpread.ksria.cn/plugins/details/DxlFcL52iy">Material Design 风格</a> 辅助阅读', } // verify klGUASLasg if ( $( "sr-read" ).find( "pre" ).length > 0 && plugins.findIndex( item => item == "klGUASLasg" ) == -1 ) { @@ -84,4 +84,4 @@ export { Verify, Done, Help, -} \ No newline at end of file +}