Repository navigation
Replies: 1 comment 2 replies
|
I found a solution: export default defineContentScript({
matches: ['https://www.example.com/search'],
main(ctx) {
const ui = createIntegratedUi(ctx, {
append(anchor, ui) {
anchor.querySelector('.result-info')?.insertAdjacentElement('afterend', ui);
},
position: 'inline',
onMount: (container) => {
},
});
ui.mount();
},
}); |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I want to add some UI after the
.result-infoelement, but on https://www.example.com/search, the element does not exist. It only exists on https://www.example.com/search?keyword=hello. How should I handle this situation?All reactions