Active2 years, 3 months ago
Chrome toolbar free download - Google Chrome, Google Chrome (64-bit), Google Chrome Canary, and many more programs. Best Video Software for the Mac How To. Once enabled, just visit any Google site or web service like Gmail, YouTube or Google Plus. As you can notice, the black Google menu bar now sits on top of every page that you visit. You can just click on any of the sections or categories to navigate your way to other Google services. Step 1: Launch the Google Chrome Web browser. You can customize your bookmarks bar even further by learning how to delete bookmarks in Chrome. How to Hide the Home Icon in the Toolbar in Google Chrome. How to Use a Logitech Bluetooth Keyboard with the Apple TV. But the gray bar underneath the address bar, also referred to as the bookmark bar, is one thing that you can eliminate if you are not using it. Learning how to hide the bookmarks bar in Chrome will also show you how to access the settings menu in the browser, which includes a number of other settings that might be useful.
I'm exploring Google Chrome extensions for the first time. I would like to create what appears as a toolbar along the top of the page when you click the extension icon, much like the StumbleUpon toolbar.
I can't see how to do this. The examples mainly show a popup.html, and not a fixed toolbar.
RobinRobin1,13344 gold badges1010 silver badges88 bronze badges
3 Answers
Although this answer shows two ways to create a toolbar in Chrome, I strongly recommend using page action or browser action badges. These do not take as much space as toolbars, and can also be used to show a panel on click, and even get temporary host permissions to interact with the page.
And for those who do not really need a toolbar, but a sidebar, there is an active proposal for a
chrome.sidebar
API. This is just a proposal, whether and when it will be implemented is not set in stone yet.This section used to show a demo using the
chrome.infobars
API. This API has never been to the stable channel, and will be removed; do not use it.Creation of toolbars using content scripts is tricky. You have to insert code in the page, and even modify the structure of the document, which could break some pages on the internet.
To create a toolbar using content scripts, the following steps have to be taken:
- Execute a content script on the page which runs the next two steps.
- Insert the toolbar (
<iframe>
- explained later). - Shift the content of the page.
Step 1 is easy, see my previous example or read the documentation of content scripts.
Step 2: Insert the toolbar
To minimize styling conflicts, and to prevent the page from using your toolbar, insert an iframe. Unlike the previous method, you do not directly have access to the extension API (because the embedded page is neither a content script, nor a page running in the extension's process).
Inserting the toolbar:
add-toolbar.js
(content script)
Now create a file called
toolbar.html
and add it to the 'web_accessible_resources'
section of your manifest file. This file is going to used at the spot of the toolbar, feel free to do anything non-evil with it. Just keep in mind that it acts like a normal web page, it literally does not have access to any of the Chrome APIs.Step 3: Shifting the content
So far, you've only added a frame to the page. There's one problem: The content on the page is partially hidden. That is not very nice. There are several ways to fix this, I choose to use CSS transforms, because it's relatively easy to use, and most pages don't use this property on the body element.
translateY
causes the body to shift down, including those child elements with position:fixed
. Because we've appended the iframe to the root element, outside the <body>
tag, the element is not affected.I want to use extension APIs in the toolbar!
Unfortunately, Chrome treats the embedded html page as a non-privileged extension page. You can only use some of the extension APIs (similar to content scripts).
Another option is to load a page from your server, then execute a content script on that specific page. Set up a Cache manifest to ensure that your toolbar is still available if the user isn't on a network.
HaNdTriX20.5k66 gold badges6161 silver badges7474 bronze badges
Rob WRob W
282k5454 gold badges667667 silver badges594594 bronze badges
Chrome API doesn't have any toolbar widget to assist you. You would need to manually create and position a toolbar div on a page. You can do this by utilizing content scripts, which allow you to inject javascript and css to pages.
sergserg80k6565 gold badges279279 silver badges309309 bronze badges
This gives you a stumble-upon-like browser extension for a variety of browsers, although you can limit the download to just chrome if you wish.
Installers
General install page (provides an executable that can be signed if you are on windows to ease the installation process):
Specific installs:
- Firefox: http://crossrider.com/download/ff/35180
- IE: http://crossrider.com/download/ie/35180
- Chrome: http://crossrider.com/download/chrome/35180
- Safari: (will work, but need to go through process with Apple for that)
Crossrider also makes it easy to publish to chrome store as well and provides an easy way to sign your extension for executable downloads on windows.
Info
Here are the docs for the API, its quite extensive for a cross-browser solution: Best zip utility for mac.
In the code below I'm not putting the html & css because there are limits to the number of characters for answers. However, if that looks good, you can either open it up (crx's are zips, just rename extension to .zip) to get the css and html inside or we can figure out a way for me to send it to you. Note that I'm injecting the HTML and CSS into the page.
I usually write the css and html, then minify both (http://cssminifier.com/ and http://www.willpeavy.com/minifier/), then I take the minified output and I use a string escape tool like http://www.htmlescape.net/stringescape_tool.html to escape it so that it can be put into the extension code, as you want that to be as fast as possible, given that its an extension, not a web page of course.
So, if this looks good, go to crossrider.com, set up an account (it is 100% free), and paste these files in the appropriate places and put in the minified/escaped HTML and CSS you need, replacing the stuff in the cssstr and htmlstr in the extension.js below.
Code
https://secever449.weebly.com/diagnostic-tool-for-mac.html. extension.js:
background.js:
Notes
How To Get The Tool Bar On Internet Explorer
Also note that jQuery is automatically available in the extension scope, so you get that for free along with the API's. And, if you want to inject into an iframe, be sure not to forget to enable iframes in the settings.
For the community support site: https://getsatisfaction.com/crossrider
They are very responsive and can help you out when you run into trouble.
How Do You Put The Tool Bar On The Bottom
hoontohoonto