Created
September 15, 2016 07:51
-
-
Save karlcow/9d60df58b2d4c6ad78b87a58eeccf19a to your computer and use it in GitHub Desktop.
The only reason why Google Search for Chrome fails on Gecko
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
(function() { | |
if (!google.xjsir) | |
if (google.q && google.q.iere) { | |
for (var d = document.querySelectorAll("#topstuff,#fc,.ichpcnt,#fsad"), a = 0; a < d.length; a++) d[a].classList.add("qs-css-m"); | |
var c = document.getElementById("rg"); | |
c ? (c.style.webkitAnimationDelay = "150ms", c.classList.add("qs-css-m"), c.addEventListener("webkitAnimationEnd", function() { | |
c.style.webkitAnimationDelay = ""; | |
document.documentElement.classList.remove("qs-css-a"); | |
if (google.isr && google.isr.layout && google.isr.layout.getResultsForPage) { | |
var a = google.isr.layout.getResultsForPage(0); | |
if (a && a.length) | |
for (var d = 0, b; b = a[d++];) | |
if ((b = b.querySelector(".rg_i")) && (!b.src || "string" != typeof b.src)) { | |
var e = b.getAttribute("data-src"); | |
e && (b.src = e) | |
} | |
} | |
google.q.sqprt && google.q.sqprt() | |
})) : (google.q.sqprt && google.q.sqprt(), document.documentElement.classList.remove("qs-css-a")) | |
} else document.documentElement.classList.remove("qs-css-a") | |
})(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment