clean up deepl.com

Cleans up ads and menubars

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name              clean up deepl.com
// @author            jside
// @namespace         Cleans up ads and menubars
// @description       Cleans up ads and menubars
// @version           0.1.1
// @include           https://www.deepl.com/*
// @grant             GM_addStyle
// @grant             GM_log
// @run-at            document-start
// @supportURL        
// @note              Original by Hunlongyu (https://github.com/Hunlongyu, https://gist.github.com/Hunlongyu/2d7cc7db66b79831c3af23cc52a85845) edit by me
// ==/UserScript==

(function () {
  'use strict'
  let css = `
    .dl_header{display: none !important;}
    #dl_career_container{display: none !important;}
    .dl_translator_page_container {min-height: 130px !important;}
    #dl_cookieBanner{display: none !important;}
    .lmt__language_container_sec{display: none !important;}
    #lmt_pro_ad_container{display: none !important;}
    #dl_quotes_container{display: none !important;}
    .eSEOtericText{display: none !important;}
    .lmt__rating {display: none !important;}
    .lmt__target_toolbar__share_container{display: none !important;}
  `
  try {
    GM_addStyle(css)
  } catch (e) {
    GM_log(new Error('GM_addStyle stopped working!'))
  }
})()