// ==UserScript== // @name LinkedIn Promoted Content Blocker // @namespace https://www.jabedmiah.com // @version 1.03 // @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 // @downloadURL https://update.greasyfork.icu/scripts/475168/LinkedIn%20Promoted%20Content%20Blocker.user.js // @updateURL https://update.greasyfork.icu/scripts/475168/LinkedIn%20Promoted%20Content%20Blocker.meta.js // ==/UserScript== (new MutationObserver(elementCheck)).observe(document, {childList: true, subtree: true}); function elementCheck(changes, observer) { const cards = document.getElementsByClassName("ember-view occludable-update"); Array.from(cards).forEach((card) => { const companyFound = card.querySelector('img[src*="company-logo_100_100"]') if (companyFound) { card.style.display = "none"; } }) }