(manifest)
| 78 | } |
| 79 | |
| 80 | function getUrls(manifest) { |
| 81 | const urls = []; |
| 82 | if (manifest.content_scripts) { |
| 83 | manifest.content_scripts.forEach(script => { |
| 84 | if (script.matches) { |
| 85 | script.matches.forEach(url => { |
| 86 | urls.push(url); |
| 87 | }); |
| 88 | } |
| 89 | }); |
| 90 | } |
| 91 | return urls; |
| 92 | } |
| 93 | |
| 94 | async function ex(command) { |
| 95 | return new Promise((resolve, reject) => { |