bitpiston / rss-button-for-safari

Safari web extension for news feed discovery of RSS, Atom, JSON Feed & RDF+RSS.
https://rssdiscovery.app
MIT License
26 stars 1 forks source link

Detect feeds and redirect to preview page with subscription button #60

Open einkoro opened 2 years ago

einkoro commented 2 years ago

Readable feeds would be nice if we can target injecting styles by mime type or parse for something to consistently identify feeds. A bar along the top with a button to subscribe or copy the url to clipboard would be handy.

This could be included as an optional additional extension or be part of the existing extension.

einkoro commented 2 years ago

It doesn't look like its possible to grab the mimetype without the new web extensions API provided that portion is even available for Safari like it is for Chrome. Nor can we pull the response headers and parse those. Firefox is the only browser that allows for grabbing the mimetype from document.

https://stackoverflow.com/questions/4921175/how-can-i-detect-the-current-tabs-mime-type-in-a-google-chrome-extension

einkoro commented 2 years ago

It should be noted when the correct feed mimetype is used rather than generic ones Safari will prompt to open in the default news reader client.