Skip to content

Instantly share code, notes, and snippets.

@LennyPenny
Created October 6, 2020 12:46
Show Gist options
  • Save LennyPenny/bf2e10c1e67584cf656359f480dbfd13 to your computer and use it in GitHub Desktop.
Save LennyPenny/bf2e10c1e67584cf656359f480dbfd13 to your computer and use it in GitHub Desktop.
A good base set of Redirector rules (https://github.com/einaregilsson/Redirector)
{
"createdBy": "Redirector v3.5.3",
"createdAt": "2020-10-06T12:45:15.742Z",
"redirects": [
{
"description": "De-mobilizer",
"exampleUrl": "https://en.m.wikipedia.org/",
"exampleResult": "https://en.wikipedia.org/",
"error": null,
"includePattern": "^(https?://)(.*\\.)m(?:obile)?\\.(.*)",
"excludePattern": "",
"patternDesc": "always show the desktop site of a webpage",
"redirectUrl": "$1$2$3",
"patternType": "R",
"processMatches": "noProcessing",
"disabled": false,
"grouped": false,
"appliesTo": [
"main_frame"
]
},
{
"description": "AMP redirect",
"exampleUrl": "https://www.google.com/amp/www.example.com/amp/document",
"exampleResult": "https://www.example.com/amp/document",
"error": null,
"includePattern": "^(?:https?://)www.(?:google|bing).com/amp/(.*)",
"excludePattern": "",
"patternDesc": "Description: AMP is bad: https://80x24.net/post/the-problem-with-amp/",
"redirectUrl": "https://$1",
"patternType": "R",
"processMatches": "noProcessing",
"disabled": false,
"grouped": false,
"appliesTo": [
"main_frame"
]
},
{
"description": "old reddit",
"exampleUrl": "https://www.reddit.com/u/test",
"exampleResult": "https://old.reddit.com/u/test",
"error": null,
"includePattern": "^(?:https?://)(?:www.)reddit.com(.*)",
"excludePattern": "",
"patternDesc": "",
"redirectUrl": "https://old.reddit.com$1",
"patternType": "R",
"processMatches": "noProcessing",
"disabled": false,
"grouped": false,
"appliesTo": [
"main_frame"
]
},
{
"description": "doubleclick escaper",
"exampleUrl": "https://ad.doubleclick.net/ddm/trackclk/N135005.2681608PRIVATENETWORK/B20244?https://www.example.com",
"exampleResult": "https://www.example.com",
"error": null,
"includePattern": "^(?:https?://)ad.doubleclick.net/.*\\?(http?s://.*)",
"excludePattern": "",
"patternDesc": "remove doubleclick link tracking / fix problems with doubleclick host based blocking",
"redirectUrl": "$1",
"patternType": "R",
"processMatches": "noProcessing",
"disabled": false,
"grouped": false,
"appliesTo": [
"main_frame"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment