blob: d2b146fbc8091f16b8125336c12f048cfbfd3b86 [file] [log] [blame]
Adrià Vilanova Martínez2ba5d8d2024-05-04 21:17:16 +02001import Script, {
2 ScriptEnvironment,
3 ScriptPage,
4 ScriptRunPhase,
Adrià Vilanova Martínez33a009c2024-11-09 22:41:56 +01005} from '../../../common/architecture/scripts/Script';
6import { injectScript } from '../../../common/contentScriptsUtils';
Adrià Vilanova Martínez2ba5d8d2024-05-04 21:17:16 +02007
8export 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}