Google翻译 Chrome强制夜间模式视觉修复

删除Google翻译的一个元素 使强制进入夜间模式功能开启后视觉效果更佳

  1. //支持香港站
  2. //如果需要其他地址适配 请在GreasyFork发表反馈
  3. //The modified version code comes from:
  4. //https://gf.qytechs.cn/zh-CN/users/566425
  5. //https://gf.qytechs.cn/zh-CN/scripts/398025/discussions/51417
  6. //Thanks very much!
  7.  
  8. // ==UserScript==
  9. // @name Google翻译 Chrome强制夜间模式视觉修复
  10. // @name:zh-CN Google翻译 Chrome强制夜间模式视觉修复
  11. // @name:zh-TW Google翻譯 Chrome強制夜間模式視覺修復
  12. // @name:en Google Translate: Chrome Force Night Mode Visual Fix
  13. // @namespace https://www.baidu.com/
  14. // @version 1.0.8
  15. // @description 删除Google翻译的一个元素 使强制进入夜间模式功能开启后视觉效果更佳
  16. // @description:zh-CN 删除Google翻译的一个元素 使强制进入夜间模式功能开启后视觉效果更佳
  17. // @description:zh-TW 刪除Google翻譯的一個元素 使強制進入夜間模式功能開啟後視覺效果更佳
  18. // @description:en Remove an element of Google Translate to make the visual effect better when the forced night mode feature is turned on.
  19. // @author xfqwdsj
  20. // @match *://translate.google.com/*
  21. // @match *://translate.google.cn/*
  22. // @match *://translate.google.com.tw/*
  23. // @match *://translate.google.com.hk/*
  24. // @grant none
  25. // @license MIT
  26. // ==/UserScript==
  27.  
  28. (function (ca) { //remove by classes array
  29. var c, el;
  30. while (c=ca.shift()) {
  31. el=document.getElementsByClassName( c ); // el is live collection!
  32. while (el[0]) { // or upside down for(var i=el.length-1; i>-1; i--)...
  33. el[0].parentNode.removeChild(el[0]); // or el[0].remove()
  34. }
  35. }
  36. })( ["ls-right-arrow", "sugg-fade"] );

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址