Neal Grosskopf Dot Com A NG Designs Site

Neal Grosskopf Dot Com Return To Neal Grosskopf's Home Page a NG Designs Site

Toolbar

  • Skip To
    • Menu
    • Content
  • Validate
    • HTML
    • CSS
    • WAI
  • Font Size
    • Small
    • Medium
    • Large
    • Extra Large
  • Account
    • Create Account
    • Login

Interact

Navigation

  • Home
  • Interact
    • Blog
    • Message Board
    • Open Links
    • Open Videos
    • Photo Gallery
    • Polls
    • Reviews
    • Geek Speak
  • Designs
    • View All Designs
    • Professional
    • Corporate
    • Templates
    • Personal
    • Club
    • NG Designs
    • Web Guides
  • Files
    • Artwork
    • Wallpapers
    • My File Downloads
  • Extras
    • Bookmarklets
    • The Magic 8-Ball
    • Career Builder RSS Feed Generator
    • Monster.com RSS Feed Generator

Don't Like The New Facebook Home Page? Fix It With 5 Lines of CSS

  • Actions
    • View All
    • View Article Statistics
    • View User Statistics
    • Search
    • Subscribe to RSS Feed

Recent Articles:

  • Tracking Outgoing Links in Google Analytics Using Event Tracking and jQuery
  • Tracking Internal Website Campaigns With Google Analytics and PHP
  • Everything You Need to Know About jQuery's .data() Method
  • Google vs. China: How It Will Affect Web Workers
  • Don't Like The New Facebook Home Page? Fix It With 5 Lines of CSS
View All

Subscribe To Feed
loading Subscribers

I'm On Twitter loading

Feb 08

Screenshot of the New Facebook home page

New Facebook Home Page

Above is a screenshot of the new Facebook home page. One change on the new page is showing all types of updates rather than just status updates.

Facebook has once again decided to redesign their home page. These types of changes usually result in millions of users joining groups titled "I hate the new design" or something similar. Being a web designer I sympathize with Facebook.

One thing they changed with the recent redesign was removing the "status updates only" option on their home page. I'm now forced to sift through every group, fan page, image and application post my friends have made. Facebook does give me the option to hide specific applications but with 1000's of apps out there, it isn't practical to hide each and every one. Enter Stylish.

Hacking Facebook's CSS

Using a Firefox addon called Stylish I was able to sift through Facebook's HTML & CSS and determine if they did a good job giving their home page elements proper class names and IDs. For whatever reason Facebook uses custom HTML attributes. One of these was called data-ft. The first value in that attribute is a number that represents various home page types. The example below uses "46" which is plan ol' vanilla status updates:

<div class="GenericStory UIStory clearfix aid_718391393" data-ft="{"sty":"46","actrs":"718391393","fbid":"328181226116","s_obj":"11","s_edge":"1","s_prnt":"11"}" id="div_story_1630882208_328181226116"></div>

Show Status Updates Only

By adding the code below into Stylish it will hide ALL types of updates on the Facebook home except for regular status updates:

@namespace url(http://www.w3.org/1999/xhtml); @-moz-document domain("facebook.com") { .GenericStory { display: none !important; } #pagelet_intentional_stream div[data-ft*='sty":"46'] { display: block !important; } }

Below is an example of this would be entered into Stylish:

Screenshot of Stylish

Other Update Types

You could also substitute the number 46 above with one of the below to show only these types of updates by default:

Attribute Value Table
Update Type Number Value
Fan Page Added 161
Application 237
Friend Added 8
Group Added 21
Photo Added 65
Photo Album Added 247
Video Added 128

To Each His Own

Some people may love seeing everything their friends do on Facebook. I'm more interested in what they have to say and the rest just feels like noise. Feel free to take this code and make it your own.

Tags: facebook ( Add Tag )

Bookmark This Page:
  • Digg loading
  • Delicious loading
  • Re-Tweet loading
  • StumbleUpon loading
  • DZone loading
  • Snipplr
  • Script & Style

Replies:

  • Brian Llama
    Brian Llama
    #1

    Wed. February 10, 12:59:53 AM

    Wow, clever hack, but way beyond what your average Facebook user wants to go through :)

  • Brian Llama
    Brian Llama
    #2

    Wed. February 10, 1:05:05 AM

    Oh, hey, just stumbled on an easier solution.
    Click Friends in the left menu. A sub-menu appears that says Status Updates. There you go.

    BTW, I do hate the new design.

  • Christian Mann
    Christian Mann
    #3

    Wed. February 10, 5:01:51 PM

    Yeah, but that doesn't change the fact that this is a HoW (Hack of Win).

  • alban nuredini
    alban nuredini
    #4

    Thu. March 25, 9:05:55 AM

    banche


Reply:

B U I Link Font Color Edit Preview ?
Characters: 0 Textbox Size: [+] [-]
   

  • New Comment
    #5

    Sat. July 31, 1:12:08 PM

Font Size:

  • A
  • A
  • A
  • A

Search:

Places:

  • Blog
  • Message Board
  • Chat Room
  • Geek Speak
  • Open Videos
  • Reviews
  • Tag Cloud
 

Site Links

Site

  • About
  • Contact Me
  • Site Map
  • Site Search

Interact

  • Blog
  • Geek Speak
  • Message Board
  • Open Links
  • Open Videos
  • Photo Gallery
  • Polls
  • Reviews

Random Stuff

  • Hosting by FatCow
  • © Copyright 2005 - 2010
  • Modified: Friday, July 16, 2010
  • Load Time: 0.24 Seconds

Site Coded And Designed By Neal Grosskopf Using No Crappy CMS Or Themes