您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Resets the language to auto because Google is always setting it to different unused languages
// ==UserScript== // @name Reset Default Translation // @namespace https://gf.qytechs.cn/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); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址