Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7970043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:20:08+00:00 2026-06-04T07:20:08+00:00

// ==UserScript== // @name Supprimer les suggestions d’amis sur facebook // @namespace facebook //

  • 0
// ==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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T07:20:09+00:00Added an answer on June 4, 2026 at 7:20 am

    Use waitForKeyElements(). Like so:

    // ==UserScript==
    // @name        Supprimer les suggestions d'amis sur facebook
    // @namespace   facebook
    // @include     http://www.facebook.com/*
    // @include     https://www.facebook.com/*
    // @require     http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
    // @require     https://gist.github.com/raw/2625891/waitForKeyElements.js
    // @version     1
    // ==/UserScript==
    
    function removeEgoPane (jNode) {
        jNode.remove ();
        unsafeWindow.console.log ("Removed");
    }
    
    waitForKeyElements ("#pagelet_ego_pane_w, #pagelet_ego_pane", removeEgoPane);
    

    Important:

    1. Only some pages have the #pagelet_ego_pane_w div, and the script works perfectly on those. But, most pages put the ego bar in a #pagelet_ego_pane div. Hence the changed selector in the code above.

      If the ego bar returns, check that it’s still in one of those 2 nodes.

    2. 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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code // // ==UserScript== // @name test // @description test //
Here is my script code: // ==UserScript== // @name test // @description test //
I have written a Userscript for Facebook and it groups similar notifications together. Now,
I have the following simple Greasemonkey script: // ==UserScript== // @name MetaCPAN Everywhere //
I wrote a userscript to highlight the current row in GMail (indicated by the
So currently I am trying to add a feature to a userscript I have
Alright, I've been working on a userscript that redirects when a specific page is
I'm trying to create a userstyle (installed in Google Chrome as a userscript). It's
I have written a userscript , and run it in Greasemonkey 0.9.13. If I
I've written a userscript for Gmail : Pimp.my.Gmail & i'd like it to be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.