Instead of a user script, I highly recommend using an addon like Stylish. This works on Firefox, not sure if there is a similar extension for Chrome.
After you install the addon, you can then manually edit the styles of a website based on your needs. (If you are familiar with CSS, then this I highly recommend the addon as it allows you to edit the styles of any website you visit that you are having difficulty with)
After you install it and restart Firefox, the stylish addon adds a toolbar icon. Click it and choose "Write new style".
If you choose "For askubuntu.com" from the submenu, any styles you write, will be implemented for the askubuntu.com domain and any of its subdomains like meta.askubuntu.com and www.askubuntu.com (This can be changed later on).
Anyway, after you choose one of the domain options, you will get something similar to this:
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("meta.askubuntu.com") {
}
Just add the following style inside the curly brackets:
a {
text-decoration: underline !important;
}
The resulting code would be the following:
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("askubuntu.com") {
a {
text-decoration: underline !important;
}
}
Give your style a name and save. And voilà, you have underlined links everywhere in the askubuntu sites.