Greasy Fork

Shined up real nice.

Facebook unsponsored

Block Facebook news feed "sponsored" posts

These are versions of this script where the code was updated. Show all versions.

  • v1.15 - Added a new type of phrasing (`Suggested Page`) that is caught by the same selector as `A Video You May Like` and `Popular Live Video`. Added language for `en`, and `vi` for this new phrase. Added a new selector for `Sponsored` that targets the new link class itself.
  • v1.14 - Updated sponsored selector.
  • v1.13 - Support for multiple story selectors. Began blocking "Suggestions From Related Pages" (unsure of the exact English wording), as well as the ability to find child stories ("div[data-ownerid]"). Added many new language phrases for ""Page Stories You May Like".
  • v1.12.3 - Added 'zh-Hans' and 'zh-Hant' language phrases for "Page Stories You May Like".
  • v1.12.2 - Added 'vi' language phrase for "Page Stories You May Like". Cleaned up some accidentally submitted development code.
  • v1.12.1 - Added 'de', 'it', and 'ja' language phrases for "Page Stories You May Like".
  • v1.12 - Added `fbUserStory` to the selectors. Typo in the readme.
  • v1.11.3 - Added 'it' language phrase for "Popular Across Facebook"
  • v1.11.2 - Added both .fbUserPost and .fbUserContent selectors
  • v1.11.1 - Added 'cb', 'eo', 'et', 'eu', 'fa', 'fo', 'fy'. 'ga', 'gl', 'gn', 'ps', 'tl' language phrases. Added more language phrases for "Popular Across Facebook".
  • v1.11 - Added initial support for "Popular Across Facebook" in en and vi
  • v1.10.4 - Added 'fi' language phrases. Added a possible alternative for 'af' "Popular Live Video" translation.
  • v1.10.3 - Fixed incorrect selectors for "Suggest Post"
  • v1.10.2 - Updated for Facebook's August 8th DOM structure change.
  • v1.10.1 - Updated the selector for "Sponsored" due to Facebook changes.
  • v1.10 - Added selectors for "A Video You Might Like". Added support for language codes am, mk, mn, th, tz, uk, ur. Added a new deep selector for "Suggested Post" that I encountered, but I'm not sure if it is common.
  • v1.9 - Introduced support for multiple node selectors per sponsored text type. Added both .userContentWrapper and .fbUserContent classes. Added support for Hungarian 'hu'.
  • v1.8.7 - Added 'bg', 'nl', and 'en' (Pirate) language phrases.
  • v1.8.6 - Added 'vi' language phrases.
  • v1.8.5 - Typo
  • v1.8.4 - Added wording for Popular Live Video in Español
  • v1.8.3 - Typo
  • v1.8.2 - Added support for Danish/Dansk (da)
  • v1.8.1 - Reverted the switch from .userContentWrapper to .fbUserContent (it's back to .userContentWrapper)
  • v1.8 - Swapped out .userContentWrapper for .fbUserContent
  • v1.7.5 - Corrected a typo
  • v1.7.4 - Added 'br', 'bs', 'ca', 'co', 'cs', 'cx', 'cy', 'jv', 'ms', 'sv' language phrases.
  • v1.7.3 - Added 'tr' language phrases.
  • v1.7.2 - Separated "Popular Live Video" selectors into its own section, as those stories are formatted differently. Introduced an "exclude" function aside the selector text to facilitate JS testing of a node supplementing the CSS.
  • v1.7.1 - Additional languages. More targeted searched node selectors to reduce false positives.
  • v1.7 - i18n
  • v1.6.2 - Added an additional suggested phrase "sponsored". Improved compatibility checks / failure bailing. Thanks Mathieu
  • v1.6.1 - Removed development-only log statements.
  • v1.6 - This update should also target "Popular Live Video"
  • v1.5.5 - Reverted the change made in 1.5.4
  • v1.5.4 - No longer target /about/ads URL.
  • v1.5.3 - Added additional sponsored URLs.
  • v1.5.2 - Allow for unprefixed URLs in the sponsored link.
  • v1.5.1 - Modified the sponsored selector to support randomized class names.
  • v1.5 - Abandon ES6 in order to support Safari. Renamed the resolved MutationObserver to avoid redefinition errors.
  • v1.4.2 - Added a fallback for when the browser doesn't support Array.prototype.forEach. Added `@grant none` as per greasemonkey docs.
  • v1.4.1 - Removed unused development-only line.
  • v1.4 - Allow for Facebook SPA navigation via the upper left icon. (Watch for modifications to the entire page, and re-locate the stream every process iteration.)
  • v1.3 - Used a different way of running on page-load by taking advantage of TamperMonkey's "run-at" setting.
  • v1.2 - Wait for the document to load before the initial process.
  • v1.1 - Force the processing of the news feed to occur on page load as well as when new stories are inserted into the news feed. This fixes an issue where a sponsored post might appear within the first few posts in your feed and go unnoticed until you scroll further.
  • v1.0