Skip to content

Instantly share code, notes, and snippets.

@Napolitain
Last active May 8, 2017
Embed
What would you like to do?
Facebook "sponsored" ads blocker
// ==UserScript==
// @name Facebook AdBlocker
// @namespace www.facebook.com
// @include www.facebook.com
// @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