Skip to content

Instantly share code, notes, and snippets.

@mzywiol
Last active March 19, 2016 23:48
Show Gist options
  • Save mzywiol/bb39ada26f46c2791f75 to your computer and use it in GitHub Desktop.
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
// ==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