firefox opensearch 支持

This commit is contained in:
菜就多練練 2024-10-09 22:14:06 +08:00
parent 4706416e8c
commit 24f6159d37
2 changed files with 9 additions and 0 deletions

View File

@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Luxirty Search">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Luxirty Search</title>
<meta name="description" content="Luxirty Search 为专业人士优化,去除内容农场,无广告,简洁,快。">

8
public/opensearch.xml Normal file
View File

@ -0,0 +1,8 @@
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>Luxirty Search</ShortName>
<Description>Luxirty Search</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">/favicon.ico</Image>
<Url type="text/html" method="get" template="https://search.luxirty.com/search?q={searchTerms}"/>
<moz:SearchForm>/search</moz:SearchForm>
</OpenSearchDescription>