shgysk8zer0 / awesome-rss

Puts an RSS/Atom subscribe button back in URL bar
https://addons.mozilla.org/en-US/firefox/addon/awesome-rss/
GNU General Public License v3.0
193 stars 23 forks source link

subscribe using user defined URL #116

Open atomGit opened 6 years ago

atomGit commented 6 years ago

perhaps the user has an add-on for reading feeds - if possible i think it would complete what Mozilla, in all their "wisdom" has removed, by allowing the user to subscribe to their preferred reader add-on if it has a URL, like moz-extension:// (or some other way to send the URL to an add-on)

shgysk8zer0 commented 5 years ago

I'm considering how to do this correctly and open to ideas. The thing to keep in mind, however, is that I generate these URLs using URL & URLSearchParams instead of working directly off of strings, so a simple .replace() won't work here.

atomGit commented 5 years ago

i'm not sure we're on the same page ... what i'm thinking is that an empty text input is added to the subscribe options where the user can manually add a moz-extension URL (or even a web reader URL) so they can subscribe with a preferred extension/reader

however i don't know this is worth it because there's probably no way to pass the feed URL to the extension i assume - best you could do is maybe open the extension URL and stick the feed URL in the clipboard so the user can add a new feed and quickly paste the URL

perhaps not worth the effort

shgysk8zer0 commented 5 years ago

@atomGit this is actually among my top priorities (at least as far as the add-on is concerned). And, as far as I can tell, we are on the same page with this. I assume the difference here is that I am considering ways of implementing this that will work with add-ons and all of the other services that have been requested, so correctly formatting the URL is the challenge.

For example, you might have a subscribe URL in these formats:

Whether it's an add-on or website is mostly only a difference of protocol. I use web extension URLs every time a popup is opened, passing in data for feed URLs & titles every time a page with multiple feeds has the icon clicked on, so I'm sure it's possible to do the similar to subscribe to a feed though web extension URLs.

So, what I'm working on now is a way of generating URLs compatible with all the different formats. When I was dealing with a small list of pre-defined services, this was pretty simple. But supporting arbitrary URLs is a bit of a different matter.

markran commented 4 years ago

I would love it if you could support the Feedbro RSS feed reader extension (which is a Mozilla "Recommended" extension). Back when Firefox supported adding alt Content.Handlers in "about:config" the proper string for Feedbro was "browser.contentHandlers.types.4.uri" set to "moz-extension://a9c2ad37-e940-4892-8dce-cd73c6cbbc0c/reader.html?preview=%s"