Skip to content

Instantly share code, notes, and snippets.

@cr-chsn1
Created December 16, 2018 21:10
Show Gist options
  • Save cr-chsn1/1d6184a23e31c3fce1cbad1510762fc3 to your computer and use it in GitHub Desktop.
Save cr-chsn1/1d6184a23e31c3fce1cbad1510762fc3 to your computer and use it in GitHub Desktop.
Embedded OpenSearch search engine (Firefox, IE, Safari)
<!doctype html>
<html>
<head profile="http://a9.com/-/spec/opensearch/1.1/">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Affiliate Search Plugins</title>
<meta name="description" content="Affiliate Search Plugins">
<meta name="viewport" content="width=device-width">
<link rel="search" type="application/opensearchdescription+xml" href="https://.../opensearch_search_engine.xml" title="Name of the search engine" />
</head>
<body>
<h1>Links for Firefox & Internet Explorer</h1>
<a href="#" onclick="window.external.AddSearchProvider('https://.../opensearch_search_engine.xml');return false;">Name of the search engine</a> <br>
<br>
<h1>Safari</h1>
<a href="http://www.opensearchforsafari.com/">OpenSearch Safari Plugin</a><br>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment