Initial commit

This commit is contained in:
2025-09-23 00:29:33 +02:00
commit 4f120b68f5
14 changed files with 394 additions and 0 deletions

12
content.js Normal file
View File

@@ -0,0 +1,12 @@
function onLoad() {
console.log('Starter extension content script loaded on', location.href);
}
window.addEventListener('DOMContentLoaded', onLoad);
chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
if (message?.type === 'GET_NUM_LINKS') {
const count = document.querySelectorAll('a').length;
sendResponse({ count });
}
});