From 1b626bfdcbc42d72aea1051c698236e91038ecf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Tue, 30 Jul 2024 00:39:18 +0300 Subject: [PATCH] NBSP away --- oldnewthing-link-unfucker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oldnewthing-link-unfucker.js b/oldnewthing-link-unfucker.js index e40069b..ab561d9 100644 --- a/oldnewthing-link-unfucker.js +++ b/oldnewthing-link-unfucker.js @@ -16,7 +16,7 @@ for (const link of document.getElementsByTagName('a')) { if (target === '') { continue; } - for (const [regex, replacement] of rewriteRules) { + for (const [regex, replacement] of rewriteRules) { target = target.replace(regex, replacement); } if (target !== link.href) {