Am 04.02.2012 18:02, schrieb Anonymous Usercript writer:
On www.youtube.com I am trying to replace html.
"Replace" is a function to apply regular expressions on a text. To
modify the innerHTML, you can simply assign some new text to it like this:
element = document.getElementyById("ElementId");
element.innerHTML = "<span>New HTML</span>";
Sorry if that does not quite fit your question but it's impossible to
read through the mail with all that HTML in it.
For future posts: please ask the question on a more abstract level. You
should name the page URL, you can name the elements' IDs, and you can
also post some lines of script code you've written. But please not post
the whole website or userscript if it's just one line that doesn't work.
Chris
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/greasemonkey-users?hl=en.