// ==UserScript== // @name Google翻译 Chrome强制夜间模式视觉修复 // @namespace https://www.baidu.com/ // @version 1.0.0 // @description 删除Google翻译的一个元素 使强制进入夜间模式功能开启后视觉效果更佳 // @author xfqwdsj // @match *://translate.google.com/* // @match *://translate.google.cn/* // @grant none // @home-url https://greasyfork.org/zh-CN/scripts/398025-google%E7%BF%BB%E8%AF%91-chrome%E5%BC%BA%E5%88%B6%E5%A4%9C%E9%97%B4%E6%A8%A1%E5%BC%8F%E8%A7%86%E8%A7%89%E4%BF%AE%E5%A4%8D // @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]) } } })();