-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfacebook_hide_like.user.js
27 lines (26 loc) · 1.35 KB
/
facebook_hide_like.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// ==UserScript==
// @name Simple Facebook
// @author khoaxial
// @description Hides all Like actions on Facebook
// @include https://www.facebook.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @version 0.11
// ==/UserScript==
document.addEventListener("DOMSubtreeModified", function() {
/* Removing the following bar break status posting, so settle for emptying */
$("._5pcp._5vsi").empty(); // Like, Comment, Share bar
$("._52gg._6mp.fsm.fwn.fcg").remove(); // Like, Comment sub-bar
$(".fbTimelineFeedbackHeader").remove(); // Like, Comment, Promote Share bar
$("._53d._53q").remove(); // Like, Comment overlay for photo thumbnails
/* Removing photo buttons breaks the layout on prev/next, so settle for hiding */
$(".fbPhotosPhotoButtons").hide(); // Share/Send/Like buttons for modal photo
$(".UFILikeIcon").remove(); // Like button
$(".likeCommentGroup").remove(); // Like/Comment photo buttons
// Remove Like links in comments
var select = $("span:contains('\u00B7') + .UFILikeLink");
select.prev().remove();
select.remove();
// Remove Like, Comment, Share on photo pages
$(".UIActionLinks > :not(#fbPhotoPageTimestamp)").remove();
$(".UIActionLinks").contents().filter(function(){ return this.nodeType === 3; }).remove();
}, false);