Created
April 28, 2024 19:57
-
-
Save dmfunk/d97c488dba8c4e5ffaba3ef6395f7848 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 hide-linkedin-news | |
| // @namespace dtmf.ca | |
| // @version 2024-04-28 | |
| // @description no news == good news | |
| // @author dtmf | |
| // @match *://*.linkedin.com/* | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| const domObserver = new MutationObserver(() => { | |
| const news = document.querySelector("#feed-news-module"); | |
| if (news) { | |
| news.remove(); | |
| domObserver.disconnect(); | |
| } | |
| }); | |
| domObserver.observe(document.body, { childList: true, subtree: true }); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment