From bbd2077db67ddf0dc772c0caff4a9bc89bd48ec2 Mon Sep 17 00:00:00 2001 From: appdevelpo <56633229+appdevelpo@users.noreply.github.com> Date: Sat, 14 Oct 2023 21:35:16 +0800 Subject: [PATCH] Create royalroad.com.js --- repo/royalroad.com.js | 89 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 repo/royalroad.com.js diff --git a/repo/royalroad.com.js b/repo/royalroad.com.js new file mode 100644 index 0000000..25ee0e7 --- /dev/null +++ b/repo/royalroad.com.js @@ -0,0 +1,89 @@ +// ==MiruExtension== +// @name RoyalRoad +// @version v0.0.1 +// @author appdevelpo +// @lang en +// @license MIT +// @package royalroad.com +// @type fikushon +// @webSite https://www.royalroad.com +// @icon https://www.royalroad.com/icons/favicon.ico?v=20200125 +// @nsfw false +// ==/MiruExtension== + +export default class Biquge extends Extension { + async latest(page) { + const res = await this.request(`/fictions/latest-updates?page=${page}`) + const liList = res.match(/