Customizing Google search with userContent.css

Discussion of general topics about Mozilla Firefox
Post Reply
semigeek
Posts: 322
Joined: April 16th, 2014, 8:54 pm
Location: Colorado

Customizing Google search with userContent.css

Post by semigeek »

Here are two things I'd like to do (as I think many people would) with the Google search results page but haven't managed. Is it possible?

(1) Permanently exclude certain annoying sites (like aggregators) from the results. I've tried using [href*=] or [src*=] in various ways but it hasn't worked. (I don't expect the page to fill out with others instead, I just don't want to keep seeing these.)

(2) Replace cute Doodles in the header with the standard Google logo. It's easy to just get rid of the doodle leaving the space blank, but there's an add-on that claims to pull off this replacement (with css!) so presumably I should also be able to, instead of resorting to an add-on for something this trivial.

Of course such settings should simply be available on Google, but they're not.
semigeek
Posts: 322
Joined: April 16th, 2014, 8:54 pm
Location: Colorado

Re: Customizing Google search with userContent.css

Post by semigeek »

I've now examined the "Hide Doodle" add-on and it uses a fair amount of javascript, as the Google page also seems to around the logo/doodle... which explains why I wasn't getting very far with plain css. I'm sure that excluding listings based on source URL would be a similar story, and there isn't even an add-on to do it. Oh well... I'd be glad to hear any further suggestions.
Last edited by semigeek on December 14th, 2021, 11:49 am, edited 1 time in total.
morat
Posts: 6437
Joined: February 3rd, 2009, 6:29 pm

Re: Customizing Google search with userContent.css

Post by morat »

I would simplify the links before doing any filtering.

Don't track me Google
http://addons.mozilla.org/firefox/addon/714322
semigeek wrote:I'd be glad to hear any further suggestions.
Search Filter
http://addons.mozilla.org/firefox/addon/871944
semigeek
Posts: 322
Joined: April 16th, 2014, 8:54 pm
Location: Colorado

Re: Customizing Google search with userContent.css

Post by semigeek »

morat wrote:Don't track me Google
http://addons.mozilla.org/firefox/addon/714322
Yes, I was already using that.
Wow, thanks, that's exactly what I wanted and it seems to work very well, though the number of downloads is quite small. Not sure how I missed it too, possibly because it doesn't have Google in its name (since it works on a couple of others like DuckDuckGo also).

This must also strip the Google tracking data from links in order to work, so you wouldn't think you'd still need the add-on above, and indeed hovering over a link (with Don't Track disabled) shows it in simple form. Unfortunately, that may be misleading; if I right-click and paste the link, the tracking is there. So what happens if I click on the link: is Google tracking being bypassed or not?

Searching for "Google" at Mozilla lists over 2600 Firefox add-ons targeting Translate as well as Search... it's quite the cottage industry! All but one of my add-ons deal with Google. If I have to keep Don't Track that's two, and if I use the one for Doodles and another I found for Images results,
https://addons.mozilla.org/en-US/firefo ... -restored/
that would be four out of five. That seems faintly ridiculous, but I suppose it reflects the central importance of web search, as well as lack of customization on Google.
Post Reply