• Home
  • About Me
  • Contact

kanorben.net - blog

My personal blog on technology, programming, life, and the random

 

August 2008
M T W T F S S
« Jul   Oct »
 123
45678910
11121314151617
18192021222324
25262728293031

Blogroll

  • Boing Boing
  • BorjaNet
  • Brian Mayer
  • Dean Armstrong’s Blog
  • Ellen Smith’s blog
  • Faraocious
  • Gross or Awesome?
  • Marcus Westin’s Blog
  • Nightmares of David Bowie’s Package
  • Paul Mantz’s Blog
  • Slashdot
  • Tomorrow with Alex Beinstein
  • Valleywag

Personal Sites

  • DOIT Fortune Database
  • My bookmark’s on del.icio.us
  • My CS account page
  • My Facebook Profile
  • My LinkedIn Page
  • My Picasa Albums
  • My Twitter
  • pyXSD
  • The SUCCESS Blog
  • UofC ACM Site

webcomics

  • Questionable Content
  • Saturday Morning Breakfast Cereal
  • The Perry Bible Fellowship
  • Welcome To The Future
  • xkcd

Meta

  • Register
  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
Add to Google Add to My Yahoo! Subscribe with Bloglines
Bloggers' Rights at EFF

Twitter Updates

    RSS My Del.icio.us

    • Developers Aren't Gonna Read It | Agile Software Development
    • Code Like a Pythonista: Idiomatic Python
    • Samuel Adams Utopias | Larsblog
    • BASTILLE-LINUX
    • from Vim to Emacs - part 1
    • OpenMacGrid | MacResearch
    • Tutorial: Backups with Launchd | MacResearch

    RSS My Facebook Posted Items

    • nomin' on ribs
    • Chomsky says pick the lesser of two evils
    • Elite Officer Recalls Bin Laden Hunt, Delta Force Commander Says The Best Plan To Kill The Al Qaeda
    • Language Fail
    • Safety Fail

    Fixing Facebook with userContent.css

    August 5th, 2008 by knorby

    I posted something previously on blocking social ads in facebook with greasemonkey, where I came to the conclusion incorrectly it could not be done with css. I apparently remembered what “! important” did in userContent.css and userChrome.css; I read “! important” as “not important,” but it aparently means the opposite, and overrides any webpages css. I corrected my post on userContent.css and userChrome.css customization as well. Stupid logic. Anyway, if you add the following block into your userContent.css file, you should be able to block most annoying stuff on both the new facebook design and old.

    @-moz-document url-prefix(http://www.new.facebook.com/) {
    .sponsor, .invitefriends, .findfriends, .gifts_received, .pymk, .social_ad, .adcolumn{
    display: none ! important;
    }
    }

    @-moz-document url-prefix(http://www.facebook.com/) {
    .sponsor, .invitefriends, .findfriends, .gifts_received, .pymk, .social_ad, .adcolumn{
    display: none ! important;
    }
    }

    There may be a way to combine these two, but I don’t know the more mozilla-internal css well enough to know. If you use facebook, most of these should be clear. I blocked gifts, as I find them annoying, and I am glad to just not be aware of them. I also blocked the person finding features like “people you may know” (’.pmyk’) or the email search things. I also blocked ads of course. Facebook seems to have to idea that everyone will love ads if they are more specifically targeted at you, based on data they have on file. I can’t stop them from doing that (other than by closing and deleting my account), but I shouldn’t have to see ads if I don’t want to IMHO. Also notice that the new facebook design and the old one use the same css classes for everything; the redesign isn’t that extensive apparently.

    Posted in coding, css, facebook, firefox |

    4 Responses

    1. kanorben.net - blog » Blog Archive » Removing Social Ads from Facebook Feeds Says:
      August 5th, 2008 at 2:13 pm

      [...] see my post “Fixing Facebook with userContent.css” for a corrected and more extensive way to go about this. There are some stupid errors in [...]

    2. Says:
      October 24th, 2008 at 6:03 pm

      [...] public links >> userchrome Fixing Facebook with userContent.css Saved by kyliesantiago on Thu 23-10-2008 Customising Firefox 3 Saved by andreiz on Thu 23-10-2008 [...]

    3. FBDev Says:
      November 6th, 2008 at 11:32 am

      Any way that you know to add this code to the page of a facebook app? I’d like to kill the ads and make room for the content of the app that I developed. They jam these things in to the point that I don’t have room to display the content that I developed.

      I tried to just munge it into the page definition of my app. The code executes but the ads remain.

      Thanks,
      FBDeve

    4. knorby Says:
      November 6th, 2008 at 7:16 pm

      FBDeve,

      This css is pretty specific to userContent.css. As far as facebook apps go, if you are a facebook app developer, you could probably say better than me, but I believe when FBML and FBJS is “compiled” to xhtml+css and javascript, I believe the content is sanitized to remove anything that facebook would find unsanitary. I am certain that includes facebook’s css, which is totally reasonable.

      -Karl

    Leave a Comment

    Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

     
    Add to Technorati Favorites - Creative Commons License - © 2007 Karl Norby