Skip to content

Instantly share code, notes, and snippets.

@makruger
Created June 13, 2016 01:01
Show Gist options
  • Select an option

  • Save makruger/7c04c9bce294169fa3e6c0004883567b to your computer and use it in GitHub Desktop.

Select an option

Save makruger/7c04c9bce294169fa3e6c0004883567b to your computer and use it in GitHub Desktop.
javascript:(function(e,a,g,h,f,c,b,d)%7Bif(!(f%3De.jQuery)%7C%7Cg>f.fn.jquery%7C%7Ch(f))%7Bc%3Da.createElement("script")%3Bc.type%3D"text/javascript"%3Bc.src%3D"//ajax.googleapis.com/ajax/libs/jquery/"%2Bg%2B"/jquery.min.js"%3Bc.onload%3Dc.onreadystatechange%3Dfunction()%7Bif(!b%26%26(!(d%3Dthis.readyState)%7C%7Cd%3D%3D"loaded"%7C%7Cd%3D%3D"complete"))%7Bh((f%3De.jQuery).noConflict(1),b%3D1)%3Bf(c).remove()%7D%7D%3Ba.documentElement.childNodes%5B0%5D.appendChild(c)%7D%7D)(window,document,"1.3.2",function(%24,L)%7Bif(%24(".bootswatcher")%5B0%5D)%7B%24(".bootswatcher").remove()%7Delse%7Bvar %24e%3D%24(%27<select class%3D"bootswatcher"><option>Cerulean</option><option>Cosmo</option><option>Cyborg</option><option>Darkly</option><option>Flatly</option><option>Journal</option><option>Lumen</option><option>Paper</option><option>Readable</option><option>Sandstone</option><option>Simplex</option><option>Slate</option><option>Spacelab</option><option>Superhero</option><option>United</option><option>Yeti</option></select>%27)%3Bvar l%3D1%2BMath.floor(Math.random()*%24e.children().length)%3B%24e.css(%7B"z-index":"99999",position:"fixed",top:"5px",right:"5px",opacity:"0.5",color:"%23000"%7D).hover(function()%7B%24(this).css("opacity","1")%7D,function()%7B%24(this).css("opacity","0.5")%7D).change(function()%7Bif(!%24("link.bootswatcher")%5B0%5D)%7B%24("head").append(%27<link rel%3D"stylesheet" class%3D"bootswatcher">%27)%7D%24("link.bootswatcher").attr("href","//bootswatch.com/"%2B%24(this).find(":selected").text().toLowerCase()%2B"/bootstrap.min.css")%7D).find("option:nth-child("%2Bl%2B")").attr("selected","selected").end().trigger("change")%3B%24("body").append(%24e)%7D%3B%7D)%3B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment