LinkedIn Promoted Content Blocker

Blocks promoted posts from the LinkedIn feed.

Fra 13.09.2023. Se den seneste versjonen.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         LinkedIn Promoted Content Blocker
// @namespace    https://www.jabedmiah.com
// @version      1.0
// @description  Blocks promoted posts from the LinkedIn feed.
// @author       Jabed Miah
// @match        *.linkedin.com/feed/
// @icon         https://www.google.com/s2/favicons?domain=linkedin.com
// @supportURL   https://github.com/miahj1/linkedin-promoted-content-blocker/issues
// @license      MIT
// ==/UserScript==

(new MutationObserver(elementCheck)).observe(document, {childList: true, subtree: true});

function elementCheck(changes, observer) {
    const cards = document.getElementsByClassName("ember-view  occludable-update");

    for (card of cards) {
        const companyFound = card.querySelector('img[src*="company-logo_100_100"]')
        if (companyFound) {
            card.style.display = "none";
        }
    }
}