forked from interzept/interzept-browser-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.js
More file actions
25 lines (21 loc) · 859 Bytes
/
content.js
File metadata and controls
25 lines (21 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Content script for Interzept Chrome Extension
console.log('Interzept content script loaded');
// This content script can be used to inject functionality into web pages
// For now, it's just a placeholder for future API interception features
// Example: Listen for messages from the extension
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
console.log('Content script received message:', request);
switch (request.action) {
case 'interceptRequests':
console.log('Request interception enabled');
// Future: Add request interception logic here
break;
case 'stopInterception':
console.log('Request interception disabled');
// Future: Stop request interception
break;
default:
console.log('Unknown action:', request.action);
}
sendResponse({ success: true });
});