-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
125 changed files
with
1,112 additions
and
1,053 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export function FromHexString(hexString: string): Uint8Array { | ||
return Uint8Array.from(hexString.match(/.{1,2}/g).map((byte) => parseInt(byte, 16))); | ||
} | ||
|
||
export function GetBytesUTF8(text: string): Uint8Array { | ||
return new TextEncoder().encode(text); | ||
}; | ||
|
||
export function Uint8ToHexString(array: Uint8Array): string { | ||
return array.reduce((result, x) => result + x.toString(16).padStart(2, '0'), ''); | ||
} | ||
|
||
export function BufferToHexString(buffer: ArrayBuffer): string { | ||
return Uint8ToHexString(new Uint8Array(buffer)); | ||
} | ||
|
||
export function GetBytesB64(b64string: string): Uint8Array { | ||
return Uint8Array.from(window.atob(b64string), c => c.charCodeAt(0)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Tags } from '../Tags'; | ||
import icon from './AllHentai.webp'; | ||
import { DecoratableMangaScraper } from '../providers/MangaPlugin'; | ||
import * as Common from './decorators/Common'; | ||
import * as Grouple from './decorators/Grouple'; | ||
import { FetchWindowScript } from '../platform/FetchProvider'; | ||
|
||
@Common.MangaCSS(/^{origin}\/[^/]+$/, Grouple.queryMangaTitle) | ||
@Common.MangasMultiPageCSS(Grouple.pathMangas, Grouple.queryMangas, 0, Grouple.pageMangaOffset, 1000, Common.AnchorInfoExtractor(true)) | ||
@Common.ChaptersSinglePageJS(Grouple.chapterScript, 500) | ||
@Grouple.PagesSinglePageJS() | ||
@Grouple.ImageAjaxWithMirrors() | ||
export default class extends DecoratableMangaScraper { | ||
public constructor() { | ||
super('allhentai', `AllHentai`, 'https://20.allhen.online', Tags.Language.Russian, Tags.Media.Manga, Tags.Rating.Pornographic, Tags.Source.Aggregator, Tags.Accessibility.DomainRotation); | ||
} | ||
|
||
public override get Icon() { | ||
return icon; | ||
} | ||
|
||
public override async Initialize(): Promise<void> { | ||
this.URI.href = await FetchWindowScript(new Request(this.URI), 'window.location.origin'); | ||
console.log(`Assigned URL '${this.URI}' to ${this.Title}`); | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { TestFixture } from '../../../test/WebsitesFixture'; | ||
|
||
const config = { | ||
plugin: { | ||
id: 'allhentai', | ||
title: 'AllHentai' | ||
}, | ||
container: { | ||
url: 'https://20.allhen.online/nochiu_ona_nimfomanka', | ||
id: '/nochiu_ona_nimfomanka', | ||
title: 'Ночью она нимфоманка' | ||
}, | ||
/* Need to be logged, and chapter link change with user id anyway | ||
child: { | ||
id: '/nochiu_ona_nimfomanka/vol1/4?mtr=1', | ||
title: '1 - 1', | ||
}, | ||
entry: { | ||
index: 0, | ||
size: 155_934, | ||
type: 'image/png' | ||
}*/ | ||
}; | ||
|
||
new TestFixture(config).AssertWebsite(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.