blob: 551c85faeb57e4f3f1edd0113a6d99881e61c384 [file] [log] [blame]
Adrià Vilanova Martínez2ba5d8d2024-05-04 21:17:16 +02001import Script, {
2 ScriptEnvironment,
3 ScriptPage,
4 ScriptRunPhase,
5} from '../../common/architecture/scripts/Script';
6import { injectScript } from '../../common/contentScriptsUtils';
7
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}