Facebook unsponsored

Block Facebook news feed "sponsored" posts

Old: v1.16 Updated to catch Facebook's new hidden characters.
New: v1.17 Updated for DOM structure change.

  • --- /tmp/diffy20200712-20559-n7hlwi 2020-07-12 04:20:20.043119113 +0000
  • +++ /tmp/diffy20200712-20559-1lyt0v1 2020-07-12 04:20:20.043119113 +0000
  • @@ -1,7 +1,7 @@
  • // ==UserScript==
  • // @name Facebook unsponsored
  • // @namespace http://tampermonkey.net/
  • -// @version 1.16
  • +// @version 1.17
  • // @description Block Facebook news feed "sponsored" posts
  • // @author solskido
  • // @supportURL https://greasyfork.org/en/scripts/22210-facebook-unsponsored/feedback
  • @@ -29,7 +29,7 @@
  • var searchedNodes = [{
  • // Sponsored
  • 'selector': [
  • - 'div[id^=feed_subtitle] > span > div > div > a > div',
  • + 'div[id^=feed_subtitle] > span > div > a > div',
  • 'a.uiStreamSponsoredLink'
  • ],
  • 'preCompare': function(node) {
  • @@ -122,7 +122,7 @@
  • 'selector': [
  • '.fbUserPost div > div > span > span',
  • '.fbUserStory div > div > span > span',
  • - '.userContentWrapper div > div > div > div > span > span'
  • + '.userContentWrapper div > div > div > span > span'
  • ],
  • 'content': {
  • 'af': ['Voorgestelde Plasing'],
  • @@ -202,7 +202,7 @@
  • '.fbUserPost div > div > div:not(.userContent)',
  • '.fbUserStory div > div > div:not(.userContent)',
  • '.fbUserContent div > div > div:not(.userContent)',
  • - '.userContentWrapper div > div > div > div > span > span'
  • + '.userContentWrapper div > div > div > span > span'
  • ],
  • 'exclude': function(node) {
  • if(!node) {