Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/appdevelpo/repo
Browse files Browse the repository at this point in the history
  • Loading branch information
appdevelpo committed Oct 18, 2023
2 parents cb9b6c9 + 6894e4d commit e95f4d3
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 12 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Miru extensions repository | [Miru App Download](https://github.com/miru-project
| rawkuma | rawkuma.com | v0.0.1 | appdevelpo | jp | manga | [Source Code](https://github.com/miru-project/repo/blob/main/repo/rawkuma.com.js) |
| ReadLN | readlightnovels | v0.0.1 | OshekharO | en | fikushon | [Source Code](https://github.com/miru-project/repo/blob/main/repo/readlightnovels.js) |
| ACG.RIP | rip.acg | v0.0.1 | MiaoMint | zh-cn | bangumi | [Source Code](https://github.com/miru-project/repo/blob/main/repo/rip.acg.js) |
| RoyalRoad | royalroad.com | v0.0.2 | appdevelpo | en | fikushon | [Source Code](https://github.com/miru-project/repo/blob/main/repo/royalroad.com.js) |
| 樱花动漫 | sakura | v0.0.1 | Monster | zh-cn | bangumi | [Source Code](https://github.com/miru-project/repo/blob/main/repo/sakura.js) |
| MoviesArc | themoviearchive | v0.0.1 | OshekharO | all | bangumi | [Source Code](https://github.com/miru-project/repo/blob/main/repo/themoviearchive.js) |
| NetTruyen | truyen.net | v0.0.3 | OshekharO | vi | manga | [Source Code](https://github.com/miru-project/repo/blob/main/repo/truyen.net.js) |
Expand Down
26 changes: 26 additions & 0 deletions index.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,19 @@
"version": "v0.0.1",
"webSite": "https://apikatsu.otakatsu.studio/api"
},
{
"author": "appdevelpo",
"icon": "https://img4.qy0.ru/data/2205/36/tab_logo.png",
"lang": "zh",
"license": "MIT",
"name": "Hanime",
"nsfw": "true",
"package": "hanime1.me",
"type": "bangumi",
"url": "hanime1.me.js",
"version": "v0.0.1",
"webSite": "https://hanime1.me"
},
{
"author": "OshekharO",
"icon": "https://s1.cdnimg.me:9000/hentaidexy/opengraph-image.png",
Expand Down Expand Up @@ -496,6 +509,19 @@
"version": "v0.0.1",
"webSite": "https://acg.rip"
},
{
"author": "appdevelpo",
"icon": "https://www.royalroad.com/icons/favicon.ico?v=20200125",
"lang": "en",
"license": "MIT",
"name": "RoyalRoad",
"nsfw": "false",
"package": "royalroad.com",
"type": "fikushon",
"url": "royalroad.com.js",
"version": "v0.0.2",
"webSite": "https://www.royalroad.com"
},
{
"author": "Monster",
"icon": "https://cdn.yinghuazy.xyz/webjs/zkk7/statics/img/favicon.ico",
Expand Down
27 changes: 15 additions & 12 deletions repo/royalroad.com.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==MiruExtension==
// @name RoyalRoad
// @version v0.0.1
// @version v0.0.2
// @author appdevelpo
// @lang en
// @license MIT
Expand Down Expand Up @@ -70,20 +70,23 @@ export default class Biquge extends Extension {
}

async watch(url) {
const res = await this.request(url);
const content = res.match(/<p>[^&]+?<\/p>/g);
const new_content = [];

const res = await this.request(url);
const content = res.match(/<p>[^&]+?<\/p>/g);
const new_content = [];
if (content) {
content.forEach((e) => {
e = e.replace(/<.+?>/g,"");
e = e.replace(/<.+?>/g, "");
console.log(e);
new_content.push(e)
})
const title = res.match(/>(.+?)<\/h1>/)[0]
return {
content:new_content,
title,
}
new_content.push(e);
});
}

const title = res.match(/>(.+?)<\/h1>/)[0];
return {
content: new_content,
title,
};
}

}

0 comments on commit e95f4d3

Please sign in to comment.