27 lines
617 B
TypeScript
27 lines
617 B
TypeScript
import type { PlasmoCSConfig, PlasmoGetInlineAnchor } from "plasmo"
|
|
|
|
export const config: PlasmoCSConfig = {
|
|
matches: ["<all_urls>"]
|
|
}
|
|
|
|
export const getInlineAnchor: PlasmoGetInlineAnchor = () =>
|
|
// document.querySelector(`[href="/#pricing"]`)
|
|
document.querySelector(`.text-secondly`);
|
|
|
|
// Use this to optimize unmount lookups
|
|
// export const getShadowHostId = () => "plasmo-inline-example-unique-id"
|
|
|
|
const PlasmoInline = () => {
|
|
return (
|
|
<div
|
|
style={{
|
|
borderRadius: 4,
|
|
padding: 4,
|
|
background: "pink"
|
|
}}>
|
|
CSUI INLINE
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default PlasmoInline |