Remove Facebook Ads

By sizzlemctwizzle Last update Nov 6, 2009 — Installed 15,926 times. Daily Installs: 55, 42, 49, 41, 41, 43, 42, 43, 38, 38, 29, 42, 41, 52, 200, 329, 368, 350, 202, 154, 111, 108, 122, 85, 93, 97, 102, 68, 51, 70, 63, 67

There are 20 previous versions of this script.

// ==UserScript==
// @name          Remove Facebook Ads
// @namespace     sizzlemctwizzle
// @description   Uses a small amount of CSS to remove advertisements
// @require       http://sizzlemctwizzle.com/updater.php?id=46560
// @version       1.5.3
// @unwrap
// @include       http://*.facebook.com/*
// ==/UserScript==
(function() {
var head = document.getElementsByTagName('head')[0], 
    style = document.createElement('style'), 
    css = '#right_column { width: 77% !important; } ' +
          '.ad_capsule, #sidebar_ads, .adcolumn, .emu_sponsor, ' +
          'div[id^="emu_"], .social_ad, .sponsor, .footer_ad, ' +
          '#home_sponsor, .house_sponsor, #home_sponsor_nile, ' +
          '.PYMK_Reqs_Sidebar, .LSplitPage_Right, .LMuffinView, ' +
          '.FN_pymk { display: none !important; } #wallpage { ' +
          'width: 700px !important; } .LSplitView_ContentWithNoLeftColumn ' +
          '{ width: 100% !important }';
if (!head || self.location != top.location) {return}
style.type = 'text/css';
try {style.innerHTML = css}
catch(x) {style.innerText = css}
head.appendChild(style);
})();