Library: DOM 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.

נכון ליום 01-05-2021. ראה הגרסה האחרונה.

אין להתקין סקריפט זה ישירות. זוהי ספריה עבור סקריפטים אחרים // @require https://update.greasyfork.org/scripts/425774/926822/Library%3A%20DOM%20Window%20History%20Stack%20Events%20%28pushstatereplacestate%29.js

יוצר
sidneys
גרסה
0.0.9
נוצר
01-05-2021
עודכן
01-05-2021
Size
2.18 קילו-בייט
רישיון
לא זמין

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