Content scripts in reading mode

I just noticed that a content script from my extension (rut at document start) is not executed in reading mode. Is that expected, or am I missing some permissions?

1 Like

That is expected, as reader is very special and you wouldn’t have the actual dom to interact with, and most content scripts shouldn’t be running either way. I think there was discussion on enabling add-ons to modify the output of reader mode or add functionality at one point, but I’m not sure where that was left off.

1 Like

Any change to find the link of that discussion? I’m unable to locate one in bugzilla.

I’m sure there are many useful add-ons that could be used in reader more, for example:
https://addons.mozilla.org/en-US/firefox/addon/scroll_anywhere/
or
https://addons.mozilla.org/en-US/firefox/addon/highlightall/

This could be solved by introducing new permission.

Here’s the open bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1371786

2 Likes