/AdguardAssistant

Adguard Assistant userscript

Primary LanguageJavaScript

AdguardAssistant

Adguard Assistant userscript

How to use

For development build run:

$ gulp dev

This will compile assistant.user.js file without minification.

For development build with watcher on file changes and debugging from local server:

$ gulp watch

This will open http://localhost:3000 in browser for debugging with extensions (e.g. Tampermonkey). Local server will serve from build directory. To apply the script, you must specify a script in the address like http://localhost:3000/assistant.user.js.

To run the task of downloading the localization files, put the .keys.json configuration file in the config directory.

The configuration file looks like:

{
    "url": "url of localizations",
    "project_id": "some id",
    "secret_key": "some key",
    "api_key": "some api key"
}

For security reasons, this file is ingored by .gitignore settings.

To download and append localizations run:

$ gulp locales

For production build run:

$ gulp build

This will compile assistant.user.js file with minification and uglify.