This commit is contained in:
Juhani Krekelä 2024-07-30 00:58:00 +03:00
parent 1b626bfdcb
commit a35bd2e6b1

View file

@ -1,12 +1,12 @@
// ==UserScript== // ==UserScript==
// @name The Old New Thing link unfucker // @name The Old New Thing link unfucker
// @version 2 // @version 3
// @grant none // @grant none
// @match https://devblogs.microsoft.com/oldnewthing/* // @match https://devblogs.microsoft.com/oldnewthing/*
// ==/UserScript== // ==/UserScript==
const rewriteRules = [ 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/'], 'https://devblogs.microsoft.com/oldnewthing/$2$3$4-00/'],
[/^https:\/\/blogs.msdn.microsoft.com\//, [/^https:\/\/blogs.msdn.microsoft.com\//,
'https://devblogs.microsoft.com/'], 'https://devblogs.microsoft.com/'],
]; ];