Adrià Vilanova Martínez | 2ba5d8d | 2024-05-04 21:17:16 +0200 | [diff] [blame] | 1 | import Script, { |
| 2 | ScriptEnvironment, |
| 3 | ScriptPage, |
| 4 | ScriptRunPhase, |
Adrià Vilanova Martínez | 33a009c | 2024-11-09 22:41:56 +0100 | [diff] [blame^] | 5 | } from '../../../common/architecture/scripts/Script'; |
| 6 | import { injectScript } from '../../../common/contentScriptsUtils'; |
Adrià Vilanova Martínez | 2ba5d8d | 2024-05-04 21:17:16 +0200 | [diff] [blame] | 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 | } |