Re:Show HN: I made a modern web UI for Hacker News
by franciscop on Friday September 09, 2022 @06:56PM
(#32785880)
Yes, I'm pretty sure (but not 100%) that extensions normally can avoid CORS/same-origin/etc issues.
> The alternative would be for the extension to grab the html via API from a crawler running on a server
Oh like 'https://myplainwebsite.com/parse?url=https://example.com/doc...'
Re:Show HN: I made a modern web UI for Hacker News
by franciscop on Saturday September 10, 2022 @04:07AM
(#32788803)
So I just launched this inspired on our brief conversation! :)
You can parse any URL into markdown with `https://content-parser.com/markdown?url={encodeURIComponent(...}`.
Maybe there's a better way someone knows for extensions to grab remote html without running into these problems?
The alternative would be for the extension to grab the html via API from a crawler running on a server (or SaaS), which should work pretty well.