I want to develop a small extension to hide the browser chrome for a use case. It seems that the new way to develop addons is to use the web extension api. With the old api it seems to be possible to manipulate the chrome. E.g. in the webdeveloper console (with some config flags) I was able to run this code:
document.getElementById('toolbar-menubar').style.display = 'none';
However it seems to be impossible with the web extension api. Is there any way to do that?
Related
I want to access one browser javascript APIs from another browser.
For example, if I am writing chrome extensions, is there any way to access javascript API for Firefox browser (let us say, History API for Firefox) installed on the same machine?
I looked at the Native Messaging in mdn, but it doesn't seem to satisfy my requirement.
Is it possible that extensions written for one browser communicate with extension for another browser?
For example, if I write a chrome extensions, can I communicate with Firefox add-on from it?
If it is not possible to have communication between extensions/browsers, how come Chrome/Firefox able to pull our
settings,bookmarks etc,. from another browser when we first install
it?
Any help?
Currently, I have created a Chrome App that gets data from a serial connection using the Chrome App Serial API. My goal is to inject this data into a web page. I know this is capable with Chrome Extensions, but the issue there is that Chrome Extensions aren't capable of accessing the serial data on it's own. I also would like to use an Extension instead of an App because the Chrome Apps aren't going to be supported starting this year.
The only option I could think of is to use a Chrome App to get the serial data, send the data to an Extension, and then inject the data into a web page. This is definitely not preferable though. Besides the Chrome Apps not being supported, except for Chrome OS, I wouldn't like to have to have a user download the extension and the app just to implement this.
My preferred method would to have an Extension access the serial devices. Is this possible and/or is it going to possible in the future? If not, why?
Thanks in advance!
I had to develop a Chrome Extension for a website i'm working for. I finished developing it just fine. But Chrome automatically turns it off after browser restarts, with following reason:
This extension is not listed in the Chrome Web Store and may have been added without your knowledge.
My question: Is it possible to have a "Trusted" extension without publishing it to the Chrome Web Store. I don't want to publish it because it wouldn't make much sense, because it is for a very restricted number of "corporative" users.
The chrome web store allows you to hide your extension from public listings. It also allows you do inline installation. This would allows users to install the chrome extension in their browser without ever having to leave your website. So it would be hosted in the chrome web store, trusted, but only installable from your own website.
I try to understand of how building an add-on for chrome and firefox web browser,
The idea is to display a notification or popup window on the page that the user open after fetch the title from JSON file or the user select the title of the website (I do not know what the better,advice me ! )and it's in JSON file
Building addons for firefox and chrome together is a little bit tricky.
In Chrome you can start writing your extension using only JavaScript.
For firefox, you have some choices to work with your plugin:
Using the jpm sdk for firefox addon developing. In this link you can find the get started plugin example, OR
Using firefox web extensions, which using no sdk and has similar API to chrome but it is new to firefox and they are not fully implemented.
my application is setting browserhome page ,search provider ,favourites etc to all supported browsers like googlechrome,firefox,internet explorer.My purpose is to automate my application using selenium .In case of IE these informationa are stored in registry . so it is easy for me to validate the above details .But for firefox and google chrome its bit problem .So i just want know whether there is any functions available in javascript to check browser homepage ,search provider,favourites etc in firefox and google chrome ?
The simple answer is no. It would be a security and privacy issue if client side js code could access that information. Instead you would need to use a browser extension, or in your case you can just use an external program with administrative rights. I am pretty sure that selenium does not have this functionality built in, however it is all available if you know where the browser stores it. IE uses the registry, but chrome and Firefox use proprietary files in their profile directories. There may be an library that does this, otherwise it is possible