Начнём с простого правила блокировки, простого регулярного выражения для bbc. com работает нормально:
Код: Выделить всё
[
{
"id": 1,
"priority": 1,
"action": {
"type": "block",
},
"condition": {
"regexFilter": "^https://www\\.bbc\\.com(/.*)?$",
"resourceTypes": [
"main_frame"
]
}
}
]
Код: Выделить всё
[
{
"id": 1,
"priority": 1,
"action": {
"type": "redirect",
"redirect": {
"url": "https://www.amazon.de"
}
},
"condition": {
"regexFilter": "^https://www\\.bbc\\.com(/.*)?$",
"resourceTypes": [
"main_frame"
]
}
}
]
Код: Выделить всё
[
{
"id": 1,
"priority": 1,
"action": {
"type": "redirect",
"redirect": {
"regexSubstitution": "https://www.amazon.de\\1"
}
},
"condition": {
"regexFilter": "^https://www\\.bbc\\.com(/.*)?$",
"resourceTypes": [
"main_frame"
]
}
}
]
Подробнее здесь: https://stackoverflow.com/questions/793 ... s-not-work
Мобильная версия