All Projects → AdguardTeam → BrowserAssistant

AdguardTeam / BrowserAssistant

Licence: LGPL-3.0 License
AdGuard Browser Assistant

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to BrowserAssistant

AniMouto
Let an imouto improve your AniList experience.
Stars: ✭ 44 (+91.3%)
Mutual labels:  browser-extension
night-video-tuner
🎬 Browser extension that allows adjusting temperature and other properties of videos on Chrome and Firefox.
Stars: ✭ 19 (-17.39%)
Mutual labels:  browser-extension
stylish-hub
🍹 A browser extension that brings new GitHub features and experience.
Stars: ✭ 14 (-39.13%)
Mutual labels:  browser-extension
url-incrementer
A web extension for Chrome, Edge, and Firefox. Increment a URL or go to the next page. Supports auto incrementing and advanced toolkit functions like scraping URLs.
Stars: ✭ 27 (+17.39%)
Mutual labels:  browser-extension
copy-as-markdown
🖱 Browser extension to copy hyperlinks, images, and selected text as Markdown with GFM support
Stars: ✭ 137 (+495.65%)
Mutual labels:  browser-extension
StealthMode
No description or website provided.
Stars: ✭ 45 (+95.65%)
Mutual labels:  adguard
code-tours-github
A browser extension to allow to play Code Tours directly from the Browser.
Stars: ✭ 52 (+126.09%)
Mutual labels:  browser-extension
code-medium
Browser extension that simplifies writing code in Medium posts. Quickly create and edit Github Gists without leaving the editor
Stars: ✭ 59 (+156.52%)
Mutual labels:  browser-extension
http-indicator
Indicator for HTTP/2, QUIC and HTTP/3
Stars: ✭ 52 (+126.09%)
Mutual labels:  browser-extension
AdGuardHome magisk
去广告magisk模块,通过DNS层面过滤广告、防DNS劫持,本机流量数据或Wifi都支持,支持订阅过滤规则,可兼容VPN、免模块、翻模块、校园网、热点共享等特殊使用环境 。top大佬(酷安)
Stars: ✭ 34 (+47.83%)
Mutual labels:  adguard
urlfilter
AdGuard content blocking library in golang
Stars: ✭ 56 (+143.48%)
Mutual labels:  adguard
csgo-trader-extension
CSGO Trader Browser Extension to help with CS:GO item trading, marketing and much more
Stars: ✭ 86 (+273.91%)
Mutual labels:  browser-extension
youtube-video-quality
Watch YouTube in your preferred video quality
Stars: ✭ 37 (+60.87%)
Mutual labels:  browser-extension
AdGuardExtra
AdGuard Extra is designed to solve complicated cases when regular ad blocking rules aren't enough.
Stars: ✭ 120 (+421.74%)
Mutual labels:  adguard
additional-hosts
🛡 List of categorized undesired hosts
Stars: ✭ 13 (-43.48%)
Mutual labels:  adguard
youtube-audio
Disable videos on Youtube saves resource usage (Youtube becomes audio only)
Stars: ✭ 13 (-43.48%)
Mutual labels:  browser-extension
purple-pi
💜 LaTeX math wherever you want
Stars: ✭ 31 (+34.78%)
Mutual labels:  browser-extension
searchprovider-for-browser-tabs
Browser tab search provider for GNOME
Stars: ✭ 21 (-8.7%)
Mutual labels:  browser-extension
WebExtensions.Net
A package for consuming WebExtensions API in a browser extension.
Stars: ✭ 22 (-4.35%)
Mutual labels:  browser-extension
osmosmemo
Turn GitHub into a bookmark manager
Stars: ✭ 120 (+421.74%)
Mutual labels:  browser-extension

AdGuard Browser Assistant

AdGuard Browser Assistant extension: https://adguard.com/en/adguard-assistant/overview.html

This is a replacement for the legacy assistant userscript we were using before that.

Build

  • yarn clear - removes build and node modules directories
  • yarn install
  • yarn dev / yarn beta / yarn release

Builds will be located in the build directory.

Lint

  • yarn lint

Tests

  • yarn test

Localisation

  • setup your project locales, directories in the file tasks/locales.js
  • yarn locales:upload used to upload base en locale
  • yarn locales:download run to download and save all locales

