-1

I'm trying to create a bookmarklet which will change the URL of the current page as follows:

Orginal URL:

http://website.com/games/game-title/lobby/lobbyID/

Edited URL:

http://website.com/external/game-chooser/lobbyID/

In the original URL, "games" and "lobby" will always be exactly "games" and "lobby" but "game-title" and "lobbyID" will vary.

Thanks.

ash123
  • 3
  • 2

1 Answers1

0
javascript:location.href='http://website.com/external/game-chooser/'+location.href.split('lobby/')[1]
user40521
  • 1,997
  • 20
  • 8