Reset Default Translation

Resets the language to auto because Google is always setting it to different unused languages

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

Advertisement:

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

Advertisement:

作者のサイトでサポートを受ける。または、このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         Reset Default Translation
// @namespace    https://greasyfork.org/users/21515
// @version      0.1.0
// @description  Resets the language to auto because Google is always setting it to different unused languages
// @author       CennoxX
// @homepage     https://github.com/CennoxX/userscripts
// @supportURL   https://github.com/CennoxX/userscripts/issues/new?title=[Reset%20Default%20Translation]%20
// @include      https://translate.google.tld/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=translate.google.de
// @grant        none
// @license      MIT
// ==/UserScript==
/* jshint esversion: 10 */
/* eslint quotes: ["warn", "double", "avoid-escape"]*/
/* eslint curly: "off" */

(function() {
    "use strict";
    var i = setInterval(()=>{
        var buttonSelection = "c-wiz c-wiz c-wiz button";
        var firstButton = document.querySelector(buttonSelection);
        var firstSelectedButton = document.querySelector(buttonSelection + "[aria-selected=true]");
        var firstUnselectedButton = document.querySelector(buttonSelection + "[aria-selected=false]");
        if (firstButton == firstUnselectedButton)
            firstUnselectedButton.click();
        if (firstButton == firstSelectedButton)
            clearInterval(i);
    },50);
})();