Skip to content

Clean DeepL by 0ko

Imported from a private source

Mirrored from https://codeberg.org/0ko/UserStyles/raw/branch/main/DeepL/Clean/CleanDeepL.user.css

Screenshot of Clean DeepL

Details

Author0ko

LicenseMIT

Categorydeepl

Created

Updated

Size3.0 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Removes useless UI parts that don't affect the use of the service.

Notes

This isn't the first userstyle with this purpose on this platform, but at the time of creation others were not working good enough or at all due to lack of maintenance.


Changelog · License · Feedback

Source code

/* ==UserStyle==
@name          Clean DeepL
@author        0ko (https://userstyles.world/~0ko)
@description   Removes useless UI parts that don't affect the use of the service.
@version       2.2.5
@license       MIT
@preprocessor  stylus

@namespace     0ko userstyles
@homepageURL   https://codeberg.org/0ko/UserStyles
@supportURL    https://codeberg.org/0ko/UserStyles/issues

@var checkbox  noLogin  "No login button"          0
@var checkbox  noMenu   "No menu button"           0
@var checkbox  noUILang "No UI language selector"  0

==/UserStyle== */

imp = !important

@-moz-document domain("deepl.com")

	#dl_menu_logo
	[class*="Logo-module--logo--"]
	#dl_menu_write_simplified
	[class*="PageHeaderLink-module--pageHeaderLink--"]
	[class*="ProductNavigation-module--container--"] button[data-headlessui-state] .relative .absolute.rounded-lg.bg-red-500 /* red dot */
	[class*="ProductNavigationLinks-module--container--"] /* DeepL Pro / For Business / Why DeepL? - dupped in burger menu */
	[class*="SignupButton-module--container--"]
	[class*="StartFreeTrialButton-module--container--"]
	[class*="ProductUpdateButton-module--"]
	#resources-hub-button
	[aria-label*="Product updates"] /* Product updates (sorry: no multilanguage support. no other reliable way to hide) */
	[data-testid$="-extension-toast"] /* popup (chrome-extension-toast, firefox-extension-toast) */
	[data-testid="write-advertisement-banner"] /* popup */
	[aria-labelledby="text-translator-section-heading"] .bottom-0 .space-x-2 /* thumbs up/down */
	[data-testid="translator-target-toolbar-share-popup"]
	#dl_write_banner_container
	a[href^="/write"] span[class*="badge-module--proDark--"][class*="badge-module--tiny--"]
	a[class*="AppDownloadButton-module--appDownloadButton--"]
	[data-testid="write-promo-banner"]
	[data-testid="app_banner_content"]
	[class*="Quotes-module--quotes--"]
	[class*="CareerBanner-module--container--"]
	[class*="PopularLangPairList-module--seoText--"]
	[data-testid="dl-cookieBanner"] /* v1 for Write */
	[class*="cookieBanner-module--outer--"] /* v2 for Translator */
	[class*="footerContentContainer--"] /* links */
	[class*="socialMediaContainer--"] /* social links */
		display: none imp

	#dl_write_header_container /* Perfect your writing in seconds */
		visibility: hidden imp

	[class*="footerOuterContainer--"] /* reduce footer remainings */
		padding: 20px

	/* remove banner containers if possible */
	.w-full
	.p-8
		&:has([data-testid="write-promo-banner"])
		&:has([data-testid="app_banner_content"])
		&:has([class*="Quotes-module--quotes--"])
		&:has([class*="CareerBanner-module--container--"])
		&:has([class*="PopularLangPairList-module--seoText--"])
			display: none imp

	.bg-blue-next-100.justify-center:has(a[href^="/pro-write"])
		display: none imp

	if noLogin
		[class*="LoginButton-module--loginButton--"]
			display: none imp

	if noMenu
		[class*="SideMenuButton-module--menuButton--"]
			display: none imp

	if noUILang
		footer [class*="languageSelectorContainer"]
			display: none imp

Reviews

No reviews yet.