Clan x86

General Forums => Gaming => Blizzard, WoW and Bots => Topic started by: Hitmen on June 30, 2007, 04:17:02 PM

Title: Armory Firefox Search Plugin
Post by: Hitmen on June 30, 2007, 04:17:02 PM
I like my little search box in firefox, and the armory site takes forever to load all of its disgusting ajaxy crap, so I decided to make my own plugin thing. It comes with the nice little icon and everything.


Just slap this into an apporpriately named xml file (like, gasp, wowarmory.xml) and stick it in your <drive>:/My documents/<user>/application data/mozilla/firefox/profiles/<profile>/searchpugins folder! I know there's some fancy way to make it install itself if you click on it, but I'll leave that up to someone a little less lazy.


<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>Armory Database</os:ShortName>
<os:Description>Search the World of Warcraft Armory Database</os:Description>
<os:InputEncoding>UTF-8</os:InputEncoding>
<os:Image width="16" height="16">data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAQAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJwMFBXEOIjCmGUJUuiJRYrocN0KkAwACbwAAACUAAAAAAAAAAAAAAAAAAAAAAAAABQAAABwAAAAgBQcKcBg%2Fad0iZqD%2FKXSn%2FzSErf9FocL%2FWszv%2F27w%2F%2F9doaLaCAYFawAAACAAAAAdAAAABAAAABYhXIy1FlOF3R1ZkfwgWYz%2FGxkh%2Fx4CAP8bAAD%2FAwAA%2FwAAAP8XNzv%2Ff%2BDg%2F4Tx7%2FsVS37eGUx7sAAAABEAAAAQM2Z1zSVusP8nSmr%2FOxUA%2Fy4pOf8tJkn%2FMx8c%2FyIRHv8VEkH%2FCw8t%2FwAAAf9IoKr%2FXNf%2B%2FyFFVcUAAAALAAAAKxhJeOEdUXz%2FUCoS%2F2MiC%2F9AiJn%2FSsT%2F%2Fw46X%2F8nXGf%2FSrf%2B%2FydUmP8BAAT%2FAQAK%2F0elv%2F8vb4fdAAAAJwo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uP87tOH%2FKnuo2ggQF3UHCwczAgMBHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKg8YG3AVWGehEnGDtBVxha4ZVWeSChQZXwAAACEAAAAAAAAAAAAAAAAAAAAA8A8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA8A8AAA%3D%3D
</os:Image>
<os:Url type="text/html" method="GET" template="http://armory.worldofwarcraft.com/search.xml?searchQuery={searchTerms}&amp;searchType=all">
</os:Url>
</SearchPlugin>


I tried to make it search for everything by adding &searchType=All after {searchTerms}, but apparently it doesn't like that syntax. Oh well. It only searches characters by default, which is what I search for 99% of the time anyways.

Quote
(22:33:13) iago: Or perhaps you have to use &amp; for some ghey reason?

fixed.
Title: Re: Armory Firefox Search Plugin
Post by: iago on June 30, 2007, 10:21:21 PM
Nice :)

Wouldn't it have been easier to add a keyword search? Basically, you right-click on a search field, click "add keyword search" and type in the key. Then, in the address bar, you type "<key> <searchtext>". I set that up for Wikipedia, Google, IMDB, etc.
Title: Re: Armory Firefox Search Plugin
Post by: Hitmen on June 30, 2007, 10:25:36 PM
Quote from: iago on June 30, 2007, 10:21:21 PM
Wouldn't it have been easier to add a keyword search?
It would have, but I totally didn't know you could do that. Plus I like the search box. So pfft.
Title: Re: Armory Firefox Search Plugin
Post by: iago on June 30, 2007, 10:28:32 PM
Quote from: Hitmen on June 30, 2007, 10:25:36 PM
Quote from: iago on June 30, 2007, 10:21:21 PM
Wouldn't it have been easier to add a keyword search?
It would have, but I totally didn't know you could do that. Plus I like the search box. So pfft.
Well, now you know and can save some time in the future. :D
Title: Re: Armory Firefox Search Plugin
Post by: Blaze on July 03, 2007, 03:20:05 AM
Not to burst your bubble, but if you checked Mycroft (http://mycroft.mozdev.org/download.html?name=wow+armory&sherlock=yes&opensearch=yes&submitform=Search), there has been several done for a while.  Nice work, though.  :)
Title: Re: Armory Firefox Search Plugin
Post by: Hitmen on July 03, 2007, 05:07:44 AM
Quote from: Blaze on July 03, 2007, 03:20:05 AM
Not to burst your bubble, but if you checked Mycroft (http://mycroft.mozdev.org/download.html?name=wow+armory&sherlock=yes&opensearch=yes&submitform=Search), there has been several done for a while.  Nice work, though.  :)

Well you know what? Those ones have a shitty icon! It looks like someone tried poorly to fix it.. but *I* extracted the original 16x16 .ico from the exe to use, so it looks perfect. Beat that.
Title: Re: Armory Firefox Search Plugin
Post by: Warrior on July 03, 2007, 01:18:07 PM
hitmen ftw