Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the chrome object?

I just stumbled on a global object in chrome called chrome, I have no idea what this object is and I haven't been able to find any information on it (this is not the same as the chrome object for apps/extensions). Is this like some sort of object that chrome uses to test out new features?

like image 911
Sophie Avatar asked Apr 13 '13 22:04

Sophie


People also ask

What is window Chrome?

The WindowChrome class enables you to extend Windows Presentation Foundation (WPF) content into the non-client area of a window that is typically reserved for the operating system's window manager.

How do I unblock a Chrome extension?

Navigate to Apps & Extensions. Select the target OU. Select the USERS & BROWSERS tab at the top of the page. Ensure the proper setting for Allow users to install other apps & extensions is set to your desired configuration.

What can Google Chrome do?

With Chrome browser, you can: Get personalized search results that appear instantly as you enter text. Synchronize bookmarks and settings across all your devices. Use Google Workspace products, such as Google Docs, Sheets, Slides, and more.

What is a Chrome extension?

Extensions are small software programs that customize the browsing experience. They enable users to tailor Chrome functionality and behavior to individual needs or preferences. They are built on web technologies such as HTML, JavaScript, and CSS.


1 Answers

Given the name of the object, I would guess that the purpose of if is as a utility for Chrome extension developers, even though it exposes methods that might be useful on regular websites not within the bounds of an extension.

Some APIs seem to have a very narrow purpose, chrome.webstore.install() used for extension installation for instance. Others methods and properties, like chrome.csi().pageT to get the time since the page was loaded, could possibly be useful outside the context of an extension, but since no other browser is likely to expose them, I don't see any good use of the APIs outside there intended context.

Unfortunately, the Chrome Developer website is a bit cranky today, throwing HTTP 500, but at least according to the Google search results, you should be able to find information about the chrome.webstore and chrome.appNotifications APIs as soon as the developer site is alive and kicking again. chrome.appNotifications appears to be related to desktop notifications though.

The object seem to be a bit of a hidden treasure and I haven't been able to find a decent list, describing all the exposed APIs. So for now, the easiest way to get information about the various APIs is probably to inspect the chrome object in Dev Tools and then google for the methods that catch your eye.

like image 124
Christofer Eliasson Avatar answered Oct 01 '22 04:10

Christofer Eliasson