I am currently working on a small Google Chrome extension to display the YouTube subscription page like it was before, on a grid.
I had no problem tweaking the CSS to have a look close to the previous one, but I am stuck with something else: I am trying to find a way to hide videos that have already been seen by the user.
There seem to be no difference at all in the CSS or HTML hierarchy between visited and un-visited videos, so I guess I am stuck trying to find a way using the :visited
property.
BUT: the browser only allows to change color/border-color/background-color of :visited
property, and jQuery cannot filter/select the :visited
property.
Do anyone have any idea of a way around this problem ?
you may not be able to directly select the :visited pseudo-class, but you should be able to check whether an attribute set by that pseudo-class exists, providing the :visited has at least one difference.
say for example the :visited pseudo-class sets the background to red, you should be able to check for that like so
so i guess that in your case, the css property that is different would perhaps be
so you should be able to check that against
or something along those lines.