Home > Back-end >  How can I change the color of a Google Link?
How can I change the color of a Google Link?

Time:10-09

I am trying to build a chrome extension that changes the color of websites for colorblind people. One of the features is changing the color of links that have been clicked.

I have tried "a:visited" and it works for most links, but does not work on the actual Google search page. I tried inspecting the page and found that the links are h3 elements. I then tried using the h3 selector, but it changes the color of all of them. How can I make it so that it only changes the color of the links clicked.

Here you can see that the clicked links are orange-brown and the other links are blue, but the website names remain black

CodePudding user response:

Those h3 elements are inside a elements, so you can address them like this:

a:visited h3 {color: red;}

CodePudding user response:

You can edit any local website (on your machine) as you like,

But can't change the server of any website including Google as it's a webserver when you refresh your page it will read from server and refreshed.

  •  Tags:  
  • css
  • Related