Skip to content

lquk/utools-novel-reader

 
 

Repository files navigation

小说阅读器使用文档

联系方式

如出现bug或者希望添加的功能可用以下联系方式联系

  1. 我的个人博客sushao'bolg

  2. 我的githubsushao

  3. 这个插件的开源地址utools-novel-reader

  4. 这是我插件在官方论坛的帖子,这个帖子下回复我会有提醒的

更新

v0.5.0

  1. 添加源自定义源

  2. 字体有更多大小调节

v0.4.1

  1. 添加了一个小说源

  2. 支持左右键切换章节

使用方式

因为之前源的错误加上还没适配 utools 的暗黑模式,所以我决定重写这个插件

新版本说明

因为之前源已经无法访问,所以之前储存的小说阅读记录将不再存在, 这个版本主要作为测试,所以只添加了一个源,下个版本会有更多的源和自定义

另外这个版本使用了 rust 编写的 wasm 文件, 因为在我的本机运行正确,所以如果有问题可以在这个帖子下找我

todo

这个版本还不完善, 以下是还未完成的功能

  • 读取小说文件

搜索

搜索功能和上个版本一样

主题

这个版本一共支持 4 个主题,并可以选择在暗黑和明亮模式下指定主题, 也可以选择固定主题

自定义源

可以打开设置页面自定义源,添加源是通过 json 文件形式创建的

每一项都会有提示,mainPageUrl 不允许重复

并且可以在上一个页面删除源(不允许删除默认源), 删除源后,这个源的阅读记录也会被删除

以下是默认源的例子

{
  "mainPageUrl": "https://www.vbiquge.com/",
  "name": "新笔趣阁1",
  "search": {
    "li": "body > div.result-list > div",
    "novelId": "div.result-game-item-detail > h3 > a",
    "authorName": "div.result-game-item-detail > div > p:nth-child(1) > span:nth-child(2)",
    "latestChapterId": "div.result-game-item-detail > div > p:nth-child(4) > a",
    "updateTime": "div.result-game-item-detail > div > p:nth-child(3) > span:nth-child(2)",
    "image": "div.result-game-item-pic > a > img",
    "label": "div.result-game-item-detail > div > p:nth-child(2) > span:nth-child(2)",
    "desc": "div.result-game-item-detail > p",
    "encoding": "utf8"
  },
  "novel": {
    "info": {
      "name": "#info > h1",
      "author": "#info > p:nth-child(2)",
      "lastUpdateTime": "#info > p:nth-child(4)",
      "latestChapterId": "#info > p:nth-child(5) > a",
      "encoding": "utf8",
      "image": "#fmimg > img",
      "desc": "#intro"
    },
    "directory": {
      "chapterId": "#list > dl > dd > a",
      "encoding": "utf8"
    }
  },
  "url": {
    "search": "https://www.vbiquge.com/search.php?keyword={##searchName##}",
    "novelInfo": "https://www.vbiquge.com/{##novelId##}/",
    "directory": "https://www.vbiquge.com/{##novelId##}/",
    "chapter": "https://www.vbiquge.com/{##novelId##}/{##chapterId##}.html",
    "searchPlaceholder": "{##searchName##}",
    "novelPlaceholder": "{##novelId##}",
    "chapterPlaceholder": "{##chapterId##}"
  },
  "content": {
    "encoding": "utf8",
    "chapterName": "#wrapper > div.content_read > div > div.bookname > h1",
    "novelName": "#wrapper > div.footer > div.footer_cont > p:nth-child(1) > a",
    "preChapterId": "#wrapper > div.content_read > div > div.bookname > div.bottem1 > a:nth-child(1)",
    "nextChapterId": "#wrapper > div.content_read > div > div.bookname > div.bottem1 > a:nth-child(3)",
    "content": "#content",
    "contentSplit": " "
  },
  "regex": {
    "novel": "com\\/(?<id>.*?)\\/",
    "novelIdPlaceholder": "id",
    "chapterIdPlaceholder": "id",
    "chapter": "\\/(?<id>\\d+).html"
  }
}
{
  "mainPageUrl": "https://www.biqubao.com/",
  "name": "笔趣阁1",
  "search": {
    "li": "body > div.result-list > div",
    "novelId": "div.result-game-item-detail > h3 > a",
    "authorName": "div.result-game-item-detail > div > p:nth-child(1) > span:nth-child(2)",
    "latestChapterId": "div.result-game-item-detail > div > p:nth-child(4) > a",
    "updateTime": "div.result-game-item-detail > div > p:nth-child(3) > span:nth-child(2)",
    "image": "div.result-game-item-pic > a > img",
    "label": "div.result-game-item-detail > div > p:nth-child(2) > span:nth-child(2)",
    "desc": "div.result-game-item-detail > p",
    "encoding": "utf8"
  },
  "novel": {
    "info": {
      "name": "#info > h1",
      "author": "#info > p:nth-child(2)",
      "lastUpdateTime": "#info > p:nth-child(4)",
      "latestChapterId": "#info > p:nth-child(5) > a",
      "encoding": "gbk",
      "image": "#fmimg > img",
      "desc": "#intro"
    },
    "directory": {
      "chapterId": "#list > dl > dd > a",
      "encoding": "gbk"
    }
  },
  "url": {
    "search": "https://www.biqubao.com/search.php?q={##searchName##}",
    "novelInfo": "https://www.biqubao.com/book/{##novelId##}/",
    "directory": "https://www.biqubao.com/book/{##novelId##}/",
    "chapter": "https://www.biqubao.com/book/{##novelId##}/{##chapterId##}.html",
    "searchPlaceholder": "{##searchName##}",
    "novelPlaceholder": "{##novelId##}",
    "chapterPlaceholder": "{##chapterId##}"
  },
  "content": {
    "encoding": "gbk",
    "chapterName": "#wrapper > div.content_read > div > div.bookname > h1",
    "novelName": "#wrapper > div.footer > div.footer_cont > p:nth-child(1) > a",
    "preChapterId": "#wrapper > div.content_read > div > div.bookname > div.bottem1 > a:nth-child(1)",
    "nextChapterId": "#wrapper > div.content_read > div > div.bookname > div.bottem1 > a:nth-child(3)",
    "content": "#content",
    "contentSplit": "&nbsp;"
  },
  "regex": {
    "novel": "book\\/(?<id>.*?)\\/",
    "novelIdPlaceholder": "id",
    "chapterIdPlaceholder": "id",
    "chapter": "\\/(?<id>\\d+).html"
  }
}

支持作者

可以在支持作者页面请插件作者喝茶

utools使用

可在这个页面下寻找V0.8.9-beta 版本更新说明下载链接,这是utools的官方论坛

也可以在官网上下载使用utools

使用方式可以看这个文章uTools | 时隔一年,uTools 这位 Spotlight 新秀现在变得怎么样了?或者在官方论坛查看:猿料

插件下载

  • utools插件中心搜索小说阅读
  • utools-novel-readergit clone下来,找到result文件夹,这个就是最终结果,通过utools文档介绍的方法打包就可以使用了

About

一个utools小说阅读插件(A utools novel reading plugin)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 82.7%
  • Rust 16.6%
  • Other 0.7%