start on checking slop on search result pages

This commit is contained in:
Jack Case
2025-10-20 15:03:29 +00:00
parent e829a82b29
commit fc8d0218c7
4 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
function check_links(links) {
// send a message to background script with a list of URLs to check
browser.runtime.sendMessage({type: "check", urls: links})
}
async function message_listener(message) {
if(message.type === "check_result") {
console.log(message.url, message.result)
}
}
browser.runtime.onMessage.addListener(message_listener)