This commit is contained in:
parent
c913086788
commit
bdfda5ff5b
1 changed files with 3 additions and 1 deletions
|
@ -1,12 +1,14 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name The Old New Thing link unfucker
|
// @name The Old New Thing link unfucker
|
||||||
// @version 1
|
// @version 2
|
||||||
// @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/$1$2$3-00/'],
|
||||||
|
[/^https:\/\/blogs.msdn.microsoft.com\//,
|
||||||
|
'https://devblogs.microsoft.com/'],
|
||||||
];
|
];
|
||||||
|
|
||||||
for (const link of document.getElementsByTagName('a')) {
|
for (const link of document.getElementsByTagName('a')) {
|
||||||
|
|
Loading…
Reference in a new issue