// ==UserScript==
// @name Supprimer les suggestions d'amis sur facebook
// @namespace facebook
// @description Supprimer les suggestions d'amis sur facebook
// @include *.facebook.com
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
// @version 1
// ==/UserScript==
// ==/UserScript==
jQuery(function(){ $("#pagelet_ego_pane_w").remove() });
jQuery(function(){ $(".ego_column").remove() });
jQuery(function(){ $(".ego_unit_container").remove() });
//alert ("supprimé ?");
None of these lines worked. I am using this in greasemonkey.
Please see screenshot : https://i.stack.imgur.com/AJd8u.jpg
Use
waitForKeyElements(). Like so:Important:
Only some pages have the
#pagelet_ego_pane_wdiv, and the script works perfectly on those. But, most pages put the ego bar in a#pagelet_ego_panediv. Hence the changed selector in the code above.If the ego bar returns, check that it’s still in one of those 2 nodes.
Do not
.hide()the div; that just lets Facebook unhide it and also run slow JS against it. Better to remove those nodes if they are unwanted.