Initial Commit

This commit is contained in:
Andy Dixon
2025-10-16 11:58:46 +01:00
commit e7d2200ef0
36 changed files with 4069 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
// Background script for Firefox extension
browser.runtime.onInstalled.addListener(() => {
console.log('GreasyBoii extension installed');
});
// Listen for messages from content script
browser.runtime.onMessage.addListener((request, sender, sendResponse) => {
if (request.action === 'getRules') {
browser.storage.sync.get(['rules']).then((result) => {
sendResponse({ rules: result.rules || [] });
});
return true; // Keep channel open for async response
}
});