Prevent Google redirect?
Prevent Google redirect?
back on google now that their captcha system no longer trips on every search for me, and because DDG and Startpage are still very subpar compared to what big bad G offers. however, i'd still like to block this redirect that occurs each time i click a search result (not when i just hover my mouse the link).
tried a couple of addons from CAA and a script from Greasyfork, all to no avail
tried a couple of addons from CAA and a script from Greasyfork, all to no avail
Re: Prevent Google redirect?
You can always copy the address displayed under the link.
It's not great but it's a "last resort" solution, which is better than nothing.
It's not great but it's a "last resort" solution, which is better than nothing.
Re: Prevent Google redirect?
yep i've been doing that, but as you say it's hardly feasible as a long term option. especially when you need to open dozens of results at the same time
Re: Prevent Google redirect?
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.
a.k.a. Ascrod
Linux Mint 19.3 Cinnamon (64-bit), Debian Bullseye (64-bit), Windows 7 (64-bit)
"As long as there is someone who will appreciate the work involved in the creation, the effort is time well spent." ~ Tetsuzou Kamadani, Cave Story
Linux Mint 19.3 Cinnamon (64-bit), Debian Bullseye (64-bit), Windows 7 (64-bit)
"As long as there is someone who will appreciate the work involved in the creation, the effort is time well spent." ~ Tetsuzou Kamadani, Cave Story
- karlkracher
- Fanatic
- Posts: 129
- Joined: 2015-12-05, 17:40
- Location: berlin / germany
Re: Prevent Google redirect?
How to copy the link? The change in the address is done with a onmousedown handler, means opening the context menu does the change. I'm new to greasemonkey scripts but this one seems to be working by removing this handler
Also in google news but not in the image search. Comments?
(Google news if choosen from the menu on the google search side, not with news.google.com)
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();
(Google news if choosen from the menu on the google search side, not with news.google.com)
Re: Prevent Google redirect?
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
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
Re: Prevent Google redirect?
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
a.k.a. Ascrod
Linux Mint 19.3 Cinnamon (64-bit), Debian Bullseye (64-bit), Windows 7 (64-bit)
"As long as there is someone who will appreciate the work involved in the creation, the effort is time well spent." ~ Tetsuzou Kamadani, Cave Story
Linux Mint 19.3 Cinnamon (64-bit), Debian Bullseye (64-bit), Windows 7 (64-bit)
"As long as there is someone who will appreciate the work involved in the creation, the effort is time well spent." ~ Tetsuzou Kamadani, Cave Story
Re: Prevent Google redirect?
If you use NoScript, that does it (for Google, but not Yahoo).
google-search-link-fix-1.4.9.1-signed.xpi looks to work.
google-search-link-fix-1.4.9.1-signed.xpi looks to work.
Re: Prevent Google redirect?
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.
- karlkracher
- Fanatic
- Posts: 129
- Joined: 2015-12-05, 17:40
- Location: berlin / germany
Re: Prevent Google redirect?
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.
Re: Prevent Google redirect?
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.
- karlkracher
- Fanatic
- Posts: 129
- Joined: 2015-12-05, 17:40
- Location: berlin / germany
Re: Prevent Google redirect?
I thought what might be the problem, glad to hear it was so easy. Thanks.
Re: Prevent Google redirect?
The addon google search link fix still works, at least on duckduck and yandex.
Re: Prevent Google redirect?
That "it" was, NoScript.If you use NoScript, that does it
And, that "it" was, "prevents google redirects" (aka, cleans up google links).
Re: Prevent Google redirect?
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).
Re: Prevent Google redirect?
I'm not seeing what you are:
Have no idea why that is. Maybe your location?Re: Prevent Google redirect?
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?
Re: Prevent Google redirect?
It's an "aberration".i do use Noscript and the redirect links appear whether Noscript is allowing google.com or not.
If, with JavaScript disabled (for google.com), you look (hover) a link, it will (at that instant) show the googlefied (crap) link, but it has actually been cleaned up.
After the first hover, move away, then back, & you should (then) see that it has.
Or if on the first hover, you 'copy link location', you will also see that the copied link is clean.
If, with JavaScript enabled (for google.com) [like who would do that ], the links should show, cleaned, from the get-go.
Re: Prevent Google redirect?
Ah, OK, caught it this try.