Forum:Track down classes

Hi, I've some questions regarding CSS classes:  [1]
 * 1) Is it possible to track down the page which are using a class in a similar way to how you do with templates? For example, I want to know where a class is used, how do I do that?
 * 2) I've seen on some wikis the use of the class "plainlinks", but I wasn't able to find the class itself in the wiki CSS, anyone knows how should it be declared and what is it its purpose?
 * 3) I think I've already asked this somewhere, but I didn't got a working answer: I want to add some classes to the reference links, basically I want that this
 * become this

 [1]
 * I tried to use this js code (for adding only one class):

function ShowHideReferences { document.getElementByClass('reference').className += 'class1'; } addOnloadHook(ShowHideReferences);
 * but it didn't work, are there any errors? The last point it's not that important, but it will help if you know a solution.


 * Never use  or any variant, as it is a non-standard function. If you're adding a class to every reference link, you may as well just put the styles on  . You can check which elements use what class with an inspector tool, Google Chrome has one by default, Firefox requires an extension such as Firebug. You can't see a list of pages that use a certain class, this is not technically feasible.


 * Ah so there is no way to track down classes, I thought so... for "adding the classes" I can't simply add the style parameters, because the other classes don't have any of them, they are just triggers for other JavaScript, like "collapsible" and such. (just out of curiosity, the use of getElement is deprecated because it requires another JS or what?)