Firefox – Open a firefox new tab in reader view

firefoxshortcuts

I'm using Firefox and I like to use the distraction-free "reader view" when I'm reading some text.

My current process is right-click on a link, click in "Open in a new tab" and then click on the reader view like in the image below.

firefox reader view

Now, I want to find some way to open the new tabs in this mode automatically (when the site allows).

I intend to make it automatically, but I'm also open to some shortcut or even a extension, if necessary.

  • Firefox 43.0.4

Best Answer

I found the perfect solution

  1. add this extension Menu Wizard to your FireFox, and restart the browser.

Steps 2 to 6

  1. open Menu Wizard config page by clicking "Alt+Shift+M" on your keyboard or from the right click menu or by typing about:config-menu in the address bar.
  2. Expand Main Context Menu
  3. click on the add button (green plus icon)
  4. drag a new menu item from the right panel to the position you desire in the menu
  5. Click on the Properties of the New Menu Item

enter image description here

  1. set the Title to whatever you like to appear in the menu (e.g. Open Link in Reading Mode)
  2. paste this code in the Command > onCommand field:

    if (gContextMenu.onLink) {
          var selectedLink = gContextMenu.getLinkURL();
          var URL = "about:reader?url=" + selectedLink;
          var mytab = gBrowser.addTab(URL);
          gBrowser.selectedTab = mytab;
    }
    
  3. Click Ok button and exit the Menu Wizard config tab

All Done!

enter image description here

Related Question