File tree Expand file tree Collapse file tree
packages/wxt-demo/src/entrypoints Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ import 'uno.css';
22import './style.css' ;
33
44export default defineContentScript ( {
5- matches : [ 'https://*.duckduckgo .com/*' ] ,
5+ matches : [ 'https://example .com/*' ] ,
66 cssInjectionMode : 'manifest' ,
77
88 async main ( ctx ) {
99 const dynamicUI = createIntegratedUi ( ctx , {
1010 position : 'inline' ,
1111 append : 'after' ,
12- anchor : 'form[role=search] ' ,
12+ anchor : 'div ' ,
1313 onMount : ( container ) => {
1414 const app = document . createElement ( 'div' ) ;
1515 container . id = 'automount-anchor' ;
@@ -54,7 +54,7 @@ export default defineContentScript({
5454 const stopAutoMountButton = createIntegratedUi ( ctx , {
5555 position : 'inline' ,
5656 append : 'last' ,
57- anchor : 'form[role=search] ' ,
57+ anchor : 'div ' ,
5858 onMount : ( container ) => {
5959 const app = document . createElement ( 'button' ) ;
6060 container . classList . add ( 'flex' , 'flex-justify-center' ) ;
Original file line number Diff line number Diff line change 11: root {
2- color-scheme : dark ;
2+ color-scheme : light ;
33}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import './style.css';
33import manualStyle from './manual-style.css?inline' ;
44
55export default defineContentScript ( {
6- matches : [ 'https://*.duckduckgo .com/*' ] ,
6+ matches : [ 'https://example .com/*' ] ,
77 cssInjectionMode : 'ui' ,
88
99 async main ( ctx ) {
@@ -15,7 +15,7 @@ export default defineContentScript({
1515 name : 'demo-ui' ,
1616 position : 'inline' ,
1717 append : 'before' ,
18- anchor : 'form[role=search] ' ,
18+ anchor : 'div ' ,
1919 onMount : ( container ) => {
2020 const app = document . createElement ( 'div' ) ;
2121 app . classList . add ( 'm-4' , 'text-red-500' ) ;
Original file line number Diff line number Diff line change 11body {
22 padding : 2rem ;
3- background-color : blanchedalmond ;
3+ background-color : white ;
44}
You can’t perform that action at this time.
0 commit comments