Skip to content

Instantly share code, notes, and snippets.

@willnix
Created March 20, 2017 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willnix/7e553200010b4a403d630a01b587e6b6 to your computer and use it in GitHub Desktop.
Save willnix/7e553200010b4a403d630a01b587e6b6 to your computer and use it in GitHub Desktop.
BlurMa
// ==UserScript==
// @name BlurMa
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Blur latest Threema message preview
// @author Frieder Steinmetz
// @match https://web.threema.ch/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
addGlobalStyle('div.latest-message > * > span.message-text.ng-isolate-scope { filter: blur(4px)}');
addGlobalStyle('div.latest-message > * > span.message-text.ng-isolate-scope:hover { filter: none');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment