What have you found for these years?

2011-09-19

prevent google from hacking links

It's annoying that google is changing the link when you click
on that link in search result page, because then I can't just
right click on the link, and copy the URL from the link.

Previously, I use noscript plugin to disable javascripts for
google.com, but that's not very convenient. A lot more javascript
would be disabled by that way.

So here's a better solution. A userscript which would remove
that offending hacking. gserach.user.js

// ==UserScript==
// @name      gsearch
// @namespace http://godfat.org/
// @include   http://www.google.com/search*
// @require   https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js
// ==/UserScript==

$(function(){
  $('.l').removeAttr('onmousedown');
});

Now I can happily copying and pasting links.

0 retries:

Post a Comment

Note: Only a member of this blog may post a comment.



All texts are licensed under CC Attribution 3.0