Add support for "double" domains like *.co.jp

+ Add support for "double" domains like *.co.jp
+ Making the google redirection working
This commit is contained in:
Kevin Röbert 2018-02-15 06:23:41 +01:00
parent db4baf2ff6
commit aa06ae7e29

View File

@ -1,7 +1,7 @@
{ {
"providers": { "providers": {
"amazon": { "amazon": {
"urlPattern": "(https:\\/\\/||http:\\/\\/).*([\\.]?amazon\\.)\\w{2,}\\/.*", "urlPattern": "(https:\\/\\/||http:\\/\\/).*([\\.]?amazon\\.).*\\/.*",
"completeProvider": false, "completeProvider": false,
"rules": [ "rules": [
"pf_rd_[a-zA-Z]=[^\\/|\\?|&]*(\\/|&(amp;)?)?", "pf_rd_[a-zA-Z]=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
@ -24,12 +24,12 @@
"_encoding=[^\\/|\\?|&]*(\\/|&(amp;)?)?" "_encoding=[^\\/|\\?|&]*(\\/|&(amp;)?)?"
], ],
"exceptions": [ "exceptions": [
".*(amazon\\.)\\w{2,}(\\/gp).*\\/redirector.html\\/.*" ".*(amazon\\.).*(\\/gp).*\\/redirector.html\\/.*"
], ],
"redirections": [] "redirections": []
}, },
"google": { "google": {
"urlPattern": "(https:\\/\\/||http:\\/\\/).*([\\.]?google\\.)\\w{2,}\\/.*", "urlPattern": "(https:\\/\\/||http:\\/\\/).*([\\.]?google\\.).*\\/.*",
"completeProvider": false, "completeProvider": false,
"rules": [ "rules": [
"ved=[^\\/|\\?|&]*(\\/|&(amp;)?)?", "ved=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
@ -56,19 +56,19 @@
"sei=[^\\/|\\?|&]*(\\/|&(amp;)?)?" "sei=[^\\/|\\?|&]*(\\/|&(amp;)?)?"
], ],
"exceptions": [ "exceptions": [
".*(mail\\.google\\.)\\w{2,}(\\/mail\\/u\\/0)\\/.*", ".*(mail\\.google\\.).*(\\/mail\\/u\\/0)\\/.*",
".*(mail\\.google\\.)\\w{2,}(\\/mail\\/u\\/0)\\/.*", ".*(mail\\.google\\.).*(\\/mail\\/u\\/0)\\/.*",
".*(google\\.)\\w{2,}(\\/upload)?(\\/drive)\\/.*", ".*(google\\.).*(\\/upload)?(\\/drive)\\/.*",
".*(docs\\.google\\.)\\w{2,}\\/.*", ".*(docs\\.google\\.).*\\/.*",
".*(accounts\\.google\\.)\\w{2,}.*", ".*(accounts\\.google\\.).*",
".*(google\\.)\\w{2,}\\/searchbyimage\\?image_url=[^\\/|\\?|&]*(\\/|&(amp;)?)?", ".*(google\\.).*\\/searchbyimage\\?image_url=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
".*(hangouts\\.google\\.)\\w{2,}\\/webchat.*zx=[^\\/|\\?|&]*(\\/|&(amp;)?)?", ".*(hangouts\\.google\\.).*\\/webchat.*zx=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
".*(client-channel\\.google\\.)\\w{2,}\\/client-channel.*zx=[^\\/|\\?|&]*(\\/|&(amp;)?)?", ".*(client-channel\\.google\\.).*\\/client-channel.*zx=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
".*(.google\\.)\\w{2,}\\/complete\\/search\\?client=youtube.*gs_gbg=[^\\/|\\?|&]*(\\/|&(amp;)?)?", ".*(.google\\.).*\\/complete\\/search\\?client=youtube.*gs_gbg=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
".*(.google\\.)\\w{2,}\\/s\\?tbm=map.*gs_[a-zA-Z]*=[^\\/|\\?|&]*(\\/|&(amp;)?)?" ".*(.google\\.).*\\/s\\?tbm=map.*gs_[a-zA-Z]*=[^\\/|\\?|&]*(\\/|&(amp;)?)?"
], ],
"redirections": [ "redirections": [
"url\\?.*url=([^\\/|\\?|&]*)" ".*google\\..*\\/.*url\\?.*url=([^\\/|\\?|&]*)"
] ]
}, },
"googlesyndication": { "googlesyndication": {
@ -150,7 +150,7 @@
"redirections": [] "redirections": []
}, },
"youtube": { "youtube": {
"urlPattern": "(https:\\/\\/||http:\\/\\/).*([\\.]?youtube\\.)\\w{2,}\\/.*", "urlPattern": "(https:\\/\\/||http:\\/\\/).*([\\.]?youtube\\.).*\\/.*",
"completeProvider": false, "completeProvider": false,
"rules": [ "rules": [
"feature=[^\\/|\\?|&]*(\\/|&(amp;)?)?", "feature=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
@ -161,7 +161,7 @@
"redirections": [] "redirections": []
}, },
"facebook": { "facebook": {
"urlPattern": "(https:\\/\\/||http:\\/\\/).*([\\.]?facebook\\.)\\w{2,}\\/.*", "urlPattern": "(https:\\/\\/||http:\\/\\/).*([\\.]?facebook\\.).*\\/.*",
"completeProvider": false, "completeProvider": false,
"rules": [ "rules": [
"[a-zA-Z]*ref=[^\\/|\\?|&]*(\\/|&(amp;)?)?", "[a-zA-Z]*ref=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
@ -182,7 +182,7 @@
"redirections": [] "redirections": []
}, },
"twitter": { "twitter": {
"urlPattern": "(https:\\/\\/||http:\\/\\/).*([\\.]?twitter\\.)\\w{2,}\\/.*", "urlPattern": "(https:\\/\\/||http:\\/\\/).*([\\.]?twitter\\.).*\\/.*",
"completeProvider": false, "completeProvider": false,
"rules": [ "rules": [
"(ref_)?src=[^\\/|\\?|&]*(\\/|&(amp;)?)?" "(ref_)?src=[^\\/|\\?|&]*(\\/|&(amp;)?)?"
@ -222,7 +222,7 @@
"redirections": [] "redirections": []
}, },
"bing": { "bing": {
"urlPattern": "(https:\\/\\/||http:\\/\\/).*([\\.]?bing\\.)\\w{2,}\\/.*", "urlPattern": "(https:\\/\\/||http:\\/\\/).*([\\.]?bing\\.).*\\/.*",
"completeProvider": false, "completeProvider": false,
"rules": [ "rules": [
"cvid=[^\\/|\\?|&]*(\\/|&(amp;)?)?", "cvid=[^\\/|\\?|&]*(\\/|&(amp;)?)?",