Skip to content
This repository was archived by the owner on Nov 20, 2021. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4aff38a

Browse files
committedJun 23, 2021
Add cloudflare bypass
1 parent e6e00ba commit 4aff38a

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed
 

‎src/Hachirumi/Hachirumi.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import {SourceInfo, TagType} from "paperback-extensions-common"
1+
import {Request, SourceInfo, TagType} from "paperback-extensions-common"
22
import {GuyaTemplate} from "../GuyaTemplate";
33

44
const BASE = "https://hachirumi.com"
55

66
export const HachirumiInfo: SourceInfo = {
77
icon: "icon.png",
8-
version: "1.0.2",
8+
version: "1.1.0",
99
name: "Hachirumi",
1010
author: "PythonCoderAS",
1111
authorWebsite: "https://github.com/PythonCoderAS",
@@ -17,10 +17,21 @@ export const HachirumiInfo: SourceInfo = {
1717
{
1818
text: "Notifications",
1919
type: TagType.GREEN
20+
},
21+
{
22+
text: "Cloudflare",
23+
type: TagType.RED
2024
}
2125
]
2226
}
2327

2428
export class Hachirumi extends GuyaTemplate {
2529
readonly baseUrl: string = BASE;
30+
31+
getCloudflareBypassRequest(): Request {
32+
return createRequestObject({
33+
url: this.baseUrl,
34+
method: "GET"
35+
});
36+
}
2637
}

0 commit comments

Comments
 (0)
This repository has been archived.