Skip to content

No friend suggestions on Facebook by bruno

Screenshot of No friend suggestions on Facebook

Details

Authorbruno

LicenseNo License

Categoryfacebook

Created

Updated

Size2.7 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

I hate seeing the "you might know these people" messages on Facebook. This is a possible fix.
Please ping me if classes are updated.

Notes

Supported languages: English, Italian, Spanish, German (and more untested).
Firefox users: if you want the whole box to disappear, this feature is (as of 24/05/2023) behind the layout.css.has-selector.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config. Info: https://developer.mozilla.org/en-US/docs/Web/CSS/:has

Source code

/* ==UserStyle==
@name         No friend suggestions on Facebook
@version      20230525.06.17
@namespace    userstyles.world/user/bruno
@description  I hate seeing the "you might know these people" messages on Facebook. This is a possible fix. 
@author       bruno
@license      No License
==/UserStyle== */

@-moz-document domain("m.facebook.com"), domain("facebook.com") {
[data-sigil="story-div story-popup-metadata "] {
    border: 2px solid red !important;
    display: none;
}

.x1lliihq > div:has(a[href="/friends/"]) {
    border: 2px solid red !important;
    display: none;
}


div.m[data-tti-phase="-1"][data-mcomponent="MContainer"][data-type="container"].displayed > div.m[data-tti-phase="-1"][data-mcomponent="MContainer"][data-type="container"] > div.m[data-tti-phase="-1"][data-mcomponent="MContainer"][data-type="container"].bg-s3 > div.m[data-mcomponent="TextArea"][data-type="text"] {
  border: 2px solid violet !important;
    display: none
}


div.m[data-tti-phase="-1"][data-mcomponent="MContainer"][data-type="container"].bg-s3 > div.m[aria-label="Mostra tutti"][data-tti-phase="-1"][data-mcomponent="MContainer"][data-type="container"] {
  border: 2px solid red !important;
    display: none
}


/* !!!!!! following rule has the side effect of hiding parts of ads (only on mobile), only uncomment if it stops working */
body div div.m.bg-s20 div.m div.m.displayed div.m div.m.bg-s3 div.m.bg-s3 div.m.hscroller.no-hscroller{
    border: 2px solid green !important;
    display: none !important;
    
}

/* weird, I know*/
div[data-actual-height="439"],
div[data-actual-height="439"]>*{
    border: 2px solid greenyellow;
    display: none !important;
}

}

@-moz-document domain("facebook.com") {
[aria-labelledby="jsc_c_hx"],
[aria-label="Persone che potresti conoscere"],
[aria-label="People you may know"],
[aria-label="Personen, die du kennen könntest"],
[aria-label="Personas que quizá conozcas"],
[aria-label="Personnes que vous pourriez connaître"],
[aria-label="Pessoas que você pode conhecer"],
[aria-label="おすすめの人"],
[aria-label="おすすめの友達"],
[aria-label="おすすめのつながり"],
[aria-label="Pessoas que você talvez conheça"],
[aria-label="あなたにとっておすすめの人"],
[aria-label="人脈の拡大に役立つかもしれない人"],
[aria-label="人脈の拡大に役立つかもしれない友達"],
[aria-label="คนที่คุณอาจจะรู้จัก"],
[aria-label="可能认识的人"],
[aria-label="可能认识的朋友"],
[aria-label="可能认识的联系人"],
[aria-label="Mensen die je mogelijk kent"],
[aria-label="Personen die je misschien kent"]{
    border: 2px solid red !important;
    display: none;
}

}

Reviews

No reviews yet.