From a35bd2e6b1bef820c4b8199dc171200cdb6c6e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Tue, 30 Jul 2024 00:58:00 +0300 Subject: [PATCH] Handle http://blogs.msdn.com/oldnewthing/archive/* --- oldnewthing-link-unfucker.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oldnewthing-link-unfucker.js b/oldnewthing-link-unfucker.js index ab561d9..ffe7642 100644 --- a/oldnewthing-link-unfucker.js +++ b/oldnewthing-link-unfucker.js @@ -1,12 +1,12 @@ // ==UserScript== // @name The Old New Thing link unfucker -// @version 2 +// @version 3 // @grant none // @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(#.*)?$/, - 'https://devblogs.microsoft.com/oldnewthing/$1$2$3-00/'], + [/^http:\/\/blogs.msdn.com(\/b)?\/oldnewthing\/archive\/([0-9]{4})\/([0-9]{2})\/([0-9]{2})\/[0-9]+.aspx(#.*)?$/, + 'https://devblogs.microsoft.com/oldnewthing/$2$3$4-00/'], [/^https:\/\/blogs.msdn.microsoft.com\//, 'https://devblogs.microsoft.com/'], ];