UpYoursFB

Remove 'Suggested Post, Suggested Offer'

Stan na 17-06-2017. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name        UpYoursFB
// @namespace   upyoursfb
// @description Remove 'Suggested Post, Suggested Offer'
// @include     *://*.facebook.com/*
// @require     https://code.jquery.com/jquery-3.2.1.min.js
// @version     1.6
// @grant       none
// ==/UserScript==

$(document).ready(function(){
    var upyours = ['Suggested Offer', 'Suggested Post', 'Featured For You', 'A Video You May Like'];
    $(document).on('scroll', function(){
        $('span').each(function(){
            if($.inArray($(this).text(), upyours) !== -1){
                alert('Testing on mobile browser as of now');
                $(this).parents().eq(4).hide();
                console.log('Got another one | Up yours fb');
            }
        });
    });
});