Well, your regex is missing a closing group parenthesis after 
|(mystore=\d+|. Does that fix it?

If not, perhaps you could explain what's going wrong, exactly.

(I haven't tried testing the resulting script, if you're wondering.)

TheOne wrote:
> // ==UserScript==
> // @name GaiaOnline Link Rewriter
> // @namespace www.nowhere.com/yet
> // @include http://www.gaiaonline.com/gaia/vend.php*
> // ==/UserScript==
> var a=document.getElementsByTagName('a');
> for(var i=0;i<a.length;i++)
> {
> a[i].href=a[i].href.replace(/^http:\/\/www\.gaiaonline\.com\/gaia\/
> vend\.php\?mode=buy&(vend_id=\d+)&type=buy&f=confirm&(mystore=\d+$/i,
> "http://www.gaiaonline.com/gaia/vend.php?mode=buy&$1&type=buy&f=go&;
> $2&pass=hardcodedpass");
>
> }
>
>
> Could someone help me to make it work?
>   


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to