Last active
August 29, 2015 14:10
-
-
Save Langerz82/98c1b9d7a81fecb541e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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