Created
November 6, 2020 17:16
-
-
Save robertbrook/5d7ce5bcbf8396bf159cd9fb75ecf403 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function()%7Bvar%20url%20%3D%20document.URL%20%3B%0A%0Aconst%20myUrl%20%3D%20new%20URL(url)%3B%0A%0A%20if%20(window.location.origin%20%3D%3D%20%22https%3A%2F%2Flegislation.glitch.me%22)%0A%0A%7Bwindow.location.href%20%3D%20%22https%3A%2F%2Fwww.legislation.gov.uk%22%20%2B%20myUrl.pathname%7D%0A%0Aelse%20if%20(window.location.origin%20%3D%3D%20%22https%3A%2F%2Fwww.legislation.gov.uk%22)%0A%0A%7Bwindow.location.href%20%3D%20%22https%3A%2F%2Flegislation.glitch.me%22%20%2B%20myUrl.pathname%7D%0A%0Aelse%20%7Balert(%22oops%22)%7D%3B%7D)()%3B |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment