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); } } diff --git a/npmjs.com/index.js b/npmjs.com/index.js index 2753cd7..9927c3c 100644 --- a/npmjs.com/index.js +++ b/npmjs.com/index.js @@ -25,5 +25,10 @@ if (repos) { list.append( listItem("Packagephobia", `https://packagephobia.com/result?p=${pkg}`), ); + + list.append( + listItem("pkg-size.dev", `https://pkg-size.dev/${pkg}`) + ); + repos.parentNode.append(list); }