From 3fc641d52fbe395aed9a206fd417ead6a658a349 Mon Sep 17 00:00:00 2001 From: dimden Date: Sun, 17 Sep 2023 01:19:24 +0300 Subject: [PATCH] make scrollrestoration manual --- scripts/injection.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/injection.js b/scripts/injection.js index d3b2ec2a..0894512b 100644 --- a/scripts/injection.js +++ b/scripts/injection.js @@ -537,6 +537,8 @@ let page = realPath === "" ? pages[0] : pages.find(p => (!p.exclude || !p.exclud icon.id = "site-icon"; document.head.appendChild(icon); + history.scrollRestoration = 'manual'; // let's test if it'll make things better + chrome.runtime.sendMessage({ action: "inject", data: [