rendered paste body<html>
<head>
<script type="text/javascript">
/* this is the list of userids to ignore */
var ignore_list = [849, 850];
function div_matches( div , profileid ) {
var a = div.getElementsByTagName("A");
var i = 0;
var m = "profile.php?id="+profileid;
for ( i = 0 ; i < a.length ; i++ ) {
if (a[i].href.indexOf(m) > -1) {
return true;
}
}
return false;
}
function ignore() {
var divs = document.getElementsByTagName("DIV");
var d;
var i = 0, j = 0;
for (i = 0 ; i < divs.length ; i++ ) {
if (divs[i].className.match(/blockpost/)) {
for (j = 0 ; j < ignore_list.length ; j++) {
if (div_matches(divs[i],ignore_list[j])) {
divs[i].style.visibility = "hidden";
}
}
}
}
}
run();
</script>
</head>
<body>
<div class="blockpost">
<div class="lol">
<div class="lol2">
<a href="profile.php?id=849"> LOL </a>
</div>
</div>
</div>
<div class="blockpost">
<div class="lol">
<div class="lol2">
<a href="profile.php?id=850"> LOL2 </a>
</div>
</div>
</div>
<div class="blockpost">
<div class="lol">
<div class="lol2">
<a href="profile.php?id=851"> LOL </a>
</div>
</div>
</div>
<div class="blockpost">
<div class="lol">
<div class="lol2">
<a href="profile.php?id=849"> LOL </a>
</div>
</div>
</div>
<div class="blockpost">
<div class="lol">
<div class="lol2">
<a href="profile.php?id=850"> LOL2 </a>
</div>
</div>
</div>
<div class="blockpost">
<div class="lol">
<div class="lol2">
<a href="profile.php?id=851"> LOL </a>
</div>
</div>
</div>
<input type="button" onclick="ignore()" value="How many input elements?" />
</body>
</html>