Joseph
Joseph

Reputation: 803

How can my add-on interface with Firefox Reader View?

I did not find any references to Reader View in any of the SDK APIs listed in the documentation. In particular, I want to enter Reader View automatically, on page load, as long as a toggle button in my add-on is checked. How can I send this message to the browser?

Upvotes: 2

Views: 116

Answers (1)

humanoid
humanoid

Reputation: 764

To enter reader view, all you have to do is change the tab's URL to about:reader?url={siteURL}, where {siteURL} would be replaced with the URL to the page you want the reader to display.

Upvotes: 1

Related Questions