diff --git a/scripts/content.js b/scripts/content.js index cd1b7e9..e578a31 100644 --- a/scripts/content.js +++ b/scripts/content.js @@ -182,7 +182,7 @@ const querySelectors = () => }); /** - * @description Listens DOM complete state + * @description Cleans DOM again after all * @listens document#readystatechange */ @@ -196,6 +196,13 @@ document.addEventListener("readystatechange", () => { }); }); +/** + * @description Fix bfcache issues + * @listens window#unload + */ + +window.addEventListener("unload", () => {}); + /** * @description Setups everything and starts to observe if enabled */