From c913086788322088c4dd7eb907858d923b2d6acf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Tue, 30 Jul 2024 00:37:49 +0300 Subject: [PATCH] Fix links with fragments --- 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 43b2db6..8244d86 100644 --- a/oldnewthing-link-unfucker.js +++ b/oldnewthing-link-unfucker.js @@ -5,7 +5,7 @@ // @match https://devblogs.microsoft.com/oldnewthing/* // ==/UserScript== const rewriteRules = [ - [/^http:\/\/blogs.msdn.com\/b\/oldnewthing\/archive\/([0-9]{4})\/([0-9]{2})\/([0-9]{2})\/[0-9]+.aspx(#|$)/, + [/^http:\/\/blogs.msdn.com\/b\/oldnewthing\/archive\/([0-9]{4})\/([0-9]{2})\/([0-9]{2})\/[0-9]+.aspx(#.*)?$/, 'https://devblogs.microsoft.com/oldnewthing/$1$2$3-00/'], ];