first commit

This commit is contained in:
leo5imon
2025-06-11 16:29:16 +02:00
commit 2ceb73f420
11 changed files with 3180 additions and 0 deletions

13
extension/content.js Normal file
View File

@@ -0,0 +1,13 @@
// Content script for interacting with web pages
console.log('MCP Browser Bridge content script loaded');
// Listen for messages from the background script
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
if (request.action === 'getPageInfo') {
sendResponse({
title: document.title,
url: window.location.href,
content: document.body.innerText
});
}
});