Skip to content

Commit

Permalink
Merge pull request #394 from AdguardTeam/update-translations
Browse files Browse the repository at this point in the history
Update translations
  • Loading branch information
el-termikael authored Dec 21, 2023
2 parents eae80cb + 75d0116 commit 35dec0a
Show file tree
Hide file tree
Showing 185 changed files with 3,391 additions and 2,688 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
title: How to export logs from the background page
sidebar_position: 1
---

## Exporting logs from the background page in the extension

### Chrome

1. Open AdGuard Browser Extension and, if possible, repeat the actions that led to the error. Note the exact time when the error occurred.

2. Navigate to `chrome://extensions`.

3. Enable _Developer mode_.

![Developer mode \*border](https://cdn.adguardvpn.com/content/kb/ad_blocker/browser_extension/developer_mode1.png)

4. Click `background.html`.

![Background \*border](https://cdn.adguardvpn.com/content/kb/ad_blocker/browser_extension/background1.png)

5. Open the tab _Console_.

![The Console tab \*border](https://cdn.adguardvpn.com/content/kb/vpn/browser_extension/console.png)

6. Open the context menu and select _Save as…_.

![Save as \*border](https://cdn.adguardvpn.com/content/kb/vpn/browser_extension/save.png)

### Firefox

1. Open AdGuard Browser Extension and, if possible, repeat the actions that led to the error. Note the exact time when the error occurred.

2. Navigate to `about:addons`.

3. Click _Debug Add-ons_.

![Debug Add-ons \*border](https://cdn.adguardvpn.com/content/kb/vpn/browser_extension/add-ons.png)

4. Click _Inspect_.

![Inspect \*border](https://cdn.adguardvpn.com/content/kb/vpn/browser_extension/inspect.png)

5. Go to the tab _Console_.

![Console \*border](https://cdn.adguardvpn.com/content/kb/vpn/browser_extension/ff_console.png)

6. Click _Save all Messages to File_.

![Save \*border](https://cdn.adguardvpn.com/content/kb/vpn/browser_extension/save-to-file.png)

## Sending logs

Now that you have collected the logs, please follow these steps to submit them to our development team:

1. Report the bug on [GitHub](https://github.com/AdguardTeam/AdguardBrowserExtension/issues/new/choose).
2. Send your archive with logs and playback time to `[email protected]` and add a link to your GitHub issue. You can also upload the archive to Google Drive and add the link to it instead of attaching the file.
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ Userscripts are mini-programs written in JavaScript that extend the functionalit

##### AdGuard Extra

AdGuard Extra is a custom userscript that prevents websites from bypassing ad blockers and re-inserting blocked ads.
AdGuard Extra is a custom userscript that blocks complex ads and mechanisms that reinject ads to websites.

### License

Expand Down Expand Up @@ -421,7 +421,7 @@ GitHub is an alternative way to report bugs and suggest new features. [Instructi

:::

### Free vs full version
## Free vs full version

<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/xNOeHpZgjFo" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Expand All @@ -441,13 +441,13 @@ AdGuard uses its own ad-free media player to block ads in YouTube videos. To ope

- *Custom filters and user rules* allow you to add your own filtering rules and third-party filters to fine-tune ad blocking. [Back to filters](#filters)

- *Userscripts* allow you to use AdGuard Extra to bypass ad blocker bans and install other userscripts to extend your browser's functionality. [Back to userscripts](#userscripts)
- *Userscripts* allow you to extend the functionality of the browser and use [AdGuard Extra](#adguard-extra) that prevents ad reinjection. [Back to userscripts](#userscripts)

You can get access to these features by [purchasing a license](https://adguard.com/license.html). [How to activate the license](/general/license/activation/#activating-adguard-for-android)

### Rooted vs non-rooted devices
## Rooted vs non-rooted devices

Due to additional security measures of Android apps, some AdGuard features are only available on rooted devices. Here's the list of them:
Due to security measures of the Android OS, some AdGuard features are only available on rooted devices. Here's the list of them:

- **HTTPS filtering in most apps** requires [installing a CA certificate into the system store](#security-certificates), as most apps do not trust certificates in the user store. Installing a certificate into the system store is only possible on rooted devices
- The [**Automatic proxy** routing mode](#routing-mode) requires root access due to Android's limitations on system-wide traffic filtering
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,39 @@ AdGuard for Safari is a free app presented on the App Store. To install it on yo

1. To set up AdGuard for Safari, enable the AdGuard extensions in the Safari settings. In a notification, click *Fix it*. In an opened window, check the boxes next to AdGuard extensions.

![Notification: Some extensions are disabled](https://cdn.adtidy.org/content/Kb/ad_blocker/safari/adguard-for-safari-notification.png)
![Notification: Some extensions are disabled](https://cdn.adtidy.org/content/Kb/ad_blocker/safari/adguard-for-safari-notification.png)

:::note
:::note

Not all extensions are required for AdGuard for Safari to function correctly. For instance, checking the *Icon* extension enables the icon next to the search bar. However, we recommend enabling all of them.

Not all extensions are required for AdGuard for Safari to function correctly. For instance, checking the *Icon* extension enables the icon next to the search bar. However, we recommend enabling all of them.

:::

![Extensions checked](https://cdn.adtidy.org/content/Kb/ad_blocker/safari/adguard-for-safari-extensions-checked.png)
![Extensions checked](https://cdn.adtidy.org/content/Kb/ad_blocker/safari/adguard-for-safari-extensions-checked.png)

1. To make AdGuard take effects on websites, the *Content Blockers* setting must be enabled. You can either enable for all websites or select the ones you want.

:::note

This step is needed for iOS 9.0 and later, macOS 10.11 with Safari 10, and macOS 10.12 and later.


:::

On macOS, click *Preference**Websites**Content Blockers*. If you want to enable AdGuard on every website, turn *When visiting other websites* to *On*.

![Mac Safari Content Blocker Setting](https://i0.imgs.ovh/2023/10/26/Fmc9U.png)

<!-- adguard-for-safari-content-blocker-setting-macos.png -->

On iOS, go *Settings**Safari**Content Blockers*, and set the option to *Yes*.

![iOS Safari Content Blocker Setting](https://i0.imgs.ovh/2023/10/26/FmgM0.jpeg)

<!-- adguard-for-safari-content-blocker-setting-ios.jpg -->

After you complete steps 1-3, AdGuard for Safari will start functioning. You can now configure its settings.
After you complete steps 1-4, AdGuard for Safari will start functioning. You can now configure its settings.

## How to uninstall AdGuard for Safari {#uninstall}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ This article is about the filters we create to use in AdGuard and other ad-block
- **Tracking Protection filter** — comprehensive list of various online counters and web analytics tools. Use it to hide your actions online and avoid tracking. [View rules](https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_3_Spyware/filter.txt)
- **URL Tracking filter** enhances privacy by removing tracking parameters from URLs. When a user opts to block tracking parameters in Stealth Mode, this filter will be enabled automatically. [View rules](https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_17_TrackParam/filter.txt)
- **Social media filter** removes numerous "Like" and "Tweet" buttons and other social media integrations on popular websites. [View rules](https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_4_Social/filter.txt)
- **Annoyances filter** blocks irritating elements on web pages. [View rules](https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_14_Annoyances/filter.txt) Includes the following AdGuard filters (all of them can be enabled separately from the Annoyances filter):
- **Annoyances filter** blocks irritating elements on web pages. [View rules](https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_14_Annoyances/filter.txt). Includes the following AdGuard filters (all of them can be enabled separately from the Annoyances filter):

- **Cookie Notices** blocks cookie notices on web pages. [View rules](https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_18_Annoyances_Cookies/filter.txt)
- **Popups** blocks all kinds of pop-ups that are not necessary for websites' operation. [View rules](https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_19_Annoyances_Popups/filter.txt)
- **Mobile App Banners** blocks banners that promote mobile apps of websites. [View rules](https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_20_Annoyances_MobileApp/filter.txt)
- **Widgets** blocks third-party widgets: online assistants, live support chats, etc. [View rules](https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_22_Annoyances_Widgets/filter.txt)
- **Other Annoyances** blocks elements that do not fall under the popular categories of annoyances. [View rules](https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_21_Annoyances_Other/filter.txt)

- **Filter unblocking search ads and self-promotions** unblocks ads that may be useful to users. Learn more about this filter on [this page](../search-ads). [View rules](https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_10_Useful/filter.txt)
- **Russian filter** removes ads from websites in Russian. [View rules](https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_1_Russian/filter.txt)
- **German filter** removes ads from websites in German. Originally based on the [EasyList Germany](https://easylist.to/) filter and subsequently modified by us according to the complaints from users. [View rules](https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_6_German/filter.txt)
Expand All @@ -32,6 +34,7 @@ This article is about the filters we create to use in AdGuard and other ad-block
- **Spanish/Portuguese filter** removes ads from websites in Spanish and Portuguese. Originally based on the [Fanboy’s Spanish/Portuguese](https://www.fanboy.co.nz/fanboy-espanol.txt) filter and subsequently modified by us according to the complaints from users. [View rules](https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_9_Spanish/filter.txt)
- **Turkish filter** removes ads from websites in Turkish. Created by us according to the complaints from users. [View rules](https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_13_Turkish/filter.txt)
- **Chinese filter** removes ads from websites in Chinese. Originally based on the [EasyList China](https://github.com/easylist/easylistchina) filter and subsequently modified by us according to the complaints from users. [View rules](https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_224_Chinese/filter.txt)
- **Ukrainian filter** removes ads from websites in Ukrainian. Learn more about this filter on [this page](https://adguard.com/en/blog/ukrainian-filter.html). [View rules](https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_23_Ukrainian/filter.txt)
- **Experimental filter** serves to test some new filtering rules that can potentially cause conflicts and mess with websites' work. In case these rules perform without any issues, they get added to main filters. [View rules](https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_5_Experimental/filter.txt)
- **Mobile ads filter** blocks ads on mobile devices. Contains all known mobile ad networks. [View rules](https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_11_Mobile/filter.txt)
- **DNS filter** — composed of several other filters (AdGuard Base filter, Social media filter, Spyware filter, Mobile ads filter, EasyList and EasyPrivacy) and simplified specifically to be better compatible with DNS-level ad blocking. This filter is used by [AdGuard DNS](https://adguard-dns.io/kb) servers to block ads and tracking. [View rules](https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_15_DnsFilter/filter.txt)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ Browser detects a blocked request as completed with an error.

:::

:::note Rule length

Rules shorter than 4 characters are considered incorrect and will be ignored.

:::

### Basic rule syntax {#basic-rules-syntax}

```text
Expand Down Expand Up @@ -201,68 +207,6 @@ AdGuard Safari and AdGuard for iOS do not fully support regular expressions beca

:::

### Restrictions on rules application {#rules-restrictions}

Rules that match an arbitrarily large number of URLs are considered incorrect and will be ignored. This can happen if the rule doesn't contain a mask, or if the mask matches any URL with a certain protocol.

This rule will be ignored:

```text
|http://$replace=/a/b/
```

This limitation can be circumvented by using a `/.*/` regular expression inside the mask.

This rule will not be ignored:

```text
/.*/$replace=/a/b/
```

**Exceptions**

This rule validation is not applied in the following cases:

1. The rule contains [`$domain`](#domain-modifier) modifier that points to a specific domain list

These rules will not be ignored:

```text
$domain=example.com,script
$domain=example.*,script
```
This rule will be ignored because of domain negation, which causes too wide of a rule application scope:
```text
$domain=~example.com,script
```
1. The rule contains [`$app`](#app-modifier) modifier that points to a specific app list
This rule will not be ignored:
```text
$app=curl,document
```
This rule will be ignored because of app negation, which causes too wide of a rule application scope:
```text
$app=~curl,document
```
1. The rule contains one or more modifiers from among [`$cookie`](#cookie-modifier), [`$removeparam`](#removeparam-modifier), [`$removeheader`](#removeheader-modifier), [`$stealth`](#stealth-modifier)
These rules will not be ignored:
```text
$removeparam=cx_recsWidget
$cookie=ibbid
$removeheader=location
$stealth
```
### Wildcard support for TLD (top-level domains) {#wildcard-for-tld}

Wildcard characters are supported for TLDs of the domains in patterns of [cosmetic](#cosmetic-rules), [HTML filtering](#html-filtering-rules) and [JavaScript](#javascript-rules) rules.
Expand Down Expand Up @@ -2443,7 +2387,7 @@ Element hiding rules are used to hide the elements of web pages. It is similar t

Element hiding rules may operate differently [depending on the platform](#cosmetic-rules-priority).

#### Syntax {#non-basic-rules-modifiers-syntax}
#### Syntax

```text
rule = [domains] "##" selector
Expand Down Expand Up @@ -2519,7 +2463,7 @@ domains = [domain0, domain1[, ...[, domainN]]]
```

- **`selector`**[CSS selector](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_Started/Selectors), that defines the elements we want to apply the style to.
- **`domains`** — domain restriction for the rule. Same principles as in [element hiding rules](#elemhide-syntax).
- **`domains`** — domain restriction for the rule. Same principles as in [element hiding rules](#cosmetic-elemhide-rules).
- **`style`** — CSS style, that we want to apply to selected elements.

**Examples**
Expand Down Expand Up @@ -3250,7 +3194,7 @@ This pseudo-class was basically a shortcut for `:not(:has())`. It was supported

The way **element hiding** and **CSS rules** are applied is platform-specific.

**In AdGuard for Windows, Mac, and Android**, we use a stylesheet injected into the page. The priority of cosmetic rules is the same as any other websites' CSS stylesheet. But there is a limitation: [element hiding](#elemhide-syntax) and [CSS rules](#cosmetic-css-rules) cannot override inline styles. In such cases, it is recommended to use extended selectors or HTML filtering.
**In AdGuard for Windows, Mac, and Android**, we use a stylesheet injected into the page. The priority of cosmetic rules is the same as any other websites' CSS stylesheet. But there is a limitation: [element hiding](#cosmetic-elemhide-rules) and [CSS rules](#cosmetic-css-rules) cannot override inline styles. In such cases, it is recommended to use extended selectors or HTML filtering.

**In AdGuard Browser Extension**, the so called "user stylesheets" are used. They have higher priority than even the inline styles.

Expand Down Expand Up @@ -3279,7 +3223,7 @@ pseudoClasses = pseudoClass *pseudoClass
```

- **`tagName`** — name of the element in lower case, for example, `div` or `script`.
- **`domains`** — domain restriction for the rule. Same principles as in [element hiding rule syntax](#elemhide-syntax).
- **`domains`** — domain restriction for the rule. Same principles as in [element hiding rule syntax](#cosmetic-elemhide-rules).
- **`attributes`** — a list of attributes that limit the selection of elements. `name` — attribute name, `value` — substring, that is contained in attribute value.
- **`pseudoName`** — the name of a pseudo-class.
- **`pseudoArgs`** — the arguments of a function-style pseudo-class.
Expand Down Expand Up @@ -3483,7 +3427,7 @@ We **strongly recommend** using [scriptlets](#scriptlets) instead of JavaScript
rule = [domains] "#%#" script
```

- **`domains`** — domain restriction for the rule. Same principles as in [element hiding rules](#elemhide-syntax).
- **`domains`** — domain restriction for the rule. Same principles as in [element hiding rules](#cosmetic-elemhide-rules).
- **`script`** — arbitrary javascript code **in one string**.

**Examples**
Expand Down Expand Up @@ -3593,7 +3537,7 @@ More information about trusted scriptlets can be found [on GitHub](https://githu

Each rule can be modified using the modifiers described in the following paragraphs.

**Syntax**
**Syntax** {#non-basic-rules-modifiers-syntax}

```text
rule = "[$" modifiers "]" [rule text]
Expand Down Expand Up @@ -3826,6 +3770,7 @@ where:
- `adguard_ext_opera` — AdGuard Browser Extension for Opera
- `adguard_ext_android_cb` — AdGuard Content Blocker for mobile Samsung and Yandex browsers
- `ext_ublock` — special case; this one is declared when a uBlock version of a filter is compiled by the [FiltersRegistry][]
- `cap_html_filtering` — products that support HTML filtering rules: AdGuard for Windows, AdGuard for Mac, and AdGuard for Android
- `!#else` — start of the block when conditions are false
- `rules_list`, `true_conditions_rules_list`, `false_conditions_rules_list` — lists of rules
- `!#endif` — end of the block
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ Alternatively, you can use a [license key](../what-is#license-key) to activate t

![Activating a license *mobile_border](https://cdn.adtidy.org/blog/new/sbxttactivate-license.png)

Alternatively, you can tap *I have a license* on the following screen and activate your license with one of the above-mentioned methods.

![I have a license *mobile](https://cdn.adtidy.org/blog/new/fq28vi-have-a-license.png)

### Activating AdGuard for iOS

1. Tap *Settings*, then select *License*.
Expand Down
Loading

0 comments on commit 35dec0a

Please sign in to comment.