Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 115 additions & 0 deletions 115 src/pages-chibi/implementations/ResetScans/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
import { PageInterface } from '../../pageInterface';

export const ResetScans: PageInterface = {
name: 'ResetScans',
domain: 'https://reset-scans.org',
languages: ['English'],
type: 'manga',
urls: {
match: ['*://reset-scans.org/*'],
},
search:
'https://reset-scans.org/?s={searchtermPlus}&post_type=wp-manga&op=&author=&artist=&release=&adult=',
sync: {
isSyncPage($c) {
return $c
.and(
$c.url().urlPart(3).equals('manga').run(),
$c.url().urlPart(5).boolean().run(),
$c.url().urlPart(5).matches('chapter[_-]?').run(),
)
.run();
},
getTitle($c) {
return $c.title().split('Chapter').at(0).trim().replaceRegex('-$', '').trim().run();
},
getIdentifier($c) {
return $c.url().urlPart(4).run();
},
getImage($c) {
return $c.querySelector('[property="og:image"]').getAttribute('content').ifNotReturn().run();
},
getOverviewUrl($c) {
return $c
.string('/manga/<identifier>')
.replace('<identifier>', $c.url().this('sync.getIdentifier').run())
.urlAbsolute()
.run();
},
getEpisode($c) {
return $c.url().urlPart(5).regex('chapter[_-]?(\\d+)', 1).number().ifNotReturn().run();
},
nextEpUrl($c) {
return $c.querySelector('.next_page').getAttribute('href').ifNotReturn().urlAbsolute().run();
},
readerConfig: [
{
condition: '#single-pager',
current: {
selector: '#single-pager [selected="selected"]',
mode: 'text',
regex: '(\\d+)/(\\d+)$',
group: 1,
},
total: {
selector: '#single-pager option',
mode: 'text',
regex: '(\\d+)/(\\d+)$',
group: 2,
},
},
{
current: {
selector: '.reading-content img',
mode: 'countAbove',
},
total: {
selector: '.reading-content img',
mode: 'count',
},
},
],
},
overview: {
isOverviewPage($c) {
return $c
.and(
$c.url().urlPart(4).boolean().run(),
$c.url().urlPart(3).equals('manga').run(),
$c.url().urlPart(5).boolean().not().run(),
)
.run();
},
getTitle($c) {
return $c.querySelector('h1').text().trim().run();
},
getIdentifier($c) {
return $c.url().this('sync.getIdentifier').run();
},
getImage($c) {
return $c.querySelector('[property="og:image"]').getAttribute('content').ifNotReturn().run();
},
uiInjection($c) {
return $c.querySelector('#nav-info > * > *').uiAppend().log('uiInjection').run();
},
},
list: {
elementsSelector($c) {
return $c.querySelectorAll('.wp-manga-chapter > a').run();
},
elementUrl($c) {
return $c.getAttribute('href').urlAbsolute().run();
},
elementEp($c) {
return $c.this('list.elementUrl').this('sync.getEpisode').run();
},
},
lifecycle: {
setup($c) {
return $c.addStyle(require('./style.less?raw').toString()).run();
},
ready($c) {
return $c.detectURLChanges($c.trigger().run()).domReady().trigger().run();
},
},
};
22 changes: 22 additions & 0 deletions 22 src/pages-chibi/implementations/ResetScans/style.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
@import './../pages';

.malp-group {
color: #ffffff;
}
.malp-group-value-section {
display: flex;
}
.mal-sync-active {
background-color: #01091479;
border-radius: 5px;
}

#malp {
margin-top: 20px;
padding-top: 20px;
border-top: 2px dotted #ffffff66;
}
#MalData > * > .info {
padding: 0 !important;
background-image: none !important;
}
41 changes: 41 additions & 0 deletions 41 src/pages-chibi/implementations/ResetScans/tests.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"title": "ResetScans",
"url": "https://reset-scans.org/",
"testCases": [
{
"url": "https://reset-scans.org/manga/dungeon-reset/chapter-263/",
"expected": {
"sync": true,
"title": "Dungeon Reset",
"identifier": "dungeon-reset",
"image": "https://reset-scans.org/wp-content/uploads/2024/12/DUNGEON-RESET.webp",
"overviewUrl": "https://reset-scans.org/manga/dungeon-reset",
"episode": 263,
"nextEpUrl": "https://reset-scans.org/manga/dungeon-reset/chapter-264/",
"uiSelector": false
}
},
{
"url": "https://reset-scans.org/manga/dungeon-reset/chapter265/",
"expected": {
"sync": true,
"title": "Dungeon Reset",
"identifier": "dungeon-reset",
"image": "https://reset-scans.org/wp-content/uploads/2024/12/DUNGEON-RESET.webp",
"overviewUrl": "https://reset-scans.org/manga/dungeon-reset",
"episode": 265,
"uiSelector": false
}
},
{
"url": "https://reset-scans.org/manga/dungeon-reset",
"expected": {
"sync": false,
"title": "Dungeon Reset",
"identifier": "dungeon-reset",
"image": "https://reset-scans.org/wp-content/uploads/2024/12/DUNGEON-RESET.webp",
"uiSelector": true
}
}
]
}
2 changes: 2 additions & 0 deletions 2 src/pages-chibi/pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import { Q1N } from './implementations/Q1N/main';
import { QiScans } from './implementations/QiScans/main';
import { Thunderscans } from './implementations/Thunderscans/main';
import { StoneScape } from './implementations/StoneScape/main';
import { ResetScans } from './implementations/ResetScans/main';
import { Utoon } from './implementations/Utoon/main';

export const pages: { [key: string]: PageInterface } = {
Expand Down Expand Up @@ -55,5 +56,6 @@ export const pages: { [key: string]: PageInterface } = {
QiScans,
Thunderscans,
StoneScape,
ResetScans,
Utoon,
};
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.