Skip to content

Instantly share code, notes, and snippets.

@nluqo
nluqo / Autumnify
Created Oct 4, 2013
Autumnify: a bookmarklet to color everything everywhere. Paste the code into a new bookmark in Chrome. Then hit it on pretty much any website. Also check out Autumn.js: https://github.com/nluqo/autumn
View Autumnify
javascript:function autumnify(){jQuery.getScript("//rawgithub.com/nluqo/autumn/master/autumn.js", function(){jQuery("*").autumn()});}if(!window.hasOwnProperty('jQuery')){var s = document.body.appendChild(document.createElement('script')); s.src = '//code.jquery.com/jquery-1.10.1.min.js';s.onload = autumnify;}else{autumnify();}
@nluqo
nluqo / gist:6819299
Last active Dec 24, 2015
Code used to autumnify CNN's topic headers. Try this in your JavaScript console on CNN. https://github.com/nluqo/autumn This code is waaaay more complicated than normal Autumn use (loading scripts and such), so please don't be put off by that.
View gist:6819299
function autumnify(){jQuery.getScript("//rawgithub.com/boronine/husl/v2.0.0/husl.js", function(){jQuery.getScript("//rawgithub.com/nluqo/autumn/master/autumn.js", function(){jQuery(".cnn_sectbincntnt2 h4").each(function(i,e){jQuery.fn.autumn.init({colorProfile:'dark'});var g = jQuery.fn.autumn.getGradientColors(i);jQuery(this).css({'background-image':'linear-gradient(to top, '+g[1]+','+g[0]+')'});});});});}if(!window.hasOwnProperty('jQuery')){var s = document.body.appendChild(document.createElement('script')); s.src = '//code.jquery.com/jquery-1.10.1.min.js';s.onload = autumnify;}else{autumnify();}