> ## Content Index
> Fetch the complete content index at: https://www.autodidacts.io/llms.txt
> Use this file to discover other available public pages before exploring further.

# Old site, new site bookmarklets
- URL: https://www.autodidacts.io/old-site-new-site-bookmarklets/
- Published: 2026-03-07T04:25:52.000Z
- Updated: 2026-03-07T04:25:52.000Z
- Description: A small utility that’s surprisingly useful during website migrations
- Author: Curiositry
- Tags: 100DaysToOffload, JavaScript, Web Development, Bookmarklet

During the review phase of a website migration that involved decades of content and a complex URL structure, which meant going through the site page-by-page checking for content and formatting that was missed or mangled in the migration, I made two simple bookmarklets: **Go to this page on old {{client\_name}} site** and **Go to this page on new {{client\_name}} site**.

They didn’t replace side-by-side comparison and automated diffs, but I found these bookmarklets surprisingly useful for quickly tabbing to the same page on the other version of the site any time I noticed something anomalous.

The code was ridiculously simple:

```javascript
javascript:void function(){javascript:(function(){window.location=window.location.toString().replace(/www.oldsite.com/,"www.newsite.com")})()}();

```

Here is a hand-coded interactive widget, if you’d like to make your own *old site, new site* bookmarklets for a migration:

[Go to page on old site](javascript:void%20function%28%29{javascript:void%20function%28%29{javascript:%28function%28%29{window.location=window.location.toString%28%29.replace%28/staging.example.com/,%22www.example.com%22%29}%29%28%29}%28%29}%28%29;) [Go to page on new site](javascript:void%20function%28%29{javascript:void%20function%28%29{javascript:%28function%28%29{window.location=window.location.toString%28%29.replace%28/www.example.com/,%22staging.example.com%22%29}%29%28%29}%28%29}%28%29;) [Toggle to page on other site](javascript:void%20function%28%29{javascript:void%20function%28%29{javascript:%28function%28%29{window.location=window.location.toString%28%29.replace%28/www.example.com/,%22staging.example.com%22%29}%29%28%29}%28%29}%28%29;) 

  
Put the URLs of the old site, and the new/staging site, into the two inputs above. (Skip the protocol, but include the subdomain if there is one.) Then, drag the gaudy bookmarklet buttons to your bookmarks bar. 

****Note:** this post is part of [#100DaysToOffload](https://www.autodidacts.io/100daystooffload/), a challenge to publish 100 posts in 365 days. These posts are generally shorter and less polished than our normal posts; expect typos and unfiltered thoughts! [View more posts in this series.](https://www.autodidacts.io/tag/100daystooffload/)