Very new to Javascript but this seems to be a relatively easy task...
I want to modify a URL using a Javascript bookmarklet for Chrome, etc. Here's what I need to change it from to:
Original URL: http://www.example.com/article/url-slug-here
New URL: http://cms.example.com/article/url-slug-here
So, in short, all it needs to do is remove 'www' and add 'cms' at the start. And automatically reload the page when you click the button, if that's possible?
Any help would be greatly appreciated.
Thanks!