Skip to content

Instantly share code, notes, and snippets.

@dmfunk
Created April 28, 2024 19:57
Show Gist options
  • Select an option

  • Save dmfunk/d97c488dba8c4e5ffaba3ef6395f7848 to your computer and use it in GitHub Desktop.

Select an option

Save dmfunk/d97c488dba8c4e5ffaba3ef6395f7848 to your computer and use it in GitHub Desktop.
// ==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