//支持香港站 //如果需要其他地址适配 请在GreasyFork发表反馈 // ==UserScript== // @name Google翻译 Chrome强制夜间模式视觉修复 // @name:zh-CN Google翻译 Chrome强制夜间模式视觉修复 // @name:zh-TW Google翻譯 Chrome強制夜間模式視覺修復 // @name:en Google Translate: Chrome Force Night Mode Visual Fix // @namespace https://www.baidu.com/ // @version 1.0.5 // @description 删除Google翻译的一个元素 使强制进入夜间模式功能开启后视觉效果更佳 // @description:zh-CN 删除Google翻译的一个元素 使强制进入夜间模式功能开启后视觉效果更佳 // @description:zh-TW 刪除Google翻譯的一個元素 使強制進入夜間模式功能開啟後視覺效果更佳 // @description:en Remove an element of Google Translate to make the visual effect better when the forced night mode feature is turned on. // @author xfqwdsj // @match *://translate.google.*/* // @match *://translate.google.com.*/* // @grant none // @license MIT // @downloadURL none // ==/UserScript== (function() { 'use strict' var el=document.getElementsByClassName("ls-right-arrow") for(var i = 0; i < el.length; i++){ if (el[i] !== null){ el[i].parentNode.removeChild(el[i]) } } el=document.getElementsByClassName("sugg-fade") for(i = 0; i < el.length; i++){ if (el[i] !== null){ el[i].parentNode.removeChild(el[i]) } } el=document.getElementsByClassName("ls-right-arrow") for(i = 0; i < el.length; i++){ if (el[i] !== null){ el[i].parentNode.removeChild(el[i]) } } el=document.getElementsByClassName("sugg-fade") for(i = 0; i < el.length; i++){ if (el[i] !== null){ el[i].parentNode.removeChild(el[i]) } } })();