News for hackers. Stuff that matters.
Re:FreedomBox Version 0.1 Released by zaius on Wednesday February 27, 2013 @11:53PM (#5297058)
Paste this in the js console to make the page (slightly more) readable

    var getScript = function(url, success) {
      var script = document.createElement('script');
      script.src = url;
      script.onload = success;
      var head = document.getElementsByTagName('head')[0];
      head.appendChild(script);
    };

    getScript("//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js", function() {
      var wrap = function(html, tag) {
        var parts = html.split('\n')
        var out = '<' + tag + '>' + parts[0] + '</' + tag + '>';
        out += parts.slice(1).join(' ');
        return out;
      }

      jQuery('#content li li').html(function(i, html) { return wrap(html, 'h4'); });
      jQuery('#content ul > li').html(function(i, html) { return wrap(html, 'h2'); });
      jQuery('li').css('margin-bottom', 3);
      jQuery('body').css('line-height', 1.5);
    });

There are no comments on this comment yet.