Library: Additional <window> History-Stack Events (pushstate, replacestate)

To complement the <window> 'popstate' event, this library adds the 'pushstate'/'replacestate' events to <window>. Also adds corresponding 'onpushstate'/'onreplacestate' event handlers.

Versão de: 14/06/2022. Veja: a última versão.

Este script não deve ser instalado diretamente. Este script é uma biblioteca de outros scripts para incluir com o diretório meta // @require https://update.greasyforks.org/scripts/425774/1060686/Library%3A%20Additional%20%3Cwindow%3E%20History-Stack%20Events%20%28pushstate%2C%20replacestate%29.js

Autor
sidneys
Versão
0.1.0
Criado
01/05/2021
Atualizado
14/06/2022
Tamanho
2,19 KB
Licença
N/A

Library

DOM Window History Stack Events (pushstate/replacestate)

  • Complement the 'popstate' event
  • Emits a pushstate event from window by Monkey-Patching History#pushState
  • Calls corresponding window#onpushstate event handler
  • Emits a replacestate event from window by Monkey-Patching HistoryreplaceState
  • Calls corresponding window#onreplacestate event handler
长期地址
遇到问题?请前往 GitHub 提 Issues。