From 9cd5d1b9b201a71a2cf28fb2682120730c53d7b4 Mon Sep 17 00:00:00 2001 From: Avindra Goolcharan Date: Sat, 9 Mar 2024 14:33:32 -0500 Subject: [PATCH] ggpht: use location.replace --- ggpht.com/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ggpht.com/index.js b/ggpht.com/index.js index 088162b..943ff5f 100644 --- a/ggpht.com/index.js +++ b/ggpht.com/index.js @@ -4,11 +4,11 @@ const S = /s\d+-([cp])/; if (!location.href.includes("4096")) { const dest = location.href.replace(S, "s4096-$1"); if (dest !== location.href) { - location.href = dest; + location.replace(dest); } const dest2 = location.href.replace(/w\d+-h\d+/, "w4096"); if (dest2 !== location.href) { - location.href = dest2; + location.replace(dest2); } }