I'm trying to hide specific people in the Facebook sidebar chat list.
My first attempt was to just try and replace the name of a user in the chat bar but a simple .replace
doesn't work since the chat bar loads separately, and long after the page itself has loaded.
Is there any way of running the Greasemonkey script after the chat has loaded?
I've heard some about the unsafeWindow
functionality, but I'm not sure if I can apply that here, and if so, how.
unsafeWindow.hidePerson = function() {
document.body.innerHTML = document.body.innerHTML.replace(/Firstname Lastname/g, '' );
}
unsafeWindow.hidePerson();