### Configure AdGuard CLI Source: https://github.com/adguardteam/knowledgebase/blob/master/docs/adguard-for-linux/installation.md Execute this command to start the configuration wizard for AdGuard CLI, which guides you through the initial setup questions. ```bash adguard-cli configure ``` -------------------------------- ### Check Installation Logs Source: https://github.com/adguardteam/knowledgebase/blob/master/i18n/fa/docusaurus-plugin-content-docs/current/adguard-for-windows/solving-problems/common-installer-errors.md Instructions for archiving AdGuard installation logs, which are necessary for support to diagnose complex installation problems. ```markdown Find and archive the **AdGuard installation logs** as it is described in [this article](../installation-logs). ``` -------------------------------- ### Install AdGuard userscript Source: https://github.com/adguardteam/knowledgebase/blob/master/i18n/fa/docusaurus-plugin-content-docs/current/adguard-for-linux/settings.md Installs a userscript from a provided URL. Use the `install` subcommand. ```sh adguard-cli userscripts install https://example.com/userscript.user.js ``` -------------------------------- ### Install AdGuard for Linux Source: https://context7.com/adguardteam/knowledgebase/llms.txt Installs the release version of AdGuard for Linux using a script from GitHub. This command downloads and executes the installation script. ```bash # Install AdGuard for Linux (release version) curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardCLI/release/install.sh | sh -s -- -v ``` -------------------------------- ### Install AdGuard for Linux (Beta) Source: https://github.com/adguardteam/knowledgebase/blob/master/docs/adguard-for-linux/installation.md Use this command to install the beta version of AdGuard for Linux. Ensure you have curl installed. ```bash curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardCLI/beta/install.sh | sh -s -- -v ``` -------------------------------- ### Collect AdGuard Installation Logs Source: https://github.com/adguardteam/knowledgebase/blob/master/i18n/da/docusaurus-plugin-content-docs/current/adguard-for-windows/solving-problems/common-installer-errors.md Instructions for archiving AdGuard installation logs, which are necessary for support to diagnose complex installation problems. ```bash # Refer to the linked article for specific commands or methods. ``` -------------------------------- ### AdGuard Automation Example with Password and Package Source: https://github.com/adguardteam/knowledgebase/blob/master/i18n/be/docusaurus-plugin-content-docs/current/adguard-for-android/solving-problems/tasker.md This example demonstrates how to include essential parameters like password, package name, and class for AdGuard automation. Remember to update the class name if using versions prior to v4.0. ```text start password:******* package name: com.adguard.android class: com.adguard.android.receiver.AutomationReceiver ``` -------------------------------- ### Unblock only GET requests to evil.com Source: https://github.com/adguardteam/knowledgebase/blob/master/i18n/be/docusaurus-plugin-content-docs/current/general/ad-filtering/create-own-filters.md The '@@' prefix indicates an unblocking rule. This example uses the $method modifier to unblock only GET requests to evil.com. ```plaintext @@||evil.com$method=get ``` -------------------------------- ### Example: Rules for All AdGuard Products Except Safari Source: https://github.com/adguardteam/knowledgebase/blob/master/docs/general/ad-filtering/create-own-filters.md This example demonstrates how to apply rules to all AdGuard products except for AdGuard for Safari, using a combination of the `adguard` constant and negation. ```adblock ! for all AdGuard products except AdGuard for Safari !#if (adguard && !adguard_ext_safari) ||example.org^$third-party domain.com##div.ad !#endif ``` -------------------------------- ### Attribute Substring Selector (Starts With) Source: https://github.com/adguardteam/knowledgebase/blob/master/i18n/be/docusaurus-plugin-content-docs/current/general/ad-filtering/create-own-filters.md Matches elements where an attribute value starts with a specific string. This example targets div elements whose class attribute begins with 'advert1'. ```css div[class^="advert1"] ``` -------------------------------- ### Install Project Dependencies Source: https://github.com/adguardteam/knowledgebase/blob/master/docs/adguard-browser-extension/solving-problems/debug-rules.md Install the necessary project dependencies using Yarn. This command downloads and sets up all required packages for building the extension. ```bash yarn install ``` -------------------------------- ### Configure AdGuard Updates via Registry (v7.16 and Earlier) Source: https://github.com/adguardteam/knowledgebase/blob/master/i18n/fi/docusaurus-plugin-content-docs/current/adguard-for-windows/admins-documentation.md For AdGuard versions v7.16 and earlier installed via MSI, set the 'AllowCheckUpdates' parameter to 'YES' (case-insensitive) in the registry to enable manual updates. This example targets x64 OS. ```powershell Set-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Adguard" -Name "AllowCheckUpdates" -Value "YES" ``` -------------------------------- ### HTML Example for XPath Source: https://github.com/adguardteam/knowledgebase/blob/master/i18n/bn/docusaurus-plugin-content-docs/current/general/ad-filtering/create-own-filters.md Demonstrates HTML structure for testing XPath selectors. ```html ``` ```html
``` -------------------------------- ### Install Local Dependencies with pnpm Source: https://github.com/adguardteam/knowledgebase/blob/master/README.md After cloning the repository, run this command in the terminal to install all necessary local dependencies using pnpm. ```bash pnpm install ``` -------------------------------- ### Multiple Domains with $domain Source: https://github.com/adguardteam/knowledgebase/blob/master/docs/general/ad-filtering/create-own-filters.md Shows how to apply a rule to requests originating from multiple specified domains, 'example.org' and 'example.com'. ```text ||baddomain.com^$domain=example.org|example.com ``` -------------------------------- ### Complete Example Userstyle Source: https://github.com/adguardteam/knowledgebase/blob/master/docs/general/extensions.md A comprehensive example of a userstyle including metadata, license, author, and a CSS rule targeting specific URLs using a regular expression. The @preprocessor default directive is used. ```CSS /* ==UserStyle== @name Example userstyle @namespace https://example.org/userstyle @homepageURL https://example.org/userstyle @version 1.0.0 @license Other @description This is an example @author example @preprocessor default ==/UserStyle== */ @-moz-document regexp("https?\:\/\/(www\.)?example\.(org|com).*") { body { background-color: #000000 !important; } } ``` -------------------------------- ### Collect AdGuard Installation Logs Source: https://github.com/adguardteam/knowledgebase/blob/master/i18n/be/docusaurus-plugin-content-docs/current/adguard-for-windows/solving-problems/common-installer-errors.md Instructions for archiving AdGuard installation logs, which are necessary for support to diagnose installation problems. ```powershell # This is a conceptual representation, actual steps involve GUI interaction and file archiving. # The specific command to archive logs depends on the archiving tool used. ```