English 中文(简体)
Quick MSDN Search in Firefox
原标题:

Is there a way to get an MSDN search bar in Firefox which will autocomplete .Net class and member names (and preferably also Win32 API methods) and take me directly to the MSDN page?

Google toolbar with Shift+Enter (I m feeling lucky) will usually go directly to the msdn page for a .Net class, but it doesn t have targeted autocomplete. Also, since I m too lazy to type site:msdn.microsoft.com, it doesn t always take me to MSDN. (eg, Graphics)

最佳回答

This search plugin (from the list flyfishr64 linked to) works quite well (suggestions and everything).

问题回答

There are several msdn search providers available.

You could create a bookmark with a wildcard %s and the msdn keyword by using the following url for the bookmarked page:

http://social.msdn.microsoft.com/search/en-us/?query=%s

Now in the address bar, when I type "msdn StringBuilder" it brings me to this result page: http://social.msdn.microsoft.com/search/en-us/?query=StringBuilder

I did the same with the stackoverflow keyword and the http://stackoverflow.com/questions/tagged/%s url.

EDIT: as @AgentConundrum pointed out, using the http://www.google.com/search?hl=en&safe=off&q=%s%20site:msdn.microsoft.com url will restrict Google search to the msdn.microsoft.com site.

I ended up editing this search plugin from Shog9 s answer and changing the search URL to Google s I m Feeling Lucky.

Here s the XML:

<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
    <!-- Created on Thu, 07 Jan 2010 15:11:13 GMT -->
    <ShortName>MSDN</ShortName>
    <Description>Search MSDN documentation</Description>
    <Url type="text/html" method="get" template="http://www.google.com/search?hl=en&amp;q={searchTerms}+site%3Amsdn.microsoft.com&amp;btnI=I"/>
    <Url type="application/x-suggestions+json" template="http://services.social.microsoft.com/search//Data/AutoCompleteTerms?t={searchTerms}&amp;b=Msdn&amp;l=en-US&amp;m=10&amp;rf=oss10"/>
    <Image width="16" height="16">http://mycroft.mozdev.org/updateos.php/id0/msdn_schnore.ico</Image>
    <Developer>Schabse Laks</Developer>
    <InputEncoding>UTF-8</InputEncoding>
    <moz:SearchForm>http://social.msdn.microsoft.com/Search/en-US/</moz:SearchForm>
    <Url type="application/opensearchdescription+xml" rel="self" template="http://mycroft.mozdev.org/updateos.php/id0/msdn_schnore.xml"/>
</OpenSearchDescription>




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

jQuery block moving

I wanna move a div block to the top, so I coded like this: CSS part: .movingPart{ margin-top:80px; } jQuery part: $(document).ready(function() { $( #btn ).click(function() { $( .movingPart )....

Private FireFox plugin

I m looking at getting a FireFox plugin developed - but is it possible to create a plugin that is for private use only, so only those I share it with have it and not open to the masses? Need this for ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Cross-browser development

I m developing a web application for a new service, starting from Firefox 3.5. The interface design is tableless, only using divs + CSS & performance-blessed practices. Now, while being ...

Cross browser way of setting IFrame to "about:blank"?

Does anybody know a proper, cross-browser way to "empty" an IFrame? Is "about:blank" recognized without error across all browsers? Is it valid to give an IFrame an empty src?

热门标签