Skip to content

Instantly share code, notes, and snippets.

@m1el
Created March 27, 2013 20:02
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 m1el/5257531 to your computer and use it in GitHub Desktop.
Save m1el/5257531 to your computer and use it in GitHub Desktop.
another google search nospy
{
"manifest_version": 2,
"content_scripts": [ {
"js": [ "script.js" ],
"matches": [
"http://*.google.com/*", "https://*.google.com/*",
"http://*.google.com.ua/*", "https://*.google.com.ua/*",
"http://*.google.ru/*", "https://*.google.ru/*"
]
} ],
"description": "",
"icons": { },
"name": "googlenospy",
"version": "0.1"
}
if (location.href.match(/^https?:\/\/(?:www\.)?google\.(?:com?|ru)(?:\.\w+)?\//i)
&& location.pathname.match(/^\/[^\/]*$/)) {
document.body.addEventListener('DOMNodeInserted', function(e) {
Array.prototype.forEach.call(
document.querySelectorAll('#main h3.r a[onmousedown]'),
function(e) {
e.removeAttribute('onmousedown');
e.onmousedown = null;
}
);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment