Closed Bug 1987827 Opened 1 month ago Closed 1 month ago

Reader mode on Royal Road stories shows CSS-hidden messages

Categories

(Toolkit :: Reader Mode, defect)

defect

Tracking

()

RESOLVED MOVED

People

(Reporter: josh, Unassigned)

References

Details

Steps to reproduce:

  • Open any story chapter on Royal Road; for instance, https://www.royalroad.com/fiction/118891/new-life-as-a-max-level-archmage/chapter/2324263/1-vivisari
  • Turn on reader mode
  • Somewhere in the page, buried in the chapter, you'll see a message like "If you come across this story on Amazon, it's taken without permission from the author. Report it." or "Help support creative writers by finding and reading their stories on the original site." or similar. There are various rotating messages. In that example URL, it appears right after the text "No response".

Royal Road embeds these messages in stories to fool simplistic scrapers. They all have CSS classes (with randomly generated class names) that are styled with a style element like this:

        <style>
            .cjNkODUzODExNzk4OTRiODhiMTU2ZDY0MDcwNWJiMWU5{
                display: none;
                speak: never;
            }
        </style>

It'd be helpful if Firefox's reader mode hid these. This doesn't require loading a separate CSS file; the styling is on the same HTML page.

Thanks for filing this bug! The library that powers reader mode is hosted on Github, so I've migrated your bug report there. Follow along at:

https://github.com/mozilla/readability/issues/984

Closing this bug in favor of the Github issue.

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → MOVED
You need to log in before you can comment on or make changes to this bug.