File tree 4 files changed +6
-20
lines changed
4 files changed +6
-20
lines changed Original file line number Diff line number Diff line change 1
- import { defineUnlistedScript } from "wxt/sandbox" ;
1
+ import { defineContentScript } from "wxt/sandbox" ;
2
2
3
3
import Page from "./page" ;
4
4
5
- export default defineUnlistedScript ( main ) ;
5
+ export default defineContentScript ( {
6
+ matches : [ "https://www.youtube.com/*" ] ,
7
+ runAt : "document_end" ,
8
+ main,
9
+ } ) ;
6
10
7
11
function main ( ) {
8
12
Page . applyStyleForPlayAllButton ( ) ;
File renamed without changes.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -8,12 +8,6 @@ export default defineConfig({
8
8
extensionApi : "chrome" ,
9
9
manifest : ( { browser } ) => ( {
10
10
name : "Youtube Play All" ,
11
- web_accessible_resources : [
12
- {
13
- resources : [ "play-all-injection.js" ] ,
14
- matches : [ "https://www.youtube.com/*" ] ,
15
- } ,
16
- ] ,
17
11
} ) ,
18
12
zip : {
19
13
artifactTemplate : "{{browser}}.zip" ,
You can’t perform that action at this time.
0 commit comments