Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to read and write to/from DOM #163

Open
mrfzd opened this issue Apr 4, 2023 · 2 comments
Open

How to read and write to/from DOM #163

mrfzd opened this issue Apr 4, 2023 · 2 comments

Comments

@mrfzd
Copy link

mrfzd commented Apr 4, 2023

First of all, thank you for this great boilerplate project! It's simply awesome and well put together! So thank you so much for the all efforts, time and the LOVE you have put into this so far!

So after fiddling around, I've been trying to figure out a way to read DOM elements (for any given website that I open up the the Chrome ext. popup)?
Also, how could I highlight and inject elements into any given website i.e. google.com (via the popup)?

Thank you

@AliBahaari
Copy link

Any idea?

@Toumash
Copy link

Toumash commented Jun 1, 2024

You need to communicate popup with content script - use communication https://developer.chrome.com/docs/extensions/develop/concepts/messaging
To run a script use executeScript or just normal content_script crxjs/chrome-extension-tools#859

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants