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.
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
Answer
I found the perfect solution
- add this extension Menu Wizard to your FireFox, and restart the browser.
- 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.
- Expand Main Context Menu
- click on the add button (green plus icon)
- drag a new menu item from the right panel to the position you desire in the menu
- Click on the Properties of the New Menu Item
- set the Title to whatever you like to appear in the menu (e.g. Open Link in Reading Mode)
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;
}Click Ok button and exit the Menu Wizard config tab
All Done!




No comments:
Post a Comment