tried a couple of addons from CAA and a script from Greasyfork, all to no avail

Code: Select all
// ==UserScript==
// @name no_google_redirects
// @namespace nogore
// @description remove google search redirects
// @include https://www.google.*/search?*
// @version 1
// @grant none
// ==/UserScript==
function main()
{
var count = 0;
var lliste = document.getElementsByTagName('a');
for (var i=0; i<lliste.length; i++)
{
if (lliste[i].hasAttribute("onmousedown"))
{
lliste[i].removeAttribute("onmousedown");
count++;
}
}
console.log("removed "+count+" redirects from "+lliste.length+" links");
}
main();
good suggestions. sadly, there's only one on Greasyfork that does not work, and i just realized CleanLinks only cleans up the url in the urlbar rather than preventing the redirect from happening.Isengrim wrote:If you install Greasemonkey, there are a number of userscripts out there that will remove the redirect from their search results. I believe there are also a few FF extensions that will do this, like CleanLinks.
hey, thank you for your work. i installed it as a Greasemonkey script and unfortunately it doesn't seem to have any effect. the symptom that i described in the OP remains, as the google redirect link still appears in a flash when you click on a search result.karlkracher wrote:snip
IIRC this is just how Google's scripting works; when the link is clicked with any mouse button, the redirect URL is replaced with the actual URL.fillerup wrote:also, i just noticed that the redirect only occurs once for each result for each time you search. e.g. if i click a link, it redirects, i hit ESC, then click the link again, no more redirect. same happens if i attempt to click on another search result in the same page, the redirect link only appears for the first click
by 'it' which are you referring to?therube wrote:If you use NoScript, that does it
perfect, thank you very muchtherube wrote:google-search-link-fix-1.4.9.1-signed.xpi looks to work.
hi sorry, it turns out i somehow omitted the last few lines when copying the script over. it works as expected nowkarlkracher wrote:Sorry, i would like to know why it isn't working for you, here it does (what does the browser console says about removed redirections), but if you have another working solution the problem is solved.
That "it" was, NoScript.If you use NoScript, that does it
i do use Noscript and the redirect links appear whether Noscript is allowing google.com or not. in fact if google.com is not allowed to run scripts, the redirect links appear right away when you hover over the mouse and not just when you click the search result, rendering the solutions in this thread uselesstherube wrote:That "it" was, NoScript.If you use NoScript, that does it
And, that "it" was, "prevents google redirects" (aka, cleans up google links).
the redirect link flashes for a brief half a second or so after you click the search resultFrasier wrote:I'm not seeing what you are:google_redirect.png
Have no idea why that is. Maybe your location?
It's an "aberration".i do use Noscript and the redirect links appear whether Noscript is allowing google.com or not.