Skip to content

Instantly share code, notes, and snippets.

@justdanpo
Created July 28, 2016 13:22
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 justdanpo/4bc0048bed63c755e191782da7674b01 to your computer and use it in GitHub Desktop.
Save justdanpo/4bc0048bed63c755e191782da7674b01 to your computer and use it in GitHub Desktop.
juick
// ==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