sting8k / FB WorkingMode

// ==UserScript==
// @name        FB WorkingMode
// @namespace   FB WorkingMode
// @require     http://code.jquery.com/jquery-1.12.0.min.js
// @include     https://*.facebook.com/*
// @version     1.0
// @grant       none
// ==/UserScript==
var except = ['Some','keyword','here'];

var checkLayout = setInterval(function() {
   if ($('#pagelet_composer').length && $('#leftCol').length && $('#rightCol').length) {
      $('#pagelet_composer').fadeOut(1000, function() {
          $('#pagelet_composer').html('');
      });
      $('#leftCol').fadeOut(1000, function() {
        $('#leftCol').html('');
      });
      $('#rightCol').fadeOut(1000, function() {
        $('#rightCol').html('');
      });
      clearInterval(checkLayout);   
   }

}, 1000); // Clear layout 


var auto_refresh = setInterval(
function(){
  $(document).ready(function(){
       var streamglobal = $("div[id^='feed_stream_']").find("div[id^='hyperfeed_story_id_']");
       streamglobal.each(function(){
         var flag = 1;
         for(item in except){
            var rs = $(this).html().indexOf(except[item]);
            if(rs > -1){
              flag = 0;
              break;
            }
         }
         if(flag == 1){
           $(this).html('');
         }
       }); 
      });
},1500);