Skip to content

Instantly share code, notes, and snippets.

@viki53
Last active September 6, 2022 08:06
Show Gist options
  • Save viki53/5d0f45e5f7ff2f77a772cb1f5694f2dc to your computer and use it in GitHub Desktop.
Save viki53/5d0f45e5f7ff2f77a772cb1f5694f2dc to your computer and use it in GitHub Desktop.
LinkedIn distraction-free
/* ==UserStyle==
@name linkedin-no-distraction
@namespace linkedin.com
@description Remove most distractions on LinkedIn
@version 1.0.3
@author Corentin Hatte (https://www.github.com/viki53)
@homepageURL https://gist.github.com/viki53/5d0f45e5f7ff2f77a772cb1f5694f2dc
@updateURL https://gist.github.com/viki53/5d0f45e5f7ff2f77a772cb1f5694f2dc/raw/firefox-stylus.user.css
@preprocessor default
==/UserStyle== */
@-moz-document domain("linkedin.com") {
.global-nav__primary-items .global-nav__primary-item--divider,
.global-nav__primary-items .global-nav__primary-item--divider + * {
display: none !important;
}
.scaffold-layout__sidebar {
margin-top: 1rem;
}
.feed-outlet .scaffold-layout__main {
margin-top: 1rem;
}
.feed-outlet .scaffold-layout__main .feed-shared-update-v2 > * {
transition: all 180ms linear;
}
.feed-outlet .scaffold-layout__main .feed-shared-update-v2:not(:hover, :focus-within) > * {
filter: blur(5px) grayscale(1);
opacity: .2;
}
.premium-upsell-link,
.news-module,
.learning-top-courses,
.pv-course-recommendations {
display: none;
}
}
/* ==UserStyle==
@name linkedin-no-distraction
@namespace linkedin.com
@description Remove most distractions on LinkedIn
@match https://*.linkedin.com/*
@version 1.0.3
@author Corentin Hatte (https://www.github.com/viki53)
@homepageURL https://gist.github.com/viki53/5d0f45e5f7ff2f77a772cb1f5694f2dc
@updateURL https://gist.github.com/viki53/5d0f45e5f7ff2f77a772cb1f5694f2dc/raw/safari.userscripts.css
==/UserStyle== */
.global-nav__primary-items .global-nav__primary-item--divider,
.global-nav__primary-items .global-nav__primary-item--divider + * {
display: none !important;
}
.scaffold-layout__sidebar {
margin-top: 1rem;
}
.feed-outlet .scaffold-layout__main {
margin-top: 1rem;
}
.feed-outlet .scaffold-layout__main .feed-shared-update-v2 > * {
transition: all 180ms linear;
}
.feed-outlet .scaffold-layout__main .feed-shared-update-v2:not(:hover, :focus-within) > * {
filter: blur(5px) grayscale(1);
opacity: .2;
}
.premium-upsell-link,
.news-module,
.learning-top-courses,
.pv-course-recommendations {
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment