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); } }