spenibus.net
2014-10-11 03:06:24 GMT

javascript pushState event [firefox/greasemonkey]

A quick and dirty implementation of a pushstate event for greasemonkey. ```` unsafeWindow.history.pushState = exportFunction(function() { dispatchEvent(new Event('pushState')); return history.pushState.apply(history, arguments); }, unsafeWindow); ```` I feel obligated to point out that I loathe `history.pushState()`.