How to make a website searchable by chrome? - google-chrome

Didn't know how to phrase my question but I'll try to explain it here.
Have you seen how you can start typing a website URL in chrome's then hit [TAB] and then chrome's URL bar will jump into a searchy status?
For example, type 'facebook.com' in your address bar, then hit [TAB]. what you type in now will be searched for inside facebook.
What does facebook have to have for it to work?

So the thing youre talking about is called omnibox, and here's a link to a similar question which includes loads of detailed answers: How to add google chrome omnibox-search support for your site?
Hope this helps.
Edit: For those reading wondering why they can't replicate the facebook example given in the question, omnibox doesnt always work for everyone, its always been iffy on my work computer but works perfectly at home, I believe its something to do with the browser settings (official advice is just to reset them and try again!)

Related

Development of browser extension questions

I am looking to develop a cross browser extension (plugin) and am having troubles getting answers to a few questions. So just looking for some simple answers if what I would like to do is possible. Thanks. I am currently looking at using Crossrider but would use whatever.
How do some extensions add a menu to the right click button. For example, when I right click in Chrome I see Evernote Web Clipper and Adblock options in the dropdown). How do they do that?
Could I embed a youtube player, for example. So when it's closed the audio still plays but when clicked you can see the video and what not?
For sites like Grooveshark. Could they have a plugin that when clicked you could change the song or stop the music, etc. So basically communicate with a website in your tab from the plugin?
Thanks. I just found Crossrider and it looks like some may be possible but havn't explored it too in depth yet. Kind of wondering if anyone has tried doing these things and if possible.
Google has a specific API for adding context menus. You can read about it here. Just be sure to request permissions for context menus in the manifest.json file and then you can add everything else to your background JavaScript file.
I don't think it's exactly possible to embed a YouTube player into the extension directly. Google Chrome will not allow for running inline scripts, which are clearly required to run YouTube within a popup page (or anything else, for that matter).
As for your third question, you would have to check into the individual APIs for any sites that you want to run the extension with. Every site is going to be a little bit different and my first instinct is that most sites are not going to allow for directly adding their player to the extension.
I would strongly suggest checking out the information about developing Google Chrome extensions available on Google Code. They provide a great tutorial and reference for the basics of developing extensions.

Google maps - We don't have maps at this zoom level for this region

I had a map working perfectly on a domain, then I moved it to a different domain and now all I'm getting is a gray canvas with this error message.
It happens in all browsers, regardless of which part of the map I zoom into, and it's not just my computer because I had two other people test it and it didn't work for them either.
Can someone help with this? I've seen the question asked around the web but no satisfactory responses anywhere.
Try browsing the location/ w/e directly from "http://maps.google.com/". If it results in the same problem, it's obviously on Googles side which means that you can't do anything about it.
Get a JavaScript debugger, such as FireBug or Chrome (under Developer Tools) to see where exactly it bugs out.
With an error description like this it's only guessing (can have several reasons).
I mean, you didn't even provide an URL, so this question is quite theoretical.

What is sfdocready?

I see sfdocready in some footers of pages I have been working on. I cannot find anything about this?
For example:
<sfdocready id="sfDocReady"></sfdocready>
Thanks!
This has to do with Superfish (the <sfdocready> and <sfmsg> tags).
I just determined what was doing it in my case. Using Safari, I have (well, had, it's gone now for this bizarre behavior) the Awesome Screenshot extension installed. There is a checkbox in its settings called "Enable similar product search powered by Superfish" which looks for images on the page and uses them as search parameters to provide comparison shopping deals for you.
In its defense it did prompt me if I wanted to see price comparisons, but it did so on Amazon in a way that actually looked like the prompt came from Amazon.
To the answer above me about Firefox inserting it when you save the document, that's only because an extension or some JavaScript inserted it first, it has nothing specific to do with Firefox. It also has nothing to do with Wordpress.
Somewhat sleazy stuff, imo.
This looks like it's got something to do with Wordpress themes.
I have, an assumption, that this tag means: "safe document is ready", so something is running only after whole document has been loaded. But what exectly does it mean and how does it work, it`s a big question.
Near this tag I have also also often seen <sfmsg> tag.
This tag is inserted by Firefox when you save the page as an HTML document.
I issued this problem yesterday. I have firefox with a plugin named Awesome Screenshot. In order to solve this you need:
Click over the Awesome Screenshot
Select options
UNCHECK/DISABLE the option: "Enable similar product search powered by Superfish"
And that is all!

How to prevent search engine indexing of common utility words without JS

Google thinks my site is about ago, cancel, and edit. This is because those words appear on every comment. Why am I the only site who seems to suffer from this problem?
In fact, if you search Google for the words ago, cancel, and edit (without quotes), my site comes up in the #2 spot (right below Stack Overflow in spot #1). Even if Google is not smart enough to filter out these words, should not sites like reddit, who also use these same text buttons show up before mine?
http://www.google.com/#hl=en&q=ago+cancel+edit
Sites like reddit do not use JavaScript to cloak keywords, so they have found a non-JS solution. What gives?
Thank you.
EDIT: The website is popstrip.com and you can see the comment code at the bottom of any comic page.
This is from the google support forum, so it looks like Google doesn't think it's possible without Javascript or an iframe.

Google Chrome: Search API?

I'm looking for a way to expose Google-Search functionality on my site so that chrome users can use context-sensitive searching (e.g:)
Chrome Search http://img19.imageshack.us/img19/7762/chromesearch.png
I know YouTube is owned by Google, but I couldn't remember which 3rd party sites I had seen this feature work on before. Anyway, I couldn't find any reference to this in google-labs or on code.google.com, so I've turned to you SO.
If anyone has any insight in how to expose this, or a reference doc, I'd be greatly appreciative.
Please note that I am basing my answer off of the context of your question, as at my work I cannot see the image. If my answer is not what you are looking for, please let me know.
I'm not sure if this exactly how Google Chrome does this, but Chrome supports it, and I found this by looking at the source code for this Stack Overflow page.
http://www.opensearch.org
This is an XML specification for providing custom searching. It is currently supported by Chrome, FF, and IE7.
If you want to look at an example page, this is the link to the Stack Overflow specification:
https://stackoverflow.com/opensearch.xml