Here we extend and mutate the native window.history object so that multiple scripts can add url change handlers without interfering each other and using the same single listener.
window.history
A de-register function to remove the handler
SO answer
Here we extend and mutate the native
window.historyobject so that multiple scripts can add url change handlers without interfering each other and using the same single listener.