Google Search Results Sanitizer

By Anmar Mansur Last update Nov 7, 2008 — Installed 1,339 times.

fix

in
Subscribe to fix 2 posts, 1 voice



not really User

Fixed (rewrote) script. Doing this during load doesn't work since it's populating via AJAX now. Avoiding DOMSubtreeModified, since it's slow. Can't remove the event handler from within the event handler--it works only half the time. Can't replace rwt() on load (the function that does the rewriting), since it gets restored later.

Capture clicks, so we get them before onmousedown does, and replace rwt() with a stub on each click. Once again, copy-link-location works as it's supposed to.

// ==UserScript==
// @name google
// @namespace google
// @include http://www.google.com/#*
// ==/UserScript==

window.addEventListener("mousedown", function(e) {
unsafeWindow.rwt = function(obj, a, b, c, d) { return true; }
}, true);

 
not really User

fixup to handle starting at top-page, too (be sure to edit the included pages if only replacing the script; greasemonkey doesn't handle this well):

// @include http://www.google.com/#*
// @include http://www.google.com/

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel