Add https://danbooru.donmai.us/opensearch.xml. This file tells browsers how to perform searches on Danbooru. In Chrome, this lets you type "danb<tab>" in the address bar to perform a search on Danbooru. In Firefox, you have to click the "..." icon next to the address bar, then choose "Add Search Engine". After that, you can search Danbooru from the address bar. Ref: * http://dev.chromium.org/tab-to-search * https://developer.mozilla.org/en-US/docs/Web/OpenSearch * https://github.com/dewitt/opensearch/blob/master/opensearch-1-1-draft-6.md * https://en.wikipedia.org/wiki/OpenSearch
8 lines
444 B
Plaintext
8 lines
444 B
Plaintext
<?xml version="1.0" encoding="UTF-8"?>
|
|
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
|
|
<ShortName><%= Danbooru.config.app_name %></ShortName>
|
|
<Description><%= Danbooru.config.app_name %> search</Description>
|
|
<Image height="16" width="16" type="image/x-icon"><%= root_url %>favicon.ico</Image>
|
|
<Url type="text/html" template="<%= posts_url %>?tags={searchTerms}&utm_source=opensearch"/>
|
|
</OpenSearchDescription>
|