A Chrome/Firefox web extension that adds a blocklist button to search results on DuckDuckGo, Google, and Brave Search.
- Hover over search results to show an "add to blocklist" button
- Click the button to select a color (green, yellow, or red)
- Sends the selection to a native Node.js app via IPC
-
Load the extension in Chrome/Firefox:
- Chrome: Go to
chrome://extensions/, enable Developer mode, click "Load unpacked", select this directory - Firefox: Go to
about:debugging, click "This Firefox", "Load Temporary Add-on", selectmanifest.json
- Chrome: Go to
-
Update the
native-messaging-host.jsonfile with your extension ID (get it from the extension page)
-
Make the Node.js script executable:
chmod +x hyperupcall-ublacklist-add.js
-
Install the native messaging host (Chrome example):
# Linux mkdir -p ~/.config/google-chrome/NativeMessagingHosts/ cp native-messaging-host.json ~/.config/google-chrome/NativeMessagingHosts/ # Update the extension ID in the JSON file first!
-
Test the native app:
node hyperupcall-ublacklist-add.js
- Search on Google, DuckDuckGo, or Brave Search
- Hover over any search result
- Click "add to blocklist" button
- Select a color (green, yellow, or red)
- The selection is sent to the native Node.js app and printed to stdout
manifest.json- Extension manifestcontent.js- Content script for search result detectionbackground.js- Background script for native messagingpopup.html/js- Extension popupstyles.css- CSS for the extensionhyperupcall-ublacklist-add.js- Native Node.js appnative-messaging-host.json- Native messaging host configuration