Well, this was annoyingly hard to find the complete answer to. (I’ve only done it for Safari.)
In Safari, create the style sheet file anywhere then select it from Preferences → Advanced → Style sheet.
In Firefox, place a file at chrome/userContent.css in your Firefox profile directory; there will be an example file called userContent-example.css there.
In Google Chrome, edit User StyleSheets/Custom.css in your Google Chrome profile directory.
Locating the profile directory depends on your operating system as well as browser; instructions for this are much easier to find but if you specify your OS I’ll look it up for you.
Note that on 10.7 and later the Library folder is hidden; the easiest way to work around this is to use Go to Folder… (Command-Shift-G) in the Finder and then type/paste a pathname such as
~/Library/Application Support/Firefox/Profiles/
(Do I need to mention that all of this is far messier that, speaking as a designer of software, I approve of, even for a rarely-needed feature?)
I have now done all this (I used the terminal to get there) and added the CSS line but it didn’t do anything, PDFs still download without warning when clicked.
The expected result is that PDF links have ” [PDF]” at the end of their text, i.e. a warning of the sort someone writing a comment could have inserted. I tested it on the link in the comment you originally replied to.
Troubleshooting items: Have you restarted your browser? Did you save the CSS as plain text, not RTF or other word-processor format? What is the full pathname to where you placed the CSS file?
Well, this was annoyingly hard to find the complete answer to. (I’ve only done it for Safari.)
In Safari, create the style sheet file anywhere then select it from Preferences → Advanced → Style sheet.
In Firefox, place a file at
chrome/userContent.css
in your Firefox profile directory; there will be an example file calleduserContent-example.css
there.In Google Chrome, edit
User StyleSheets/Custom.css
in your Google Chrome profile directory.Locating the profile directory depends on your operating system as well as browser; instructions for this are much easier to find but if you specify your OS I’ll look it up for you.
OSX 10.7. And I don’t know where to find my Firefox profile directory.
Note that on 10.7 and later the Library folder is hidden; the easiest way to work around this is to use Go to Folder… (Command-Shift-G) in the Finder and then type/paste a pathname such as
(Do I need to mention that all of this is far messier that, speaking as a designer of software, I approve of, even for a rarely-needed feature?)
I have now done all this (I used the terminal to get there) and added the CSS line but it didn’t do anything, PDFs still download without warning when clicked.
The expected result is that PDF links have ” [PDF]” at the end of their text, i.e. a warning of the sort someone writing a comment could have inserted. I tested it on the link in the comment you originally replied to.
Troubleshooting items: Have you restarted your browser? Did you save the CSS as plain text, not RTF or other word-processor format? What is the full pathname to where you placed the CSS file?
I edited the file with vim directly in the Terminal according to my wizard’s instructions. I didn’t restart my browser, which could be it.