diff --git a/ggpht.com/index.js b/ggpht.com/index.js index 97b0849..088162b 100644 --- a/ggpht.com/index.js +++ b/ggpht.com/index.js @@ -3,5 +3,12 @@ const S = /s\d+-([cp])/; // default size to 4096px if (!location.href.includes("4096")) { const dest = location.href.replace(S, "s4096-$1"); - location.href = dest; + if (dest !== location.href) { + location.href = dest; + } + + const dest2 = location.href.replace(/w\d+-h\d+/, "w4096"); + if (dest2 !== location.href) { + location.href = dest2; + } } diff --git a/npmjs.com/index.js b/npmjs.com/index.js index f6a8d8c..2753cd7 100644 --- a/npmjs.com/index.js +++ b/npmjs.com/index.js @@ -1,6 +1,6 @@ const repos = document.getElementById("repository"); -const list = document.createElement("u"); +const list = document.createElement("ul"); const listItem = (text, href) => { const li = document.createElement("li");