visit
If you are not an established brand then no one is going to find you just by your product name. Focus on your Unique Selling Proposition (USP) and the keywords for which you want to rank in the Web store and use them in your extension name.
For example, we use "Bookmark manager, URL Shortener, Text highlighter" keywords in our and title instead of linkish because mostly the potential users are looking for a feature and not a product
Since there are no common standards, browsers are using multiple instances like
chrome
and browser
of the same object. The easiest way to set up that is by adding this snippet on top of your background and content-script files.
window.browser = (function () {
return window.msBrowser || window.browser || window.chrome;
})();
This will ensure that the entire extension can be ported from Chrome to Firefox without checking each file for possible errors. We will now use the browser namespace which will work for both Chrome extension and Firefox add-on
❌ Avoid this
var sending = chrome.runtime.sendMessage()
✔️ Do this
var sending = browser.runtime.sendMessage()
Since both Firefox and Chrome support
chrome
and browser
, we can not use them to determine that, but as each extension has its own page in the browser, it has its own unique URL as well which can be accessed like:
const extURL = browser.runtime.getURL("");
const isFirefox = extURL.startsWith("moz-extension://");
const isChrome = extURL.startsWith("chrome-extension://");
These can be used to keep browser-specific logic and requirements that we will discuss next week.
Logo / Icon
- 16x16 : Suggested by Chrome
- 48x48 : Required by Firefox and Suggested by Chrome
- 96x96 : Suggested by Firefox
- 128x128 : Required by Chrome
Screenshots
- Up to a maximum of 5 (at least one is required )
- 1280x800 or 640x400
- JPEG or PNG (no alpha)
Promo tiles ( only for Chrome )
- Small promo tile : 440x280 Canvas, JPEG or PNG (no alpha)
- Large promo tile : 920x680 Canvas, JPEG or PNG (no alpha)
- Marquee promo tile : 1400x560 Canvas, JPEG or PNG (no alpha)
Small promo tile, although optional, is very important for a Chrome extension as in its absence, your icon will be shown in the Chrome search results which alone does not look trustworthy.I hope this post will help you create one extension that you can upload to all the extension stores sometime soon.
Cover photo credits
Photo by on
Image by from