Greasy Fork镜像 支持简体中文。

百度翻译精简

去除百度翻译无用内容,保留主要翻译功能。

目前為 2022-09-14 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name 百度翻译精简
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description 去除百度翻译无用内容,保留主要翻译功能。
  6. // @author Loyal-Wind
  7. // @match https://fanyi.baidu.com/
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=baidu.com
  9. // @grant GM_addStyle
  10. // @run-at document-start
  11. // ==/UserScript==
  12.  
  13. (function () {
  14. 'use strict'
  15.  
  16. const website = [
  17. {
  18. name: 'baidu',
  19. css: `
  20. .icon-collect, .navigation-wrapper, .domain-trans-wrapper, .header, .footer, .trans-other-right, .manual-trans-btn{display: none !important;}
  21. `
  22. }
  23. ]
  24. let url = window.location.href
  25. for (let i = 0; i < website.length; i++) {
  26. if (url.indexOf(website[i].name) !== -1) {
  27. return GM_addStyle(website[i].css)
  28. }
  29. }
  30. })()

QingJ © 2025

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