Skip to content

Instantly share code, notes, and snippets.

@lattenwald
Last active August 29, 2015 14:12
Show Gist options
  • Save lattenwald/6e78060ae7853e38ddd8 to your computer and use it in GitHub Desktop.
Save lattenwald/6e78060ae7853e38ddd8 to your computer and use it in GitHub Desktop.
Lepra
// ==UserScript==
// @name Lepra
// @namespace q.alexander.feedly.shorpy
// @version 0.2
// @description Miscellaneous improvements
// @match http://leprosorium.ru/*
// @match http://*.leprosorium.ru/*
// @match https://leprosorium.ru/*
// @match https://*.leprosorium.ru/*
// @copyright 2014+, Alexaner Q
// @grant none
// ==/UserScript==
(function() {
console.log('yo');
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
console.log('styles');
style.innerHTML =
'.post img {opacity: 0.1;} .post:hover img {opacity: 1;}';
head.appendChild(style);
console.log('styles added');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment