Alicorn comments on Polyhacking - Less Wrong

75 Post author: Alicorn 28 August 2011 08:35AM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (603)

You are viewing a single comment's thread. Show more comments above.

Comment author: Alicorn 14 June 2012 08:24:25PM 1 point [-]

I don't know how to make a CSS addition in my browser itself.

Comment author: kpreid 14 June 2012 08:50:08PM 1 point [-]

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.

Comment author: Alicorn 14 June 2012 09:08:18PM 0 points [-]

OSX 10.7. And I don't know where to find my Firefox profile directory.

Comment author: kpreid 14 June 2012 09:18:14PM *  1 point [-]
/Users/<you>/Library/Application Support/Firefox/Profiles/<gobbledegook>.default

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?)

Comment author: Alicorn 14 June 2012 09:23:58PM 0 points [-]

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.

Comment author: kpreid 14 June 2012 09:34:51PM *  0 points [-]

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?

Comment author: Alicorn 14 June 2012 09:47:19PM 2 points [-]

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.