-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathkill.js
23 lines (19 loc) · 832 Bytes
/
kill.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function blockAndDisplay() {
var feed = $('[id^=topnews_main_stream], [id^=mostrecent_main_stream], [id^=pagelet_home_stream]');
feed.children().remove();
$('.ticker_stream').remove();
$('.ego_column').remove();
$('#pagelet_games_rhc').remove();
$('#pagelet_trending_tags_and_topics').remove();
$('#pagelet_canvas_nav_content').remove();
$('#stories_pagelet_below_composer').remove();
// Handles the Apr 2022 Facebook redesign
if (window.location.href.endsWith('facebook.com') || window.location.href.endsWith('facebook.com/')) {
$('[role=feed]').remove();
}
$('[aria-label=Stories]').remove();
$('[data-pagelet=Stories]').remove();
// Handles the Sep 2022 Facebook redesign
$('#ssrb_feed_start').parent().remove();
}
window.setInterval(blockAndDisplay, 100);