Deepl Interface cleanup

Remove ads and custumers quote.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name        Deepl Interface cleanup
// @namespace   Violentmonkey Scripts
// @match       https://www.deepl.com/translator
// @grant       none
// @version     0.4.1
// @author      Geekatori
// @license     GNU GPLv3
// @description Remove ads and custumers quote.
// ==/UserScript==
/*jshint esversion: 6 */

(function() {
  var css = `
    #lmt_pro_ad_container,
    #dl_quotes_container,
    #iosAppAdPortal,
    #headlessui-portal-root,
    .showSeoText .eSEOtericText {
      display: none;
    }
    .dl_translator_page_container {
      min-height: 1px;
    }
  `;

  if (typeof GM_addStyle != 'undefined') {
    GM_addStyle(css);
  } else if (typeof PRO_addStyle != 'undefined') {
    PRO_addStyle(css);
  } else if (typeof addStyle != 'undefined') {
    addStyle(css);
  } else {
    var node = document.createElement('style');
    node.type = 'text/css';
    node.appendChild(document.createTextNode(css));
    document.documentElement.appendChild(node);
  }
  
})();