Facebook AdBlocker

Die Werbung wird nicht nicht geladen, sondern lediglich ausgeblendet in dem nachträglich - also erst wenn die Seite komplett geladen ist - das DOM manipuliert wird. Folgende Werbung wind ausgeblendet:

// ==UserScript==
// @name           Facebook Ad Remover
// @description    Removes annoying Facebook ads, and expands the newsfeed!
// @author         William Lewis
// @include        http://*.facebook.*
// @include        https://*.facebook.*
// @version        1.0
// ==/UserScript==

//Parent Element To Ads
grandparent = document.getElementById('globalContainer'); 
var removeAdz = function(){
//Ads
if ( T = document.getElementById('pagelet_ego_pane_w') ) {
  T.style.visibility = 'hidden'; 
	document.getElementById('pagelet_reminders').style.visibility = 'hidden'; 
	document.getElementById('pagelet_rhc_footer').style.visibility = 'hidden'; 
 
	document.getElementById('rightCol').style.width = '0px'; 
	document.getElementById('contentArea').style.width = '90%';
}
if ( T = document.getElementById('friend_list_sidecol') ) { T.style.visibility = 'hidden'; }
if ( T = document.getElementById('ego_section') ) { T.style.visibility = 'hidden'; }
if ( T = document.getElementById('ego_column') ) { T.style.visibility = 'hidden'; }
if ( T = document.getElementById('pagelet_ego_pane') ) { T.style.visibility = 'hidden'; }
if ( T = document.getElementById('pagelet_side_ads') ) { T.style.visibility = 'hidden'; }
}
//Below function happens whenever the contents of 
//grandparent change
grandparent.addEventListener("DOMSubtreeModified", removeAdz, true);
//fires off the function to start with
removeAdz();