Skip to content

Instantly share code, notes, and snippets.

@karlcow
Created September 15, 2016 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karlcow/9d60df58b2d4c6ad78b87a58eeccf19a to your computer and use it in GitHub Desktop.
Save karlcow/9d60df58b2d4c6ad78b87a58eeccf19a to your computer and use it in GitHub Desktop.
The only reason why Google Search for Chrome fails on Gecko
(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