Skip to content

Instantly share code, notes, and snippets.

@zeratax
Last active October 16, 2018 21:08
Show Gist options
  • Save zeratax/b6080663520ff6501ab830686c3747ac to your computer and use it in GitHub Desktop.
Save zeratax/b6080663520ff6501ab830686c3747ac to your computer and use it in GitHub Desktop.
blurs twitter media by default unless you hover over it, for a more sfw twitter
// ==UserScript==
// @name twiblur
// @namespace [email protected]
// @version 0.2
// @description blur twitter images
// @author ZerataX
// @license Unlicense
// @match https://twitter.com/*
// @grant GM_addStyle
// @run-at document-start
// ==/UserScript==
GM_addStyle ( `
.AdaptiveMedia-container,
.PlayableMedia-reactWrapper,
.tcu-imageWrapper,
.QuoteMedia-photoContainer,
.QuoteMedia-videoPreview
{
filter: blur(20px) grayscale(10%);
transition: .3s all;
}
.AdaptiveMedia-container:hover,
.PlayableMedia-reactWrapper:hover,
.tcu-imageWrapper:hover,
.QuoteMedia-photoContainer:hover,
.QuoteMedia-videoPreview:hover
{
filter: blur(0px) grayscale(0%);
}
` );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment