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/'], ];