Tag: coding
-
How to send a message to another part of the browser extension – asynchronously
Erros I got when send a message asynchronously I got some errors related to messaging from a content script to another part of the extension for example a background JavaScript. These are the errors I got, Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before…
-
How to Overlay a Custom SVG Image on a Favicon
Hello! Let me introduce an app I created as a browser extension that overlays a custom SVG image (a pink square image) on a fetched favicon to display it as a new favicon. 1. Required files and Prerequisites content.js: A JavaScript file that is injected from the extension app into the browser’s tab page to…