Fix links with fragments

This commit is contained in:
Juhani Krekelä 2024-07-30 00:37:49 +03:00
parent a9d996af0c
commit c913086788

View file

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