Hide icon of extension with Chrome 49 - google-chrome-extension

It looks we can hide icon of extension for Chrome 48 and older. But after an update of Chrome to version 49 (dev channel), it displays my extension icon :(
I had neither "browser_action" nor "default_icon" in the manifest.json (witch is the tip for Chrome before version 49).
Any of you has the same issue ? How to get hidden the icon next to the address bar ?

This is a (brain-dead if you ask me) change by Chrome team.
Even if you don't have a browser_action, your extension will display an icon (or failing that, a tile with extension name's first letter). If you do not declare a browser_action, it will be greyed out and non-interactive, but will still be there.
The idea is to alert the user that some potentially stealthy extension is installed. As such, only the user is empowered to hide the icon, by right-clicking and selecting "Hide in Chrome Menu".
I'm 100% positive this will result in user confusion, but there's nothing you can do.

Related

Chrome extension change border-radius and position

How can I add border-radius on chrome extension popup?
Also, can I add something like margin-top to the popup?
I got the answer from chromium developer:
Alas, that's not something you can control. Your popup content is
basically an iframe inside a window - you can't control the host
window
Chrome simply doesn't allow that.
Alternatives are, instead of the popup, opening a new window or injecting a content script in the active tab to display a modal.

Make Chrome Extension Browser Action Popup bigger than browser window

In FireFox extensions, the Panel/Popup that opens on the Toolbar sizes itself outside the browser window, if needed, so that we see every populated elements in the panel. In Chrome however, the popup/panel is only drawn until the browser window's boundaries. So, if the user resizes the browser window small enough, you don't see the entire popup.
I checked the documentation and couldn't find anything. Is there anything that can be done to show the entire popup?
This seems to be OS-dependent (can be reproduced on Linux and Win7, but not Win10).
As an extension author, there is nothing you can do to control it, this is just how the browser renders its content. You could submit a bug report.

How to open the default popup from context menu in a chrome extension

I have developed a chrome extension that opens a popup when I click on the icon near the address bar. Everything works fine, however I want to add some functionality to it. So I thought I'd also add a context menu item so that the user can simply search for the highlighted word. I want the popup to showup when the user clicks on the item in the context menu(the default popup in the top right corner and not a new popup window or a new tab).
Can I have this functionality? If yes, how do I implement it?
You can't make the popup page show programmatically as if the user clicked it.
However, you can still have something display based on the background script / content menu click. There are 4 main options for your background script:
Open a new tab to the popup.html page
Programmatic injection of javascript to construct a popup-like dialog on the page
Content script message passing to do the same as above, using a running content-script.
Use the notifications API for a simple minimally stylized message to the user.
Options 2, 3, 4 will allow the user to stay on their tab without any navigation. The notifications API route is the simplest to use if you just want some quick notification to the user, and there are fewer security snags. 2 and 3 require more book-keeping, but you can make the dialog look like your popup.
There should be an API for it now (as in 2023)
https://developer.chrome.com/docs/extensions/reference/action/#method-openPopup
update: tried, but failed, there was a bug.
https://github.com/GoogleChrome/developer.chrome.com/issues/2602
hope they fix it soon.
I was looking for extensions that I have already been used, but forget its name. This extension opened up the result into Context Menu, without open new TAB or popup.
may be useful
https://developer.chrome.com/extensions/contextMenus

Several problems with icons during Chrome Extension development

It's very strange.
1 problem
If I add this icon declaration to my manifest:
"icons": {
"16": "images/icon16.png",
"48": "images/icon48.png",
"128": "images/icon128.png"
},
Then, when I add Extension through "Load unpacked extensions ... " it doesn't show logo
But if you try to delete it, it does show
AND! If I delete "48" line from manifect, it starts showing it right away. Maybe it's because I use Chrome Beta (Version 28.0.1500.20 beta) or maybe because I do something wrong.
Seconds problem
Is about icon on Web Store.
I have good 128x128 icon but for some reason in several places it doesn't used in HI-res.
Icon is the following:
But those looks very bad
Also on the last screenshot it puts my logo inside Puzzle icon. I saw many other plugins where it doesn't put it like this.
So I guess my question is following: What icon sized should I provide to have it looks nice in all places?
Close the chrome://extensions/ tab, and re-open it. This may fix the issue (I've experienced this bug a couple of times)
On the details page, only icons of apps are fully shown. All extensions are displayed within a puzzle in the Chrome Web Store.
If you want to get a different picture at the search results, upload a promotional image at the dashboard. See this answer for details.

mouseover text appears on all thumbs

When I mouse over a thumbnail in Tumblr Archive, thumb goes dark and text appears over it. But something has changed in my settings and ALL thumbs appear like this. I use Win XP and the latest browser is IE8. I don't get this with Firefox or another PC.
The same thing happened to me when I updated to IE 10. It is a compatibility issue. Go to "tools" and change your "compatibility view" and it will change it back to the normal view (i.e. the thumbnails will show until you mouse over them). Have one of the archive pages open, and change it, it should update automatically. If it doesn't fool around with the settings until it changes. You can change the "compatibility view" for "tumblr" only by changing the compatibility view for that site only.

Resources