YouTube recently added support for handles and has updated some links in
the UI to default to these formats. The existing logic works without
modification once a new regex for matching against handle URLs is added.
This means that:
- the RSS preview tab opens in the same container in which the opener
tab was open (without need for extra permissions);
- the RSS preview tab appears right next to the tab from which it was
opened, not at the end of the tab bar; and
- if the user closes the tab without switching tabs between opening and
closing the tab, Firefox activates the previous tab (i.e. from which
the RSS preview was opened), not the next one.
YouTube supports channels identified by both channel ID and channel
name. For example, https://www.youtube.com/c/dslrvideoshooter and
https://www.youtube.com/channel/UCMmA0XxraDP7ZVbv4eY3Omg are the same
channel, but the former has a more human-friendly URL. This change
allows the extension to detect the channel's RSS feed regardless of
which URL is loaded using the canonical link provided on each channel
page. This change is fully backward compatible.
Because background color is defined, the text may be not readable if users changed their default colors in the "Preferences" page of Firefox. So to ensure the text can be read if the defaults are changed, the text color too should be declared.
Refactor the `findFeeds` function to allow easy addition of custom
finder functions. This change does three things:
1. Breaks the iTunes and standard feed detection logic into their own respective functions
2. Adds a YouTube feed detection function
3. Creates a mapping to support custom feed detection functions for
additional domains
Fixes#34.
Currently, if a feed provides summaries of posts, it's not possible to
view the full content within the preview page. This change adds a new
option to choose between summary and full contents.