How can I make a Chrome Extension that appears in the Omnibox (like Hover Zoom) when the site has at least one image, and hides itself when no images are available?

Yeah, I need it to be explained from scratch, or you can just give me the code. I'm too much of a noob in JavaScript to understand how to do anything.