Skip to content

Commit

Permalink
Tweak image URL trimming and add Google Street View exception
Browse files Browse the repository at this point in the history
Also some optional whitelist rules to restore functionality in YouTube.
  • Loading branch information
ArenaL5 authored and Monso pequeño committed Aug 4, 2020
1 parent e50d312 commit 941ccd5
Showing 1 changed file with 121 additions and 1 deletion.
122 changes: 121 additions & 1 deletion src/options/default-rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,8 @@
"excludes": [
"http://*.imgix.net/",
"https://*.imgix.net/",
"http://geo*.ggpht.com/cbk?*",
"https://geo*.ggpht.com/cbk?*",
"https://web.whatsapp.com/",
"https://www.google.com/recaptcha/api2/payload*"
],
Expand All @@ -518,11 +520,16 @@
"height",
"oe",
"oh",
"output",
"q",
"scale",
"size",
"url",
"w",
"width"
"width",
"x",
"y",
"zoom"
],
"invert": true
}
Expand All @@ -546,5 +553,118 @@
"title": "WhatsApp Web images",
"tag": "filter-whatsapp",
"description": "User avatars in WhatsApp Web need an extra rule to filter URL parameters"
},
{
"uuid": "9455395a-68a5-4ada-b40a-1ce4ce805c8f",
"pattern": {
"scheme": "*",
"host": [
"geo0.ggpht.com",
"geo1.ggpht.com",
"geo2.ggpht.com",
"geo3.ggpht.com"
],
"path": [
"/cbk?*"
]
},
"types": [
"image"
],
"action": "filter",
"active": true,
"description": "Google Street View doesn't need that much data to render streets",
"paramsFilter": {
"values": [
"output",
"panoid",
"x",
"y",
"zoom"
],
"invert": true
},
"title": "Anonymize Google Street View",
"tag": "filter-google"
},
{
"uuid": "802e0c21-922e-4501-a652-da805caedb01",
"pattern": {
"scheme": "*",
"host": [
"i9.ytimg.com"
],
"path": [
"/sb/*/storyboard*"
]
},
"types": [
"image"
],
"action": "whitelist",
"active": true,
"title": "Restore YouTube seekbar previews",
"description": "The general filter rule breaks the preview shown upon hovering over the seekbar. This rule restores them at the cost of sending unknown metadata to YouTube servers. Disabling this rule will not break YouTube's other functions.",
"tag": "whitelist-youtube"
},
{
"uuid": "bebe6410-8d55-46d5-9003-6c0d92e7526a",
"pattern": {
"scheme": "*",
"host": [
"i.ytimg.com"
],
"path": [
"/an_webp/*/*default_6s.webp*"
]
},
"types": [
"image"
],
"action": "whitelist",
"active": true,
"title": "Restore YouTube video previews",
"description": "YouTube should show several frames of a video when hovering a thumbnail with the cursor. This rule restores that functionality%2C but sends extra metada to Google's servers. Disabling this rule will not break YouTube's other functions.",
"tag": "whitelist-youtube"
},
{
"uuid": "802e0c21-922e-4501-a652-da805caedb01",
"pattern": {
"scheme": "*",
"host": [
"i9.ytimg.com"
],
"path": [
"/sb/*/storyboard*"
]
},
"types": [
"image"
],
"action": "whitelist",
"active": true,
"title": "Restore YouTube seekbar previews",
"description": "The general filter rule breaks the preview shown upon hovering over the seekbar. This rule restores them at the cost of sending unknown metadata to YouTube servers. Disabling this rule will not break YouTube's other functions.",
"tag": "whitelist-youtube"
},
{
"uuid": "bebe6410-8d55-46d5-9003-6c0d92e7526a",
"pattern": {
"scheme": "*",
"host": [
"i.ytimg.com"
],
"path": [
"/an_webp/*/*default_6s.webp*"
]
},
"types": [
"image"
],
"action": "whitelist",
"active": true,
"title": "Restore YouTube video previews",
"description": "YouTube should show several frames of a video when hovering a thumbnail with the cursor. This rule restores that functionality%2C but sends extra metada to Google's servers. Disabling this rule will not break YouTube's other functions.",
"tag": "whitelist-youtube"
}
]

0 comments on commit 941ccd5

Please sign in to comment.