Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pcouy/youtubeautotranslatecanceler
Provides a way to disable auto-translation on YouTube video titles
https://github.com/pcouy/youtubeautotranslatecanceler
Last synced: about 5 hours ago
JSON representation
Provides a way to disable auto-translation on YouTube video titles
- Host: GitHub
- URL: https://github.com/pcouy/youtubeautotranslatecanceler
- Owner: pcouy
- License: mit
- Created: 2018-11-15T09:37:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-18T15:39:25.000Z (over 1 year ago)
- Last Synced: 2023-08-23T21:06:22.327Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://greasyfork.org/en/scripts/374453-youtube-title-translate-reverser
- Size: 172 KB
- Stars: 72
- Watchers: 6
- Forks: 9
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
:warning: According to the [most recent user feedback on GreasyFork](https://greasyfork.org/en/scripts/374453-youtube-auto-translate-canceler/feedback), the script in this appears to no longer work. Since I no longer get auto-translated titles in my YouTube, I am not able to try and fix it or test pull requests. If you want to maintain a fork of this project, let me know so I can link to your repo here before archiving this one. :warning:
You can review [forks of this repo](https://github.com/pcouy/YoutubeAutotranslateCanceler/network) in hope that one of them still works (I would check [the most recently updated fork](https://github.com/overlimit/YoutubeAutotranslateCanceler) first)
# YoutubeAutotranslateCanceler
> An API Client may provide an option to translate a video title to other languages. However, the API Client must not add any such translations without the user's consent. In addition, if the API Client's default behavior is to enable the option to translate the video title, it must clearly present to the user an easy way to disable that behavior.
> -- From https://developers.google.com/youtube/terms/developer-policiesI was annoyed by YouTube changing video titles to poorly auto-translated versions, so I made this script using YouTube Data API to retrive original titles and change them back.
# How to use
First, you need a userscript extension, such as Tampermonkey for [Chrome](https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo) or [Firefox](https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/). Next, click [here](https://github.com/pcouy/YoutubeAutotranslateCanceler/raw/master/AntiTranslate.user.js) to install the userscript.
Unfortunately, this requires an API key to work. However, requests to this API are free.
### Instructions on how to get an API key
Detailed instructions and screenshots are provided below
##### TL;DR :
You can browse to [Google's official support](https://developers.google.com/youtube/v3/getting-started) in order to know how to get an API key.
Then, you need to enable Youtube Data API for this key in [Google Developers Console](https://console.developers.google.com/apis/api/youtube.googleapis.com/) and you're good to go.
When you first run the script, it prompts you for an API key until it manages to complete a successful request.Head to [Google Developers Console](https://console.developers.google.com/) and click "Select a project" (step 1).
![Step 1](https://github.com/pcouy/YoutubeAutotranslateCanceler/raw/master/howto_screenshots/step1.png)
* * *
Then, you need to create a new project (steps 2 and 3) which you can name as you want.
![Step 2](https://github.com/pcouy/YoutubeAutotranslateCanceler/raw/master/howto_screenshots/step2.png)
![Step 3](https://github.com/pcouy/YoutubeAutotranslateCanceler/raw/master/howto_screenshots/step3.png)
* * *
Once your project is created and active in your dashboard, you need to add APIs and services. To do that, just click on the link (step 4), then search for YouTube Data API and click "enable" (step 5).
![Step 4](https://github.com/pcouy/YoutubeAutotranslateCanceler/raw/master/howto_screenshots/step4.png)
![Step 5](https://github.com/pcouy/YoutubeAutotranslateCanceler/raw/master/howto_screenshots/step5.png)
* * *
It asks you to create credentials in order to use the API, just click "create credentials" (step 6), then "API key" in the next page (step 7).
![Step 6](https://github.com/pcouy/YoutubeAutotranslateCanceler/raw/master/howto_screenshots/step6.png "Step 6")
![Step 7](https://github.com/pcouy/YoutubeAutotranslateCanceler/raw/master/howto_screenshots/step7.png)
* * *
On the API key creation page, you need to set a name (step 8-1) and it is generally considered good practices to set application restrictions (step 8-2).
![Step 8](https://github.com/pcouy/YoutubeAutotranslateCanceler/raw/master/howto_screenshots/step8.png)
* * *
Don't click "create" yet (if you did, just click the pencil icon next to your newly created API key), select the "API restrictions" tab (step 8-3) then select "YouTube DATA API v3" (step 9-1) before clicking the "create" or "save" button (step 9-2).
![Step 9](https://github.com/pcouy/YoutubeAutotranslateCanceler/raw/master/howto_screenshots/step9.png)
* * *
You should be redirected to your credentials manager, from where you can copy your API key (step 10) in order to paste it when the script prompts you for it.
![Step 10](https://github.com/pcouy/YoutubeAutotranslateCanceler/raw/master/howto_screenshots/step10.png)