PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
10.29k stars 356 forks source link

[Question]: is there anyway to get anchor info when append a content script on web page? #1038

Open zshnb opened 2 months ago

zshnb commented 2 months ago

How do you envision this feature/change to look/work like?

the content script export component can receive a prop, like anchor/anchorPoint, which is a dom node the content script inject.

What is the purpose of this change/feature? Why?

because I have a case, I need inject a button on the target page, and button want the data in its parent's dom attribute

(OPTIONAL) Example implementations

No response

(OPTIONAL) Contribution

Verify canary release

Code of Conduct