Skip to content

Instantly share code, notes, and snippets.

Last active May 8, 2017 12:03
What would you like to do?
Facebook "sponsored" ads blocker
// ==UserScript==
// @name Facebook AdBlocker
// @namespace
// @include
// @version 1
// @grant none
// ==/UserScript==
function _deleteAds() {
document.querySelector('uiStreamSponsoredLink .userContentWrapper._5pcr').remove();
document.addEventListener('click', _deleteAds);
document.addEventListener('wheel', _deleteAds);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment