Closed aecreations closed 1 year ago
It is not possible to change an existing tab to use Reader Mode using browser.tabs.update()
. Only new tabs can be opened in Reader Mode; see the documentation for browser.tabs.create()
[1].
-- [1] https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/create
I did manage to get links to open in Reader View. The problem is that the user is unable to switch out of it, because it causes the browser tab to reload, and the tab load event handler finds that the URL is already in the reading list and will then force Reader View.
For version 1.0, simply load the page as normal; user can turn on Reader View from the address bar if they want to.
Read Next 0.8.3+
Reading list links for pages that were displayed in Reader Mode won't open. The browser console reports the following error: