Support Client-Side Use of API

@itsu, I assume you’ve noticed, but wanted to mention in case you didn’t. The permissions you shared are for the v2 chrome extensions that will be unsupported at some point. I switched pretty early on after encountering the docs mentioning to use v3, but it still required a fair bit of rework to convert it over. There are different permissions, background page is now a service worker, and different APIs to use (scripting, storage).

I think I’m getting close to where a working version could be shared. The conversion to v3 took a bit of time to work through those snags. So far I am able to extract a robust set of page metadata across the various types (og, twitter), identify primary images even if one isn’t set in the metadata, and am stripping down the HTML content into markdown so it can be put into a rich text field. I just need to clean things up quite a bit, but here is a preview demonstration that seems to get the majority of the primary content.

2 Likes