Skip to content

Instantly share code, notes, and snippets.

@Langerz82
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Langerz82/98c1b9d7a81fecb541e0 to your computer and use it in GitHub Desktop.
Save Langerz82/98c1b9d7a81fecb541e0 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Facebook - No Suggested Post or Suggested App.
// @description No suggested Post or App Boxes should show in the Home Page.
// The Users have right to read content without being forced to look at ads.
// Tested on FireFox 34.0
// Chrome 39.0.2171.65
// If it's broken send me an e-mail: jdoe090910@gmail.com.
// @namespace Langerz.Facebook
// @include https://www.facebook.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @version 1.1
// @grant none
// ==/UserScript==
this.$ = this.jQuery = jQuery.noConflict(true);
$(document).ready(function() { Remove_Suggestions(); });
$("#contentArea").bind("DOMSubtreeModified", function() { Remove_Suggestions(); });
function Remove_Suggestions() {
$(".userContentWrapper > div > span").filter(":contains('Suggested App'), :contains('Suggested Post')").parent().parent().parent().remove();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment