Giter Club home page Giter Club logo

readerview's People

Contributors

ascrod avatar fofajardo avatar kn-yami avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

readerview's Issues

Delete readerview.dtd

Reader key combo string is not intended to be localized. Delete extraneous dtd file and hardcode the key in XUL.

Text size

The text size buttons have stopped working. An example below.

1

Favicons do not load

When entering Reader Mode, a favicon for the page should be displayed in the tab if it exists. This works fine with Basilisk's built-in mode, but not with this add-on in Pale Moon.

This is actually a long-standing issue, but it needs to be documented nonetheless.

Add ability to customize keyboard shortcut

This issue is a follow up to #14. An option was added to disable the shortcut, but it would be beneficial to also be able to change the key configuration as well. Given the discussions here and here, it's unlikely that any single shortcut is going to make everyone happy.

Not sure when I'll get around to this, but it's here.

Improve localization

Most of the localization files are missing a property for "readerView.disabled", which displays in a tooltip on the Reader View button when it is grayed out. In English, the tooltip says "Reader View Unavailable". I've added some preliminary translations for several locales, but these are very rough and likely need to be proofread by native speakers.

Suggestions and pull requests for this are more than welcome!

Images do not save with page when Reader Mode is active.

When saving a page while in Reader View, images do not save with the rest of the page content. This only manifests with the Pale Moon extension, and not with the integrated Reader View in Basilisk, so I think we can rule out issues with the platform code here.

Provide API and documentation for adding toolbar buttons

This functionality exists in the original Firefox code, but is solely used for Pocket integration. Create a similar, non-e10s API for adding additional buttons in case someone wants to add Pocket, Narrate, or other custom tools to the toolbar.

Implement simple language detection

As mentioned here, simple language detection could be implemented by processing the HTML lang attribute and/or charset tag. If language detection fails, either default to English or hide the reading time estimate.

Consolidate ReaderParent module

Since Pale Moon does not implement e10s, the ReaderParent module is not necessary. Functionality should be moved to readerMain.js file instead.

1. Show article dates 2. Remove expected reading time in reader mode

I am not a developer and don't understand anything about programming, but I hope this is the right place to post this request. I make extensive use of your Reader View in a Pale Moon fork called ArcticFox. Is there a way 1. to have the date of the articles show in reader mode (it never does), and 2. less important, remove the expected reading duration (useless to me)?

Thank you, your work and the features added to the old Firefox version are very much appreciated.

RobertJ

Preserve navigation links

I'm using reader view in combination with the extension Website Navigation Bar and the latter uses <link/> tags in the <head/> section to offer a navigation bar right into Pale Moon's native UI.

Reader View discards <link/> tags from the <head/> section on reader mode. It'd be nice if these tags are preserved so I can use reader view to read the page and website navigation bar to navigate among the sections. This would be a great combo to read online manuals.

Add localization

Should be able to pull aboutReader.properties from l10n-central for each supported language.

"Open link in new tab" is broken

This is due to a broken reference to "getBoolPref" in readerUtils.js. This call needs to be changed to explicitly use "Services.prefs.getBoolPref".

Loading about:reader URL from bookmark (uncached page) fails

This action fails with the following error in the console:

Error: Couldn't create URI from <uri> to download: [Exception... "Not enough arguments [nsIIOService2.newURI]"  nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)"  location: "JS frame :: resource://readerview/ReaderMode.jsm :: _downloadDocument :: line 250"  data: no]
Source File: resource://readerview/ReaderMode.jsm
Line: 254

Reader View must be exited and re-entered to properly display the document.

Add option to toggle images

This should be doable with a boolean preference and some scripting that sets the inline style display for each image to none, or clears it. And a new button.

Add context menu entry or entries

See also: https://forum.palemoon.org/viewtopic.php?f=46&t=17660&start=40#p134975

Add one or more context menu entries for opening a selected link in Reader View. These entries may include "Open in current tab" and/or "Open in new tab". I think it would be ideal if the implementation also works around redirects (e.g. Google search results) and would only open Reader View if the page is "readerable".

Possibly also include an option to show or hide these context menu entries.

Moved other buttons

It caused some buttons to move to far left (I had arrows, reload etc on right), and some were dropped into Customize palette. I did not try and trace any exact cause, just reverted to a profile backup. I realize this info is not of much use, sorry.

Update for Pale Moon 28 (UXP)

This work is already underway, but I'll make an issue anyway.

Some Reader View components are being integrated into toolkit for the upcoming release of Pale Moon 28. The add-on will need to be updated to take advantage of this as well as to maintain some of the PM-specific changes that will not be in UXP.

  • Remove local components where necessary and update paths to point to toolkit components.
  • Implement any UXP-specific compatibility fixes.
  • Move show/hide images functionality into readerMain.js and utilize the button add/remove API in toolkit.
  • Migrate toolkit-specific preference values from "extensions.reader" to "reader".

No option to enter reader view

Hi Ascrod,
Thanks for this, I cannot seem to get it work though. There is no option to enter Reader View even after I installed it.
extension installed but no option

Interference with other add-ons' shortcut keys

As reported on the forum, the add-on may be preventing shortcut keys used by other extensions from functioning correctly. This is likely related to the new shortcut-configuring feature that was introduced in the latest release.

Add UI for changing preferences

Add UI elements, either a prefs window or buttons on the reader's toolbar, for changing certain preferences. This would include the location.urlbar pref and the hotkey pref.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.