Hide Yo' Feed

Hide Facebook news feed like you never care seeing them! Facebook is still usable, news feed will be hidden, thus increasing productivity and never procrastinate anymore!

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name          Hide Yo' Feed
// @namespace     https://gist.github.com/aimanbaharum/b8262ebcafdcdedd4461fdb4105c6b10
// @include       https://*.facebook.com/
// @version       0.3
// @description   Hide Facebook news feed like you never care seeing them! Facebook is still usable, news feed will be hidden, thus increasing productivity and never procrastinate anymore!
// @author        aimanb
// @grant         none
// ==/UserScript==

// Change to true to turn on NSFW mode
var nsfw = true;
var img_nsfw = '<img src=\'http://i.imgur.com/KOzj0qI.png\'>';
var img_sfw = '<img src=\'http://i.imgur.com/CjHS8Ec.png\'>';
document.getElementById('stream_pagelet').innerHTML = (nsfw) ? img_nsfw : img_sfw;