Remove text in page

45 views
Skip to first unread message

Kasper

unread,
Jan 17, 2013, 6:35:09 AM1/17/13
to greasemon...@googlegroups.com
Hi. I want to be able to remove some text on a page.

The page starts with the following information:
---
<!-- generel - start --> 
<%@ language="java" import="java.util.ArrayList, java.io.*" %> 
<html>
---
How can i remove the <% text? The text is before the html tag.. :-/

.

unread,
Jan 17, 2013, 6:44:09 AM1/17/13
to Greasemonkey Users
> --

Are you sure this is some text somebody will receive in the browser?
this looks like serverside tags that will be interpreted, but not
generate any output.

In any case, you probably have all the nodes (even the text ones) here
document.childNodes, is a array you can walk to find what you want to
delete document.childNodes[index] = null;


--
ℱin del ℳensaje.

Kasper

unread,
Jan 17, 2013, 7:13:23 AM1/17/13
to greasemon...@googlegroups.com
Well. I don't have access serverside and I am only a user of the system, but i see this in my browser.

When I look at childNodes, the first item in the array is the 'general start' tag. The next on is '<html>', so they will not show as a childNode. That is my main problem.
Reply all
Reply to author
Forward
0 new messages