【问题标题】:Quick MSDN Search in FirefoxFirefox 中的快速 MSDN 搜索
【发布时间】:2010-01-07 18:39:02
【问题描述】:

有没有办法在 Firefox 中获得一个 MSDN 搜索栏它将自动完成 .Net 类和成员名称(最好还有 Win32 API 方法)并将我直接带到 MSDN 页面? p>

带有 Shift+Enter 的 Google 工具栏(我感觉很幸运)通常会直接转到 .Net 类的 msdn 页面,但它没有针对性的自动完成功能。另外,由于我懒得输入site:msdn.microsoft.com,它并不总是把我带到MSDN。 (例如,Graphics

【问题讨论】:

  • 更快地搜索它并不会让它变得更好:(
  • 只是为了解决您的“懒得输入网站:...”备注:您可以在Firefox中为地址栏创建关键字搜索。转到 Google,右键单击搜索框并选择“为此搜索添加关键字...”在关键字字段中输入类似“MSDN”的内容。接下来,编辑您刚刚创建的书签(关键字是书签)并编辑 URL 以包含“站点:”过滤器。像“google.com/…”这样的东西应该可以工作。
  • 我猜 SO 没有完全显示 cmets 中的链接。链接指向正确的地方。
  • 很遗憾,关键字搜索不会自动完成。
  • 我知道。这就是为什么我将其发布为仅针对该次要问题的评论,而不是作为答案。

标签: firefox search msdn


【解决方案1】:

有几个msdn search 提供程序可用。

【讨论】:

    【解决方案2】:

    This search plugin(来自 flyfishr64 链接到的列表)效果很好(建议和一切)。

    【讨论】:

    • 它转到搜索结果页面而不是直接转到第一个结果。
    【解决方案3】:

    您可以使用以下网址为书签页面创建一个带有通配符 %smsdn 关键字的书签:

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

    现在在地址栏中,当我输入“msdn StringBuilder”时,它会将我带到这个结果页面:http://social.msdn.microsoft.com/search/en-us/?query=StringBuilder

    我对@9​​87654325@ 关键字和http://stackoverflow.com/questions/tagged/%s url 做了同样的事情。

    编辑:正如@AgentConundrum 指出的那样,使用http://www.google.com/search?hl=en&safe=off&q=%s%20site:msdn.microsoft.com 网址会将Google 搜索限制在msdn.microsoft.com 站点。

    【讨论】:

    • 在决定不将其发布为自己的答案之后,我刚刚对这个问题发表了评论。当你被投票时,我会哭的。 :P
    • 我想到了这个。但是,它不会提供自动完成功能。
    • 不,因为伟大的思想是一样的,你会很高兴地支持我:)
    • 这甚至可以通过将 site:msdn.microsoft.com 添加到 AgentConundrum 建议的查询中来改进:google.com/search?hl=en&safe=off&q=%s%20site:msdn.microsoft.com%22
    【解决方案4】:

    我最终从 Shog9's answer 编辑了 this search plugin,并将搜索 URL 更改为 Google 的 I'm Feeling Lucky。

    这是 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>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-05-11
      • 2018-10-10
      • 1970-01-01
      • 2022-01-24
      • 1970-01-01
      • 2015-03-20
      • 1970-01-01
      • 2021-01-24
      相关资源
      最近更新 更多