Skip to content

Commit

Permalink
Merge branch 'master' into issue-565-add-info-certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
ameshkov authored Oct 14, 2024
2 parents 29545fa + 837fc79 commit 1af113e
Show file tree
Hide file tree
Showing 459 changed files with 5,380 additions and 12,534 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,18 @@ jobs:
echo "User-Agent: *\nDisallow: /" > build/robots.txt
- name: Install Wrangler
if: github.event.pull_request.head.repo.fork == false
run: npm install -g wrangler

- name: Deploy to Cloudflare Pages
if: github.event.pull_request.head.repo.fork == false
run: npx wrangler pages deploy ./build --project-name="${{ env.PAGES_PROJECT }}" --branch ${{ env.BRANCH_NAME }}
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_WORKERS_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_WORKERS_ACCOUNT_ID }}

- name: Add comment to Pull Request
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false
uses: actions/github-script@v6
with:
script: |
Expand Down
50 changes: 25 additions & 25 deletions docs/adguard-browser-extension/mv3-version.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The maximum number of simultaneously enabled filters is **50**.

**Dynamic rules:** a strict cap of **5,000** rules is imposed, which includes a maximum of 1,000 regex rules.

If this limit is exceeded, only **5,000 converted rules** will be applied in the following order: first allowlist, then user rules, and finally — custom filters.
If this limit is exceeded, only **5,000 converted rules** will be applied in the following order: first Allowlist, then User rules, Custom filters, and finally — Quick Fixes filter.

> **Converted rules** are rules that have been transformed
> to [DNR format] using the [declarative converter][github-declarative-converter].
Expand All @@ -66,33 +66,33 @@ If this limit is exceeded, only **5,000 converted rules** will be applied in the
Here's how a rule with a basic modifier is converted to a declarative rule:

```bash
||example.org^$script,third-party,domain=example.com
```
```adblock
||example.org^$script,third-party,domain=example.com
```

is converted to

```bash
[
{
"id": 1,
"action": {
"type": "block"
},
"condition": {
"urlFilter": "||example.org^",
"domainType": "thirdParty",
"initiatorDomains": [
"example.com"
],
"resourceTypes": [
"script"
]
},
"priority": 302
}
]
```
```json
[
{
"id": 1,
"action": {
"type": "block"
},
"condition": {
"urlFilter": "||example.org^",
"domainType": "thirdParty",
"initiatorDomains": [
"example.com"
],
"resourceTypes": [
"script"
]
},
"priority": 302
}
]
```

More examples can be found on [GitHub][github-declarative-converter-examples].

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ These instructions are also meant for problematic cases where you want to modify

1. Click *Load unpacked*:

![Load unacked](https://cdn.adtidy.org/content/Kb/ad_blocker/browser_extension/load_unpacked.png)
![Load unpacked](https://cdn.adtidy.org/content/Kb/ad_blocker/browser_extension/load_unpacked.png)

1. Select the extension directory and click `Select`:

Expand Down
2 changes: 1 addition & 1 deletion docs/adguard-for-windows/features/extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This article covers AdGuard for Windows, a multifunctional ad blocker that prote

:::

AdGuard can significantly broaden website functionality working as a [user script manager](/general/userscripts). AdGuard Users can add their own scripts, as well as manage existing ones.
AdGuard can significantly extend website functionality by working as a [userscript manager](/general/extensions.md). AdGuard users can add their own scripts as well as manage existing ones.

![Extensions *mobile_border](https://cdn.adtidy.org/content/kb/ad_blocker/windows/overview/userscripts.png)

Expand Down
21 changes: 9 additions & 12 deletions docs/general/ad-filtering/create-own-filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -1569,7 +1569,7 @@ preroll.ts

:::caution Restrictions

- `$hls` rules are only allowed [**in trusted filters**](#trusted-filters).
- Rules with the `$hls` modifier can only be used [**in trusted filters**](#trusted-filters).
- `$hls` rules are compatible with the modifiers `$domain`, `$third-party`, `$strict-third-party`, `$strict-first-party`, `$app`, `$important`, `$match-case`, and `$xmlhttprequest` only.
- `$hls` rules only apply to HLS playlists, which are UTF-8 encoded text starting with the line `#EXTM3U`.
Any other response will not be modified by these rules.
Expand Down Expand Up @@ -2312,7 +2312,7 @@ In case of multiple `$removeheader` rules matching a single request, we will app

:::caution Restrictions

This type of rules can be used [**only in trusted filters**](#trusted-filters).
This type of rules can only be used [**in trusted filters**](#trusted-filters).

1. In order to avoid compromising the security `$removeheader` cannot remove headers from the list below:
- `access-control-allow-origin`
Expand Down Expand Up @@ -2384,8 +2384,6 @@ Rules with `$removeheader` modifier are supported by AdGuard for Windows, AdGuar

Rules with `$removeparam` modifier are intended to strip query parameters from requests' URLs. Please note that such rules are only applied to `GET`, `HEAD`, `OPTIONS`, and sometimes `POST` requests.

`$removeparam` rules that do not have any [content type modifiers](#content-type-modifiers) will match only requests where content type is `document`.

**Syntax**

**Basic syntax**
Expand Down Expand Up @@ -2551,10 +2549,9 @@ With these rules, specified UTM parameters will be removed from any request save

:::caution Restrictions

- Rules with `$removeparam` modifier can be used [**only in trusted filters**](#trusted-filters).
- `$removeparam` rules are compatible with [basic modifiers](#basic-rules-basic-modifiers),
[content-type modifiers](#content-type-modifiers), and with `$important` and `$app` modifiers.
Rules with any other modifiers are considered invalid and will be discarded.
1. Rules with the `$removeparam` modifier can only be used [**in trusted filters**](#trusted-filters).
1. `$removeparam` rules are compatible with [basic modifiers](#basic-rules-basic-modifiers), [content-type modifiers](#content-type-modifiers), and with the `$important` and `$app` modifiers. Rules with any other modifiers are considered invalid and will be discarded.
1. `$removeparam` rules without [content type modifiers](#content-type-modifiers) will only match requests where the content type is `document`.

:::

Expand Down Expand Up @@ -2633,7 +2630,7 @@ http://regexr.com/3cesk
:::caution Restrictions
Rules with `$replace` modifier can be used [**only in trusted filters**](#trusted-filters).
Rules with the `$replace` modifier can only be used [**in trusted filters**](#trusted-filters).
:::
Expand Down Expand Up @@ -2728,7 +2725,7 @@ the request to `https://example.com/firstpath` will be blocked.
:::caution Restrictions
Rules with the `$urltransform` modifier can be used [**only in trusted filters**](#trusted-filters).
Rules with the `$urltransform` modifier can only be used [**in trusted filters**](#trusted-filters).
:::
Expand Down Expand Up @@ -4157,7 +4154,7 @@ In other cases it is better to change the original rule, using domain restrictio
:::caution Restrictions
JavaScript rules can be used [**only in trusted filters**](#trusted-filters).
JavaScript rules can only be used [**in trusted filters**](#trusted-filters).
:::
Expand Down Expand Up @@ -4286,7 +4283,7 @@ Trusted scriptlets are not compatible with other ad blockers except AdGuard.
:::caution Restrictions
Trusted scriptlets rules can be used [**only in trusted filters**](#trusted-filters).
Trusted scriptlets rules can only be used [**in trusted filters**](#trusted-filters).
:::
Expand Down
Loading

0 comments on commit 1af113e

Please sign in to comment.