function removeInterests()
{
var user_fields = document.getElementsByClassName("user_fields");
for (var j = user_fields.length - 1; j >= 0; --j)
{
var fieldList = user_fields[j].getElementsByTagName("span");
for (var i = 0; i < fieldList.length; ++i)
{
var txt = fieldList[i].textContent;
if ("Interests:" == txt)
{
fieldList[i].parentNode.removeChild(fieldList[i+1]);
fieldList[i].parentNode.removeChild(fieldList[i]);
break;
}
}
}
}
removeInterests();
Page 1 of 1
Anti-matmat script I was bored at work
#1
Posted 2011-June-21, 09:53
For people who use Greasemonkey (an add-on to your browser that lets you write custom scripts to parse web pages. http://www.greasespot.net/), I'm attaching a script that filters out the "Interests" field in people's profiles here. I'm not exactly a web expert and I did this in 10 minutes so there's no option to filter by poster name or to turn it off (other than shutting the script down). But still, if it helps someone else, why not.
Page 1 of 1

Help
