Skip to content

Instantly share code, notes, and snippets.

@ScalaWilliam
Last active August 29, 2015 13:56
Show Gist options
  • Save ScalaWilliam/9177100 to your computer and use it in GitHub Desktop.
Save ScalaWilliam/9177100 to your computer and use it in GitHub Desktop.
Would be nice if Premium LinkedIn did not include too much irrelevant content. I only care about relevant content.
// ==UserScript==
// @name NoPulses
// @namespace https://www.linkedin.com/
// @include https://www.linkedin.com/*
// @version 1
// @grant none
// ==/UserScript==
(function() {
function removeNonsense() {
if ( !document.head || document.querySelector("#remove-useless-stuff") ) {
return;
}
var style = document.createElement("style");
style.setAttribute("id", "remove-useless-stuff");
var text = "#today-news-wrapper, #cspad, #csp-ad, #jobsForYou, .linkedin-recommend-job, #ad-slot-4 { display: none !important; height:0px !important; opacity:0 !important; visibility:hidden !important; }";
style.appendChild(document.createTextNode(text));
document.head.appendChild(style);
}
removeNonsense();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment