I never made extensions, looked in the https://developer.chrome.com/docs/extensions/reference/, but maybe I missed something.
Related
Is there a way to dynamically include clipboard content into a URL of a Bookmark / Bookmarklet in Chrome?
For example, i copy a story number ("test-1234") and want to open it in jira, it would be helpful i could just click the bookmark, something like this:
https://jira.mydomain.com/browse/{clipboardContent}
and it would open the URL:
https://jira.mydomain.com/browse/test-1234
Or is there a chrome-extension that would make it possible?
With chrome.contexMenu API you can select any text ("test-1234") from any web page
and activate a function (present in the contextual menu)
that opens a new tab (or window) with an URL constructed by the fixed part and the parameter in the queue.
You have to grant "contextMenu" and "activeTab" in your manifest.
For further details please read: https://developer.chrome.com/docs/extensions/reference/contextMenus/
I'm doing since years exactly what you've described, but I'm on MacOS and for this I'm using Alfred App (https://www.alfredapp.com). I've created an own Workflow for this. If you're on WIN, then there is something which could be similar to Alfred App --> https://github.com/Wox-launcher/Wox
Whenever I open a new tab in Google Chrome I see the Google search bar plus 8 thumbnails of recently visited (or most visited) sites. I never click on the thumbnails and find them to be annoying. Is there anyway to disable this in Chrome?
I can think of a hacky workaround like creating a blank page someplace and setting that to be the new tab page, but there must be a better way. Any ideas?
Since nobody answered I thought I would post and answer to my question:
Use the Empty New Tab Page extension for a new blank tab instead of the default new tab.
There are also some redirect extensions such as Momentum, which loads a different full screen image each day.
type chrome://flags then Disable "Top Sites from Site Engagement"
Chrome allows extensions to run on chrome:// urls so one such possible future solution is if AdBlock explicitly requests the permission to run on chrome://newtab then you can just block the div with id most-visited. But currently AdBlock does not request this permission.
You could edit the manifest of AdBlock manually to include this permission or suggest it as a future feature.
The default new tap page's url is chrome-search://local-ntp/local-ntp.html. You can press F12 to check it. It's a local resource located in
C:\Program Files (x86)\Google\Chrome\Application\{Version}\resources.pak
or
C:\Users\%username%\AppData\Local\Google\Chrome\Application\{Version}\resources.pak
Open it with a HEX editor, search text
cur.style.opacity = 1.0
, and replace it with
cur.style.opacity = 0.0
Tested on Chrome 77.0.3865.90 .
Some time ago I made a website with wordpress, with my own theme.
Testing the site, discovered an interesting feature in Google Chrome:
If I start typing the address of the website, it says: Press TAB to search this site.
By doing this, what I type in the address bar, go to www.meysite.com/?q = ...
As if he knew the action of my search forms.
Test on Chrome: open a new tab, type stack, for him to suggest stackoverflow.com then press TAB and type any term
But this feature is only available after the user accessed the site and did a search. I think at this moment Chrome "learns" how.
My question is: is there any way to notify Chrome (and other browsers) that my site has a form/action to do internal searches?
This feature is called OpenSearch.
Like MartelDroid said, you can just look at how stackoverflow do to use it. On this link you can see code example https://stackoverflow.com/a/14496104/894546
I've a chrome extension wich open a new tab and inject any javascript into it.
But whenever that the extension is reloaded, it open again a new tab.
So, i want close the tabs when my extension is closed/disabled.
There is chrome.management.onDisabled, but this don't working for this extension, but for other extension. But ... perhaps the code which is injected in the tab can detect if extension is Closed ? For example, if the extension could send a message (with tab.sendMessage) when it is closing ...
Any suggestion or idea ?
Thank you very much, and excuse me for my bad english.
According to the docs I have made an Google Chrome Extension that I would describe as a "browser action" because it is present on all pages. However, my extension doesn't require any interaction so having a badge next to the omnibox is pretty wasteful. I have installed extensions that do not appear anywhere (except maybe in the context menu). How is that done and is that best practice?
Having page action or browser action icons is totally optional if you don't have any popup attached to them, so just remove the whole browser_action section from your manifest file.