Skip to content

Instantly share code, notes, and snippets.

@alyatwa
Last active July 10, 2019 01:23
Show Gist options
  • Save alyatwa/e8af3cfb461c2000eb077c8c816ac943 to your computer and use it in GitHub Desktop.
Save alyatwa/e8af3cfb461c2000eb077c8c816ac943 to your computer and use it in GitHub Desktop.
remove add friend button on facebook

how to remove add friend button on facebook for avoiding sending request by mistake

chrome extension link https://chrome.google.com/webstore/detail/injector/bfdonckegflhbiamlmidciapolfccmmb?hl=en

CSS code

.FriendRequestAdd, .addButton, .FriendButton, ._42ft, ._3y89>._4jy0:first-child, ._51xa> ._4jy0 {
  display: none;
}

remove like button from specific facebook group

/*remove like comment*/
if(window.location.href === "https://www.facebook.com/groups/690279241102301/?ref=bookmarks"){
    addStyleString('._6qw6, ._666k{display: none;}');
}
function addStyleString(str) {
    var node = document.createElement('style');
    node.innerHTML = str;
    document.body.appendChild(node);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment