Last active
August 29, 2015 14:12
-
-
Save lattenwald/6e78060ae7853e38ddd8 to your computer and use it in GitHub Desktop.
Lepra
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 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