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

Add support to thunderscans#3202

Merged
lolamtisch merged 3 commits into
MALSync:masterMALSync/MALSync:masterfrom
gickass:thunderscans-supportgickass/MALSync:thunderscans-supportCopy head branch name to clipboard
Sep 22, 2025
Merged

Add support to thunderscans#3202
lolamtisch merged 3 commits into
MALSync:masterMALSync/MALSync:masterfrom
gickass:thunderscans-supportgickass/MALSync:thunderscans-supportCopy head branch name to clipboard

Conversation

@gickass

@gickass gickass commented Sep 21, 2025

Copy link
Copy Markdown
Contributor

Comment on lines +102 to +104
overviewIsReady($c) {
return $c.waitUntilTrue($c.querySelector('h1').isNil().not().run()).trigger().run();
},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessary I think

},
list: {
elementsSelector($c) {
return $c.querySelectorAll('ul > li > a .chbox').run();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will break with minimal page changes better use something like #chapterlist .chbox

.run();
},
getTitle($c) {
return $c.title().split(' Chapter').at(0).trim().replaceRegex('-$', '').trim().run();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could just get the title out of the overview link .allc a

return $c.title().split(' Chapter').at(0).trim().replaceRegex('-$', '').trim().run();
},
getIdentifier($c) {
return $c.url().urlPart(3).split('-chapter-').at(0).trim().run();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better use return $c.url().this('sync.getOverviewUrl').this('overview.getIdentifier').run();

This will only work if you get the overviewUrl from .allc a

},
getEpisode($c) {
return $c
.coalesce($c.url().urlPart(3).split('-chapter-').at(1).number().run())

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coalesce is unnecessary. Just remove it, while keeping the content the same

Comment on lines +45 to +56
readerConfig: [
{
current: {
selector: '#readerarea img',
mode: 'countAbove',
},
total: {
selector: '#readerarea img',
mode: 'count',
},
},
],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

readerConfig: [
      {
        condition: '#select-paged',
        current: {
          selector: '#select-paged option:selected',
          mode: 'text',
          regex: '(\\d+)/(\\d+)$',
          group: 1,
        },
        total: {
          selector: '#select-paged option:selected',
          mode: 'text',
          regex: '(\\d+)/(\\d+)$',
          group: 2,
        },
      },
      {
        current: {
          selector: '#readerarea img',
          mode: 'countAbove',
        },
        total: {
          selector: '#readerarea img',
          mode: 'count',
        },
      },
    ],

Comment on lines +105 to +107
syncIsReady($c) {
return $c.waitUntilTrue($c.querySelector('h1').isNil().not().run()).trigger().run();
},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is necessary too

@gickass
gickass requested a review from lolamtisch September 22, 2025 11:46
@lolamtisch
lolamtisch merged commit dd9614d into MALSync:master Sep 22, 2025
6 checks passed
@gickass
gickass deleted the thunderscans-support branch September 22, 2025 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.