This is to remove the comments section from certain sites that contain
a lot of offensive spam and bypass my profanity filters because they
are loaded via javascript.
Example of content loaded via javascript:
<script language="javascript">
<!--
function getcommentinfo(userList,conList,timeList)
{
if (userList.length<=0 || conList.length<=0)
return ;
var str="";
for (i=0;i<userList.length;i++)
{
str += "<TABLE cellSpacing=0 cellPadding=0 border=0
class=comm_js><tr><td class=comm_js_title> Name: "+userList[i]+"
Time:"+timeList[i]
+"</td></tr><tr><td class=comm_js_content><div> "+conList[i]+"</
div><br></td></tr></table>";
}
document.getElementById('commentinfoDiv').innerHTML = str;
}
document.getElementById('url').value = location.href;
//-->
</script>
As for html content added by JavaScript, that should be possible if the
script is executed on page load
Just remove the offending elements as you would any other. The html code
for them would not be visible in view source because they are not in the
original document (only the script to add them is), but if you select
that part of the page and right-click > view selection source, you can
view the rendered html which will include those elements.