Last active
August 29, 2015 13:56
-
-
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.
This file contains 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 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