Skip to content

[EN] FAQ

Toil edited this page Sep 17, 2024 · 7 revisions

I don't have an extension button, what should I do?

  1. Check that the loader (Tampermonkey, etc.) and the extension itself are enabled
  2. Check that Tampermonkey does not ask you to enable Developer mode
  3. Check the console for errors
  4. Still not working? Create an Issue and describe in detail all the steps for playback, as well as do not forget to add console logs

How do I enable "Media CSP Bypass"? Or what should I do if the video doesn't have voice acting?

There may be several possible solutions to solve this problem:

  1. Bypass via the built-in Media CSP bypass mechanism

1.1. Go to any website supported by the script

1.2. Go to the script menu and go to settings

1.3. Activate the "Bypass MediaCSP" function (if the function is not available, you may have disabled the Web Audio API)

  1. Bypass through Tampermonkey

1.1. Enable the "Experienced" configuration mode in Tampermonkey

1.2. In the "Add TM to CSP Security Policy:" list, set the value to "Yes" (for some sites, you may need to set "Delete completely (unsafe)"

1.3. Click on the "Save" button

1.4. Reload the video page

  1. Use third-party browser extensions that completely remove CSP from the page

Is there any way to translate local videos?

No. Due to the fact that Yandex needs access to the video for translation, you cannot translate a local video unless you upload it to some video hosting service.

Is there any way to change the final voiceover? (change the voice, correct mistakes, etc.)

No. Voice acting takes place on Yandex servers and cannot be influenced in any way.

I have an idea about the extension, where can I say it?

Warning

Don't forget to check that there hasn't been such an offer yet.

You can write all your ideas about the extension in Issues.

How do I download a video with a translation?

A special console utility VOT-CLI has been created for this purpose

How to use the extension with FireMonkey?

  1. Install the FireMonkey extension
Installation

image

  1. Copy all the code from vot.user.js
Correct code copying

image

  1. Go to the FireMonkey settings (click on the extension icon -> Options)
  2. Go to the "Scripts and Styles" tab and add a new script
Adding a script

firefox_Ko9wwEyRuH

4.1. Go to the "Scripts and Styles" tab

4.2. Click on the button to create a new script

4.3. Insert the script code

  1. Add the rule // @inject-into page before the line starting with // @grant ...
Adding a rule

image

5.1. Find the line starting with // @grant ..., in our example it is // @grant GM_addStyle

5.2. Add the rule // @inject-into page before the found line

  1. Save the script using the combination "Ctrl + S" or using the "Save" button

How to use the extension with User JS and CSS?

  1. Install the User JS and CSS extension
Installation

image image

  1. Copy all the code from vot.user.js
Correct code copying

image

  1. Create a new rule and paste the copied code
Creating a new rule

image

3.1. Click create a new rule

3.2. We write the name of the rule - VOT

3.3. We set the URL pattern according to which the rule will work. The screenshot uses the https://*/* pattern to work on all sites, if this does not suit you, you can manually specify all the necessary sites separated by commas from lines starting with // @match, for example: *://*.youtube.com /*, *://*.youtube-nocookie.com /*

Example of a string starting with "// @match"

image

3.4. Paste the copied code

3.5. Click "Save" on the top right

  1. Create external modules for all scripts starting with `// @require'. Don't forget to add a polyfile for GM_info.
Creating external modules
Example of a string starting with "// @require"

Here,

The highlighted fragment is a link to the library.

The name of the library is Protobuf min.

image

image

4.1. Click on the "External modules" tab on the left

4.2. Click on the "Add new" button

4.3. Enter the name of the library (usually it is clear by the name of the file at the end of the link) and the link to the library itself

4.4. Click on the "Add" button

  • Note: Sometimes adding works crookedly and duplicates an existing script. Reloading the page will help fix this.

This must be done with all libraries from lines starting with //@require

4.5. Do not forget to add the "GM_info Polyfill" library, otherwise the extension will not work:

https://gist.githubusercontent.com/ilyhalight/94313e32c9e5efa791de82306c390d5f/raw/5d6b12792fdac55260afcaa393772b3103c4a500/gm-info-polyfill.js
An example of all the necessary libraries for the extension version 1.5.3.1
No. Name Link
1 Protobuf Min https://cdn.jsdelivr.net/npm/protobufjs/dist/light/protobuf.min.js
2 HLS Light https://cdn.jsdelivr.net/npm/hls.js/dist/hls.light.min.js
3 GM_addStyle polyfill https://gist.githubusercontent.com/ilyhalight/6eb5bb4dffc7ca9e3c57d6933e2452f3/raw/7ab38af2228d0bed13912e503bc8a9ee4b11828d/gm-addstyle-polyfill.js
4 GM_info polyfill https://gist.githubusercontent.com/ilyhalight/94313e32c9e5efa791de82306c390d5f/raw/5d6b12792fdac55260afcaa393772b3103c4a500/gm-info-polyfill.js
  1. Enable the added modules for the VOT rule
Enabling modules

image

  1. It's done. When updating the script, you will only need to update the rule code and download external modules (the "Download again" button appears when you click edit on the desired module).

I want to create and use my vot-worker, what should I do?

To deploy your vot-worker, we recommend that you familiarize yourself with the vot-worker repository. Detailed instructions are described in the corresponding folder inside the worker repository.

To change the worker's domain, open the extension menu on any site and enter the vot-worker address at the very bottom.