GithubHelp home page GithubHelp logo

adriaan1313 / youtubeautotranslatecanceler Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 1.0 230 KB

Provides a way to disable auto-translation on YouTube video titles

Home Page: https://greasyfork.org/en/scripts/374453-youtube-title-translate-reverser

License: MIT License

JavaScript 100.00%

youtubeautotranslatecanceler's Introduction

Notes exclusive to my fork

  • You can expect this to be updated, but only if I got impacted by any changes. Can't fix what I can't see after all.
  • If console logs say something about failing to parse URLs that look like google ads URLs, or if you see the code trying to do that while debugging, add this filter to uBlock: www.youtube.com##a[href*="https://www.googleadservices.com"]
  • There are some issues where video titles got mixed up but fixing that means I need to fully read the source code. Might get to it one day, but not in the near future.

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-policies

I 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 or Firefox. Next, click here 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 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 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 and click "Select a project" (step 1).

Step 1


Then, you need to create a new project (steps 2 and 3) which you can name as you want.

Step 2

Step 3


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

Step 5


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

Step 7


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


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


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

youtubeautotranslatecanceler's People

Contributors

pcouy avatar seneral avatar adriaan1313 avatar icetdrinker avatar natoboram avatar knoxfighter avatar

Stargazers

sus? me? avatar Matthi avatar

Forkers

kokon191

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.