Last active
March 19, 2016 23:48
-
-
Save mzywiol/bb39ada26f46c2791f75 to your computer and use it in GitHub Desktop.
GreaseMonkey script for filtering out guests from LinkedIn's People You May Know page
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 Remove guests from LinkedIn's People You May Know list | |
// @namespace xz.greasemonkey | |
// @description Don't you just hate spamming people that are NOT on LinkedIn invitations when you accidentally click "Add to Network" instead of "Connect"? | |
// @include https://www.linkedin.com/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
removeGuests = function() { | |
$('li[id^="card"][class~="guest"]').remove(); | |
}; | |
(function($) { | |
var origAppend = $.fn.append; | |
$.fn.append = function () { | |
return origAppend.apply(this, arguments).trigger("append"); | |
}; | |
})(jQuery); | |
$("div[id='body']").bind("append", function() | |
{ | |
removeGuests(); | |
}); | |
removeGuests(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment