Restore highlighted search terms in Google cache for secure searches. For Firefox+Violentmonkey or Chrome+Tampermonkey. v0.6.6 2023-06-19
< Google Cache Highlight Search Query Terms for HTTPSについてのフィードバック
I stopped using this script a couple years ago so when I got the redesign, I didn't think much about it.
But now that I dive in, I see they moved the link from inside the result to a floating panel. There's no way to move that button into the result because it is dynamically generated when you call up the dialog. There is a giant data structure with the paths, but I don't understand how to read/search it.
Maybe someone with more programming skills can solve it, but I cannot.
Also, modifying the cache link doesn't work (doesn't trigger highlighting) for me. Was yours still working until yesterday? If so, could you share a modified URL from your history of a cached page that shows the highlighting.
Thanks for the quick reply,
The highlighting was no longer working since few years but the related/cache link were generated until few days ago since I used this feature a lot. :-(
Hi Jefferson,
I think I've found an "easy" way to bring back the Cached and Related buttons without having to find the "giant data structure with the paths" but I'm not sure since my knowledge of JS is very limited.
Would it be possible to add a button beside the search results that would pick-up the URL of the results but would add cache:
before the URL ??
So https://www.jeffersonscher.com/
would become cache:https://www.jeffersonscher.com/
and it would bring you automatically to Google Cached url: https://webcache.googleusercontent.com/search?q=cache%3Ahttps%3A%2F%2Fwww.jeffersonscher.com%2F
And you can do the same with related links you just add before the URL related:
--> related:https://fr.wikipedia.org/wiki/Cars_(film)
and it bring all related links automatically (when available).
Would it be feasible to bring back the Cached/Related link with this logic ?
Wow, I thought we needed that strange code in the links. I guess that is just for tracking.
The next problem is positioning the new buttons/links for one-click access -- without firing the result link -- now that we can't just restyle the native menu. They don't make it easy.
That was my thought too but I looked at the source code of others extensions and I tested with cache: and related: and I see that it was working.
New script that bring back cached link beside results: https://greasyfork.org/en/scripts/464092-google-cached-links?
There are some fragile aspects of that script (related to 'div.MjjYud' and span[jsname="czHhOd"]), but there also are fragile aspects of the update I just posted (noted in the code with BREAKABLE). So whatever works for now?
Thanks for the fix !🌝
Hi Jefferson,
Since today Google made some change to the "Cache links" so they no longer show beside the results.
https://i.imgur.com/qVQYVyE.png
I tested it on Google.com and Google.ca TLD.
Let me know if you need more informations.
Best Regards.