Open atomGit opened 6 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.
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
@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:
https://example.com/feeds/subscribe/:feedUrl
https://example.com/feeds/subscribe?url=:feedURL
https://example.com/feeds?action=subscribe&url=:feedUrl&token=:someToken
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.
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"
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)