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

MyNovelReader 根据网页标题判断是否为小说网页 #104

Open
dot-max opened this issue Aug 19, 2020 · 1 comment
Open

MyNovelReader 根据网页标题判断是否为小说网页 #104

dot-max opened this issue Aug 19, 2020 · 1 comment

Comments

@dot-max
Copy link

dot-max commented Aug 19, 2020

现在是根据网址判断是否为小说网页的,但是这种方法有点不够。光一个笔趣阁就有好多个域名,而且每天都有很多不知名的小的网站出现,这样子效率太低了。建议include *匹配所有网页,然后在脚本初始化时根据网页特征判断,如果不是小说网页,就退出脚本。这样子可以通过网页特征更加大范围的匹配小说网站而不需要经常往源代码里面加网站了。

可以使用的特征:

  1. 网页title中是否包含“笔趣阁”,“小说”,“无弹窗”,等关键词
  2. 网页中间有大段文字并且网页有“下一页”,“目录”,”上一页“,等链接
  3. 小说网站的一个非常普遍的特征:监听了左、右、回车按钮并且分别绑定到上一页、下一页、回车。
@ywzhaiqi
Copy link
Owner

想法很好。由于本人近几年不再看小说,且手机上阅读的流行,本脚本已不会大改。但支持你修改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants