I have written an extension that automatically logs me into certain websites (university related). I have published this extension, and many fellow students really like this extension.
However... I am finding sometimes it has a problem with dealing with the omnibox... Because my extension just fills in the form and submits the information, it does it as soon as the page is pre-loaded with omni-box... making it appear to seem instant. Which is nice sometimes, but in some instances I would have been able to delay the content.js from running until the user hits enter.
Does anyone know how to solve this problem? Preventing a content script from running on a webpage until the user has hit enter in the address bar? The problem I am having occasionally is when I start typing in the address, the content.js completes the form too quickly and starts loading the other page before I can hit enter. But when the omnibox times out, it sends me somewhere else and I lose the page.
So ultimately, I need to figure out how to make some urls immune to being loaded with omnibox, or find out a way to make sure the person is done with the omnibox before my content.js executes.
Thanks!


LinkBack URL
About LinkBacks



Reply With Quote