Page 1 of 1

Modify JS-Link => Normal Link?

Posted: Wed Apr 08, 2009 8:32 pm
by Mars
Is it possible to modify the JavaScript-link to normal-link conversion for certain pages?

For example I've a forum which has a link

javascript:who\(([0-9])\)

And I want that it gets replaced by

who.php?id=$1

Re: Modify JS-Link => Normal Link?

Posted: Wed Apr 08, 2009 8:55 pm
by Giorgio Maone
NoScript attempts the most obvious conversions by its own (i.e. where an URL can be inferred).
In your case, your best bet is writing a GreaseMonkey script.

Re: Modify JS-Link => Normal Link?

Posted: Wed Apr 08, 2009 9:14 pm
by Mars
Okay thanks. Is there a chance that something like that will be implemented in a future release? Installing GreaseMonkey just for that (I tried it several times but only found 1-2 cases where I could use it) would be little bit exaggerated ;).

PS: Thanks too for this great addon.

Re: Modify JS-Link => Normal Link?

Posted: Wed Apr 08, 2009 9:19 pm
by Giorgio Maone
Mars wrote: Is there a chance that something like that will be implemented in a future release?
Nope, it's too much specific to be checked by NoScript everywhere.
Mars wrote: Installing GreaseMonkey just for that (I tried it several times but only found 1-2 cases where I could use it) would be little bit exaggerated ;).
A nice thing about GreaseMonkey is that you specify the pages where a certain script must run, and the other ones get ignored.
Mars wrote:PS: Thanks too for this great addon.
My pleasure.