CRX Beta and Release Builds

  • Put the repository with the certificate-beta.pem, certificate-release.pem files to the project root directory.
  • yarn crx:beta and yarn crx:release create web extension files for Chromium and Google Chrome browsers - build, zipped build, and update manifest XML document. You must have the certificate-beta.pem or certificate-release.pem to run the corresponding command.

XPI Builds

  • Put the repository with the mozilla_credentials.json file containing apiKey and apiSecret properties with the values of type string to the project root directory.
  • yarn xpi create web extension files for Mozilla Firefox browser - build, zipped build and update manifest JSON document. You must have the mozilla_credentials.json to run this commands

Artifacts

  • CREDENTIALS_PASSWORD=<password> yarn artifacts:beta
  • CREDENTIALS_PASSWORD=<password> yarn artifacts:release

Respectively creates Chrome and Firefox beta and release builds, zipped builds, documents for update and text file containing current version, signs the Firefox build.

How to debug without AdGuard application

  • Go to file src/background/api/index.js and read instructions

  • Whenever you need to change the API state, do it via the browser console from the background page (e.g., hostData.appState.isProtectionEnabled = false disables AdGuard protection).

  • Structure of the hostData

    result: 'ok',
    version: '7.3.2496',
    apiVersion: '3',
    isValidatedOnHost: true,
    reportUrl: 'https://reports.adguard.com/en/new_issue.html?url=http://example.org/',
    appState: {
        isRunning: true,
        isProtectionEnabled: true,
        isInstalled: true,
        isAuthorized: true,
        locale: 'ru',
    },
    currentFilteringState: {
        isFilteringEnabled: true,
        isHttpsFilteringEnabled: true,
        isPageFilteredByUserFilter: false,
        blockedAdsCount: 180,
        totalBlockedCount: 1234,
        originalCertIssuer: 'RapidSSL RSA CA',
        originalCertStatus: 'valid',
    },

Minimum supported browser versions

Browser Version
Chromium Based Browsers 55
Firefox 54
Opera 42
Edge 79

Permissions

  • Permission tabs allows to indicate the status of websites by changing the icon color
  • Permission activeTabs allows to inject script of adguard-assistant https://github.com/AdguardTeam/AdguardAssistant into the content page
  • Permission nativeMessaging allows to communicate with the native host

Acknowledgments

This software wouldn't have been possible without:

For a full list of all npm packages in use, please take a look at package.json file.

Testing Browser Assistant build

Preconditions

  • AdGuard installed and launched.
  • Browser Assistant build installed.

OSX instructions

Step 1:
  • In Browser Assistant extension settings copy extension ID
  • Paste it in devConfig.json file
    • for Chrome or Edge add to chrome_extension_id as array (see example below)
    • for Firefox add to firefox_extension_id as array (see example below)
  • Save file in AdGuard folder /Library/Application Support/com.adguard.mac.adguard/ or /Library/Application Support/com.adguard.mac.adguard.debug/ depends on build configuration
Step 2:
  • Open Terminal
  • Type cd /Library/Application\ Support/AdGuard\ Software/com.adguard.mac.adguard/
  • Type sudo chown root devConfig.json
  • Type sudo chmod 444 devConfig.json
  • Type your Mac password
  • Type ls -la /Library/Application\ Support/AdGuard\ Software/com.adguard.mac.adguard/
Result:
  • devConfig.json file received root rights
Step 3:
  • Restart AdGuard
  • Tap on the Browser Assistant icon in a browser

WINDOWS instructions

Step 1:
  • In Browser Assistant extension settings copy extension ID
  • Paste it in devConfig.json file
    • for Chrome or Edge add to chrome_extension_id as array (see example below)
    • for Firefox add to firefox_extension_id as array (see example below)
  • Save file in AdGuard folder C:\Program Files (x86)\Adguard
Step 2:
  • Restart AdGuard
  • Tap on the Browser Assistant icon in a browser

devConfig.json example

{
  "chrome_extension_id": [
    "biolhaiicomblcmahaljilbdppdnvyib",
    "dfkjnvdkfvkvdjfnkddksjsdjnfjfdfj"
  ],
  "firefox_extension_id": [
    "[email protected]"
  ]
}

in chrome_extension_id

  • biolhaiicomblcmahaljilbdppdnvyib is extension ID for Chrome
  • dfkjnvdkfvkvdjfnkddksjsdjnfjfdfj is extension ID for Edge
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].