thadguidry / wikidata-entity-linker

Edge extension that makes text like Q12345 into Wikidata Entity links
Apache License 2.0
0 stars 1 forks source link

Implement extension options to enable/disable the link creation feature based on Regex patterns. #2

Open thadguidry opened 4 weeks ago

thadguidry commented 4 weeks ago

It would be nice to also enable Extension options popup panel like other extensions do. This seems to need interaction for the extension icon so that when users click the icon to invoke an action it can invoke a feature or open a popup. See https://developer.chrome.com/docs/extensions/develop/ui#actions

I think a popup makes it easier to use for users. In the popup the options could include some direct toggles ON/OFF sliders for some Regex patterns like the following:

Create links only for the following found patterns: [ ] - Entity ID wrapped in double quotes ex. "Q1234" [ ] - Entity ID pattern found in <code> spans ex. <code>P180=Q5</code>

Details: https://developer.chrome.com/docs/extensions/develop/ui/add-popup