Adrià Vilanova MartÃnez | 2ba5d8d | 2024-05-04 21:17:16 +0200 | [diff] [blame^] | 1 | import Script, { |
| 2 | ScriptEnvironment, |
| 3 | ScriptPage, |
| 4 | ScriptRunPhase, |
| 5 | } from '../../common/architecture/scripts/Script'; |
| 6 | import { injectScript } from '../../common/contentScriptsUtils'; |
| 7 | |
| 8 | export default class XHRInterceptorScript extends Script { |
| 9 | priority = 10; |
| 10 | |
| 11 | page = ScriptPage.CommunityConsole; |
| 12 | environment = ScriptEnvironment.ContentScript; |
| 13 | runPhase = ScriptRunPhase.Start; |
| 14 | |
| 15 | execute() { |
| 16 | injectScript( |
| 17 | chrome.runtime.getURL('xhrInterceptorInject.bundle.js'), |
| 18 | /* prepend = */ true, |
| 19 | ); |
| 20 | } |
| 21 | } |