From 86e0e3cf9340baf7ad380e4aa03f4cc8ee04ab51 Mon Sep 17 00:00:00 2001 From: jjanzen Date: Mon, 10 Feb 2025 17:45:04 -0600 Subject: filter myself from the list --- scripts/cssa-webring.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/cssa-webring.js b/scripts/cssa-webring.js index 749b23d..60de4c9 100644 --- a/scripts/cssa-webring.js +++ b/scripts/cssa-webring.js @@ -4,13 +4,11 @@ function load_random_site() { fetch(webring_all_url) .then((response) => response.json()) .then((obj) => { - const entries = obj; // TODO: remove myself from the list - const entries_cleaned = obj.filter((item) => { + const entries = obj.filter((item) => { return item.url !== "https://jjanzen.ca"; }); - console.log(entries_cleaned); const entry = entries[Math.floor(Math.random() * entries.length)]; - // window.location.href = entry.url; + window.location.href = entry.url; }); } -- cgit v1.2.3