V1
This commit is contained in:
15
background.js
Normal file
15
background.js
Normal file
@ -0,0 +1,15 @@
|
||||
// Background script for Firefox extension
|
||||
browser.browserAction.onClicked.addListener((tab) => {
|
||||
console.log('Extension clicked');
|
||||
|
||||
// Check if we're on the correct domain and path
|
||||
if (!tab.url.startsWith('https://claude.ai/chat/')) {
|
||||
console.log('Not on claude.ai chat page');
|
||||
return;
|
||||
}
|
||||
|
||||
// Inject the content script file
|
||||
browser.tabs.executeScript(tab.id, {
|
||||
file: 'content.js'
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user