What kinds of icons do Chrome Extensions support? - google-chrome-extension

Trying to make a Firefox WebExtension work in Chrome, I realized that Chrome's icon support must differ. I have been using a multiresolution icon that contains the icon in 16x16, 32x32, 48x48, 64x64, 128x128 and 256x256, which seemed to work in Firefox without any errors. In Chrome I get errors that the icon is not supported...
Is it possible that my format is corrupt or does Chrome simply not support multiresolution icons?
Do I really have to create individual files for every resolution?

Related

mapbox offline custom style -> need png

I have created a custom style, with custom tileset, which displayed correctly in Chrome, but not in Safari or in iOS app (tiles are downloaded for offline).
I am trying to figure out how to specify that I require png tile set and so far came up with nothing.
Can you please point me in the right direction?
Edit: Perhaps it is not png, vs jpeg after all and something else that is not configured correctly, but the guess so far is that it is due to the fact that jpeg is not transparent and thats why custom layer sent as jpeg does not show layer below. Although I am not sure why it is working in Chrome and not in Safari
Your raster tiles are being rendered as expected in Chrome but not Safari, because Chrome supports WebP images.
You can see detailed discussion of the issue here. The linked issue also discusses possible workarounds such as turning the image into an Image source on the map. Unfortunately, there's no easy solution to implement on the Mapbox side because of the limitations of the JPG format and browser support for WebP.

How to get instant CSS changes with Chrome Extension?

I'm making a Chrome Extension which changes the layout of a website. When my extension is activated and the website loads, you can briefly see the real website then it switches to my modified version loading in all the CSS and JS from the Chrome Extension. Though I've used other extensions that do something similar but have it displayed before anything actually shows the real website. One example is Shine for Reddit. When Reddit shows, it shows the extensions version of the website right at the start. How can I do this?

How to insert a button to gmail page in firefox extension?

i want to develop an extension for both chrome and firefox and need to insert a button to gmail page. In chrome i use Inboxsdk and it work very fine like this: image
Unfortunately, it looks like inboxsdk is not supported on the firefox extension. I tried to load the inboxsdk script but nothing happened on gmail. I want to ask is there a way to use Inboxsdk on firefox extension? Or is there any other way to insert the button into gmail as inboxsdk? Thankyou.
The InboxSDK is currently just supporting Chrome and Safari Browser extensions.
What browsers are supported? Chrome and Safari are currently
supported. Chrome version 36 and Safari 7 are the minimum versions we
support.
Firefox support is under consideration; please let us know if you're
interested.
FAQ - Supported Browsers
One approach to add buttons without InboxSDK to compose views could be using MutationObservers and check whenever a compose view is added to the DOM. Find the send button and append your own button dynamicly. The hard part will be to find a way how you can reliably identify compose views/send buttons.
Classnames could work but I'm bot sure if gmail has consistent classnames and ids you can use (obfuscation etc.).

Google Chrome Extension for Transparent Tabs or Windows

Is it possible to create a browser extension that would allow page-controlled window opacity? Not so that various elements on the page are of a given opacity, but to allow one to see other windows (like the desktop) behind the browser page.
Thank you.
No, this is not possible in an extension. Such transparency would be handled at the window manager level, and would require platform-specific code. This means that either Chrome would have to add this feature and expose it as an extension API (currently no such feature exists), or you would have to write a plugin.

Is there any way to get access to Chrome's theme favicons?

I would like to use Chrome's default favicons.
For example (you can simply open them in Chrome):
chrome://theme/IDR_HISTORY_FAVICON
chrome://theme/IDR_EXTENSIONS_FAVICON
chrome://theme/IDR_SETTINGS_FAVICON
chrome://theme/IDR_PRODUCT_LOGO_16
When I used it as an image source nothing happened. Maybe Chrome blocked the access to the icons or this was not the proper way to use the icons. I tried to use "chrome://favicon/", but it didn't work with Extensions and Settings (strange, but it worked with History).
How can I use the built-in favicons as an image?
I would be also grateful if you could get me a full list of the Chrome's favicons, it must be in Chromium's source code, but I have no idea where to look.
(I'm using Chrome 19.0.1084.52)

Resources