On 2015-01-30 14:42, 'Ben Stover' via greasemonkey-users wrote:
I tried to apply the following two variants of GM script code.
But none of them deletes the wrapping <strong>.
Your first variant removes the element for me, the second is not valid JavaScript code.

Rather than trying to find out what's happening while running the code in Greasemonkey, I suggest to open a Firebug console and run your scripts there ... you will easily see what's wrong, e.g. a syntax error for

var content = document.getElementById("pf-src"); newContent=content.replace(<strong>deutsche-wirtschafts-nachrichten.de</strong>/g,"https://deutsche-wirtschafts- nachrichten.de");

--
Klaus Johannes Rusch
[email protected]
http://klausrusch.atmedia.net/

--
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to