CleanTranslate

Simplifies multiple translation websites.

当前为 2022-02-25 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

/* ==UserStyle==
@name            CleanTranslate
@namespace       https://github.com/TheLastZombie/
@version         1.1.2
@description     Simplifies multiple translation websites.
@homepageURL     https://thelastzombie.github.io/userstyles/
@supportURL      https://github.com/TheLastZombie/userstyles/issues/new?labels=CleanTranslate
@contributionURL https://ko-fi.com/rcrsch
@author          TheLastZombie <[email protected]>
@icon            https://raw.githubusercontent.com/TheLastZombie/userstyles/main/icons/CleanTranslate.png
@copyright       2021-2022, TheLastZombie (https://github.com/TheLastZombie/)
@license         MIT; https://github.com/TheLastZombie/userstyles/blob/main/LICENSE
@preprocessor    stylus
@var checkbox    dict "dict.cc support" 1
@var checkbox    leo  "LEO support"     1
==/UserStyle== */

@-moz-document domain("dict.cc") {
  if dict {
    .aftertable,
    .msg,
    .orangebar,
    .subnav,
    .td2:first-child,
    .td2:last-child,
    .td7cml,
    .td7cmr,
    [onclick="toggle_sc_search()"],
    [src="https://www4.dict.cc/img/hr4.gif"],
    [style="margin-left:1px;"],
    [style="margin-left:1px;height:22px"],
    [style="margin-top:-1px"],
    [style="padding:1px 10px"],
    [style="position:absolute; left:752px; top:138px; width:176px;"],
    [style="position:relative"],
    [style="width:722px; margin-left:1px; padding:22px 6px 0"],
    [style="width:728px; margin-left:1px"],
    [style="width:728px; padding:0px 1px"],
    [style="width:729px;"],
    [width="730"] tr:nth-child(1),
    [width="730"] tr:nth-child(2),
    #entertexthere,
    #inotherlangs,
    #langbar,
    #mi1,
    #shst {
      display: none;
    }
    form {
      min-width: max-content;
      margin-top: 24px !important;
    }
    form table {
      position: relative;
      right: 1px;
    }
    [valign="bottom"] {
      padding: 0;
      position: fixed;
    }
    #sinp {
      width: 626px !important;
    }
    .inp1,
    .inp2 {
      height: 28px;
    }
    #maincontent {
      margin-left: auto !important;
      margin-right: auto;
    }
    [width="730"] {
      margin-top: 50px !important;
    }
    [colspan="4"] {
      display: block;
      width: 728px;
      padding: 5px 0;
    }
  }
}

@-moz-document domain("leo.org") {
  if leo {
    .breadcrumb,
    .bs-1.m-bottom-large,
    .button-minimal-container,
    .l-www-header,
    .loadingbar,
    .m-top-large,
    .m-v-large,
    .more,
    .ta-c,
    .tab-item-centered,
    [data-dz-button-role="assistbutton"],
    [data-dz-role="searchbar-switchdict"],
    [data-dz-ui^="adv-"],
    [role="menubar"],
    #ffsyn,
    #footer,
    #footerWWW,
    #forumResults,
    #goto-mobile,
    #grammar,
    #mainContent:after,
    #right,
    #searchBoxContainerRight,
    #secondColumn,
    #sim,
    #switchSearchMode,
    #topBranding,
    #ui-id-1,
    td:not(.isRelinked) {
      display: none !important;
    }
    html {
      height: auto;
    }
    body {
      overflow-x: hidden;
      overflow-y: initial;
      max-width: none;
      min-width: 0;
    }
    [data-dz-ui="dictsearch"],
    #searchBar {
      background-color: transparent;
      box-shadow: none;
      margin-top: 29px;
    }
    #searchBar #searchContainer {
      top: 0 !important;
    }
    [name="searchForm"],
    #searchBar #searchContainer {
      width: 728px;
      position: fixed;
      left: 50%;
      transform: translateX(-50%);
    }
    #mainContent {
      background-image: none;
      position: absolute;
      top: 89px;
      left: 50%;
      transform: translateX(-50%);
      width: 728px;
    }
    .l-www-content {
      top: -28px !important;
    }
    .l-dict-content-main {
      left: 0;
    }
    #centerColumn {
      margin: 0;
      width: 728px;
    }
    col {
      width: 0 !important;
    }
    col:nth-child(1),
    col:nth-child(2) {
      width: initial !important;
    }
  }
}