Quite new to chrome extensions, so any advice is welcome. When I click the extension icon in chrome, the popup comes up, I check checkboxes & select options in dropdowns, but when I close it and reopen it, it's all resetted. How would I make the popup.html remember checkboxes that are checked and the selections in the dropdown?
The chrome.storage API allows you to store, retrieve, and track changes to user data.
http://developer.chrome.com/extensions/storage
Related
When an extension is installed in chrome, a popup comes up which says [Extension_name] has been added to chrome.
This is the default popup having extension icon and some message. I want to modify this popup data. is there any api which we can use to modify it.
There is no such API, but you can use onInstalled event to open new tab with your own description.
In addition to Deliaz's answer, you can create either a browser action or a page action popup. You can change popup html dynamically to make it look completely different depending on the situation but you can't open it programmatically (desktop notifications could be used for alerts).
Here's another reference which might also help.
How to get a warning massage if i accidently click the close button of the chrome browser which have multiple tabs opened at that time?
I am a regular user of Crome and having this problem while using it. I normally open multiple tabs inside a single browser but sometimes i accidently click the close button of browser and as soon as the button is clicked crome does't give any warning issue about multiple active tabs and close the entire window.
Is the end user like me is browsing on normal crome window then he can open the websites again by checking the web history but if he is browsing inside private browser then he can't do anything(this happens with me very regularly because i normally browse in private browser). On the other hand if you accidently click the close button in mozilla which have multiple tabs open it throws a warning massage to the user and asks for his wish.
Go find an extension called "Keep One Pinned Tab". It may not be exactly the function you need, but if you search for other extensions, I am sure there is such an extension that does just that. If you can't find one, I suggest to learn how to develop extensions and make one yourself, you can share it with others when it's done.
I have wasted nearly 4 hours in fixing this.
After Babylon this time it is delta-search which makes my chrome sucks on every new tab. chrome://newtab loads: http://www2.delta-search.com/?babsrc=NT_ss_SU&mntrId=786E00E04C01EE9A&affID=121564&tsp=4987
I am not able to fix this. I have already fixed homepage, search setting and other browsers. Please help me to fix this new tab issue. I want "Most visited tab" to be there when I press new tab button.
A real solution is to reset some fields in "chrome://flags". This was the way I did last time in AVG or Babylon. I have solved my problem but I wish if someone could really give exact steps so that next time if a user gets stuck he can find it here.
:p
open google chrome, type chrome://flags/ on address bar and go to hidden configuration setting.
change following part of configuration file to disable by cliking on enable..
Enable Tab Browser Dragging Windows
Enable creating a browser window when dragging tabs. #enable-tab-browser-dragging
Disable
I created a basic html forms which includes some selectable options via checkboxes and some textfields for things like user name and address data.
Each time a user tries to fill out the form with Chrome's AutoFill option, Chrome seems to uncheck all Checkboxes.
Is this a general Bug in Chrome and how can I solve this problem?
Seems to be an issue with Chromium, hopefully it will be fixed in the next version: https://code.google.com/p/chromium/issues/detail?id=244645
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}).