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, (it's an example, I don't want to add "collapsible"). Just out of curiosity, the use of getElement is deprecated because it requires another JS or what?


 * ,, and others like it are non-standard functions and aren't supported by W3C standards. Using a combination of   and  , which are standard functions, you can check if a set of elements has a certain class or a whole class name, and from that perform actions on the element. As per adding classes, you probably have to modify the script to act on all references. The collapsible table script, for example, acts on elements with   at the instant the script is run - that is to say, adding the class after the script has initialized will not cause a table to become collapsible. Most other scripts are also like this, so due to potential load order problems, it's best to modify the script to also affect elements with the   class.