according to
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub">
implement
document.querySelector("link[rel=search]").getAttribute("href")
You can get /opensearch.xml
https://stackoverflow.com/questions/9441928/how-to-get-attribute-from-a-link-tag-in-pure-javascript
Supported Browsers
http://caniuse.com/#feat=queryselector