Created
March 20, 2017 13:59
-
-
Save willnix/7e553200010b4a403d630a01b587e6b6 to your computer and use it in GitHub Desktop.
BlurMa
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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