FB News Feed Plug Chrome Extension

Var, toggle, function, text, extension, quot, shown, feed, content, news, size, style, type, simple, sendresponse

FB News Feed Plug for Chrome Download

  • Chrome Extension Page
    Deleted from Chrome Web store
  • Total Number of Extension users:
    4 +
  • Reviewed by :
    3 Chrome Users
  • Author Name:
    offered by mauriciogior
FB News Feed Plug chrome extension is Toggle easily the FB News Feed on and off.

Toggle easily the FB News Feed on and off.

really simple extension that toggles your News Feed for better productivity.

It is so simple that the whole source code is shown below!

background: var shown = false; chrome.browserAction.onClicked.addListener(function (tab) { shown = !shown; var t = (shown) show : hide; chrome.browserAction.setIcon({path:t+-fbnf.png, tabId:tab.id}); chrome.tabs.sendMessage(tab.id, {text:t}, function(response) {}); }); chrome.extension.onMessage.addListener(function(message,sender,sendResponse){ var t = (shown) show : hide; if(message.text == getstuff) { sendResponse({type:t}); } chrome.browserAction.setIcon({path:t+-fbnf.png}); }); content_script: var toggle = function(type) { var style = document.createElement(style); style.type = text/css; if(type == hide) { style.innerHTML = .newsFeedComposer ._5pcr { display: none; } .newsFeedComposer ._5jmm:after { content: "Just useless content... trust me :)"; font-size: 12pt; text-align: center; width: 100%; display: block; padding: 50px 0; }; } else if(type == show) { style.innerHTML = .newsFeedComposer ._5pcr { display: block; } .newsFeedComposer ._5jmm:after { display: none }; } document.getElementsByTagName(head)[0].appendChild(style); } chrome.extension.sendMessage({text:"getStuff"},function(response){ toggle(response.type); }); chrome.extension.onMessage.addListener(function(message,sender,sendResponse){ toggle(message.text); sendResponse({type:"ok"}); });

FB News Feed Plug is deleted from https://chrome.google.com/webstore/. Previously it is on chrome store,its urls is https://chrome.google.com/webstore/detail/fb-news-feed-plug/nlglhgbniboeidbchlghhefocanmjbgb

FB News Feed Plug Related Chrome Extensions