Modify JS-Link => Normal Link?

Ask for help about NoScript, no registration needed to post
Mars

Modify JS-Link => Normal Link?

Post by Mars » Wed Apr 08, 2009 8:32 pm

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
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8

User avatar
Giorgio Maone
Site Admin
Posts: 8700
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Modify JS-Link => Normal Link?

Post by Giorgio Maone » Wed Apr 08, 2009 8:55 pm

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.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 (.NET CLR 3.5.30729)

Mars

Re: Modify JS-Link => Normal Link?

Post by Mars » Wed Apr 08, 2009 9:14 pm

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.
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8

User avatar
Giorgio Maone
Site Admin
Posts: 8700
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Modify JS-Link => Normal Link?

Post by Giorgio Maone » Wed Apr 08, 2009 9:19 pm

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.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 (.NET CLR 3.5.30729)

Post Reply