-
-
Save justdanpo/4bc0048bed63c755e191782da7674b01 to your computer and use it in GitHub Desktop.
juick
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 Juick Style | |
// @version 0.1 | |
// @description Juick Style (Blacklisters lowlighting) | |
// @include http://juick.com* | |
// @include https://juick.com* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
var dostyle = function(itm) { | |
var checkstyles = function(itm, parentnode, childselector, nodetolowlight) { | |
itm.querySelectorAll(parentnode) | |
.forEach(function(node) { | |
if (0 === node.querySelectorAll(childselector).length) | |
node.querySelectorAll(nodetolowlight).forEach(function(nodep) { | |
nodep.style.fontSize = "8pt"; | |
}); | |
}); | |
}; | |
checkstyles(itm, 'article', 'nav.l > a.a-comment', 'p'); | |
checkstyles(itm, 'div.msg-cont', 'div.msg-comment', 'div.msg-txt'); | |
}; | |
dostyle(document); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment