Skip to content

Instantly share code, notes, and snippets.

View caillou's full-sized avatar

Pierre Spring caillou

View GitHub Profile
@caillou
caillou / gist:1390151
Created November 23, 2011 22:41
Google's clearQuery code
gh.addEventListener("mousedown", function(a) {
a.preventDefault();
S.value = "";
S.value = S.value; // hrhrhr...
if (T)
jh.innerText = T.innerText = ""; // hrhrhr...
yg++;
vg = ug = 0;
S.focus(); // interesting. it really has no effect.
zh();