My goal is I want to create a chrome extension like Toucan Extension. I want to highlight some paragraphs in random site then translate it to specific language. The problem is I do not have an idea on how to implement a popover in chrome extension like in the picture below.
Asked
Active
Viewed 15 times
0
-
Use a `content script` and listen to `selectionchange` event, then add a `div` element with the UI, see also [How to really isolate stylesheets in the Google Chrome extension?](https://stackoverflow.com/a/25100953). – wOxxOm May 07 '22 at 07:14