Change the behavior of the bookmark star in Google Chrome? - google-chrome

is there any way for a Chrome Extension to change the behavior of the Google Chrome Bookmark Star Button?
What I want to do:
I want to change the icon of the star (both, the white and the filled yellow version)
When new star button is clicked, it should add a bookmark to Google Chrome just like the original way the button works, but display a custom form instead of Googles default form.
Is that possible? I have not found any way to alter "built-in" functionality in Google Chrome.
However, Google itself does exactly what I want with this extension: https://chrome.google.com/webstore/detail/bookmark-manager/gmlllbghnfkpflemihljekbapjopfjik
By now, I have only found a way to alter the "bookmarks" page itself (https://developer.chrome.com/extensions/override)
Any hints on how to do that?
Thanks!

The Bookmark Manager App added this to its manifest:
"chrome_ui_overrides" : {
"bookmarks_ui": {
"remove_button": "true",
"remove_bookmark_shortcut": "true"
}
},
(as outlined here: https://developer.chrome.com/extensions/ui_override)
However, that seems to work only in Dev channel Chrome with --enable-override-bookmarks-ui=1 start argument or for the Google Bookmark extension itself.

Related

How do I get a keyboard shortcut to translate a google chrome webpage? Not looking for auto-translate options

I need to frequently translate the webpage manually for work purpose. Although not looking for auto-translate options, I need a keyboard shortcut or a handy extension to translate the page. The right click option on google or the google chrome translator extension need multiple clicks in order to translate. The middle mouse button to translate the whole web page would do some good to me.
I tried looking out for extensions out of which context menus was related to my issue. I couldn't figure out how it works.
The right click option on chrome has 7th option for translate page which is not handy. I need it to be the first option on right click or the middle mouse button to translate the google page would help.
I am working on windows and not MAC.

Automatically open an gmail addon card without user clicking on the addon icon

I am looking for a way (I understand does not really seem a good idea) to force my Gmail addon to automatically open a card and display the same.
Basically, the addon should check the current email's tags and then auto trigger some 'showPanel' of the addon.
I see some answers about google sheets, but not getting how to go about this in the Gmail addon without user triggering it.
Additional Chrome Extension way ??:
If this is not something possible. I also have a chrome extension (which the users will have installed) clicking on a link created by the chrome extension can I somehow trigger the addon icons click event?
Apologies if this basic stuff, not able to find any direct useful info.
There is a Chrome extension that allows you to automaticlly open an addon from Gmail, Calendar, Drive and Docs when you open the page in the browser.
https://chrome.google.com/webstore/detail/auto-open-add-on/bcjnialkobgkdkbdclhdnbdcdgdcgdlo

How to keep show out Bookmark, Display Google App list, Google accout icon in new tab

I'm working make a chrome extension to overwrite new tab.
"chrome_url_overrides": {
"newtab": "index.html"
},
Every thing working fine, but, I got some issues:
By default, Bookmark Bar always hidden, just show out when open new tab (New tab default GG chrome). But when I use my extension, Bookmark bar doesn't show out when I open a new tab. Has any way to make my extension can display Bookmark bar like default?
Quick navigation (I'm not sure I call right name) on new tab
Has anyway to keep this section on my new-tab extension?
Thank for your readding!
As stated in this link, it is not yet possible. If you think this can improve the extension development experience, make sure an appropriate request is filed in the issue tracker.

For a Google Chrome extension, how can I create an on/off toggle in the browser icon?

For example, Adblock has a "turn off" option when you click the browser icon in the dropdown.
I would like users to be able to toggle on/off my extension for a domain, instead of having to disable it to turn it off.
Another option could be to put a static button on the webpage layout and have that toggle the extension or stylesheet on/off.
You need to add a 'browser_action' to the extension. You define it in the manifest.json as detailed here.
Use the onClicked event listener in your background script/page to disable/enable the application based on user clicks.
You can also use the same event handler function to make changes to the browser action icon or badge text to show the state change / current state to user.
Update Feb 2023:
When using manifest version 3, use action instead of browser_action. Details here.
you could try a mixture of local storage, a toggle in a popup, and conditional statements surrounding your code
Abraham, you could try and use this Chrome extension:
Link: https://chrome.google.com/webstore/detail/niemebbfnfbjfojajlmnbiikmcpjkkja
You can use it to quickle enable/disable all your extensions.
I found this extension on this website:
http://www.addictivetips.com/internet-tips/disable-all-extensions-in-chrome-with-a-single-click/
The article also mentions 2 extensions with which you can enable/disable an extension through a command in the URL box ("enable <>")

Shortcut (programmatically) open a link in a new tab without focus to that tab

Google search + Google Chrome browser have this implemented, when you browse the google search results using your up and down arrows (only possible in Chrome browser) and than press CTRL+ENTER it opens the search result selected in a new tab but without focus to that tab. You can now use up and down keys in the same list of search results and CTRL-ENTER more results in new tabs to visit later on.
Does anyone have any idea how this is done? As it only works with Google Chrome at the moment I suspect something is added to the browser as well but I can't find anything on this subject.
The way I have seen this done before is for the webpage to listen for key presses (e.g., j/k) and simply focus() the desired link. Then, when the user presses Enter or Ctrl-Enter, he is simply performing the default operation on the focused link.
Sure enough, when I type this into the javascript console on a Google search result page, I see the links that are being focused.
document.addEventListener('focus', function(e) {console.log(e.target)}, true);
So Google is still using the same technique, although it's not so obvious because they hide the dotted outline around the focused link using CSS (a.noline{outline:0}).