Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix this source: Royal Road watermark is back #2531

Open
Xampa5 opened this issue Dec 26, 2024 · 0 comments
Open

Fix this source: Royal Road watermark is back #2531

Xampa5 opened this issue Dec 26, 2024 · 0 comments

Comments

@Xampa5
Copy link

Xampa5 commented Dec 26, 2024

App Version: 3.7.4

Describe this issue

Royal Road's 'invisible' text watermark is back.

I download novels to read them offline on my oled smartphone screen and this permanent nagging in the middle of every chapter is infuriating and gets me out of the story.

I know it's supposed to be handled around line 80 of royalroad.py, but not how to fix it

if style.endswith("{display:none;speak:never;}"): classnames.append(style[1:-27])

EDIT: I've been able to fix it in post using Calibre editor. At least for the 8 novels I downloaded today, the only time there's a paragraph followed by a div, it's the nagging watermark. Which can be found with the regex
<\/p><div>.*<\/div>

Ctrl+F, Find: <\/p><div>.*<\/div>, Replace: </p>, Mode: Regex, All text files, click Replace all.

@Xampa5 Xampa5 changed the title Fix this source: Webnovel watermark is back Fix this source: Royal Road watermark is back Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant