mirror of
https://github.com/NohamR/safari-internal-js.git
synced 2026-10-11 02:49:41 +00:00
Add 27.0 js src
This commit is contained in:
20
27.0/js/search/OpenSearchURLFinder.js
Normal file
20
27.0/js/search/OpenSearchURLFinder.js
Normal file
@@ -0,0 +1,20 @@
|
||||
//# sourceURL=__InjectedScript_OpenSearchURLFinder.js
|
||||
/* Copyright (c) 2026 Apple Inc. All rights reserved. */
|
||||
(function () {
|
||||
"use strict";
|
||||
function e() {
|
||||
if (document.head) {
|
||||
var e = document.head.getElementsByTagName("link");
|
||||
for (const t of e)
|
||||
if (
|
||||
"search" === t.getAttribute("rel") &&
|
||||
"application/opensearchdescription+xml" === t.getAttribute("type")
|
||||
)
|
||||
return void window.webkit.messageHandlers.quickWebsiteSearchFoundOpenSearchURL.postMessage(
|
||||
t.href,
|
||||
);
|
||||
}
|
||||
}
|
||||
e();
|
||||
})();
|
||||
0;
|
||||
Reference in New Issue
Block a user