On Wed, Nov 11, 2009 at 10:06 AM, Lawrence <[email protected]> wrote: > > Hi. > > With greasemonkey, how can I change the URL on-the-fly? For example, > if the user access the URL http://website.com, I want to change it to > http://www.website.com/main.php?id=1
var url = window.location.href; url += "main.php?id=1"; window.location.replace(url); or something like that. pw --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
