---
title: TL;DR, a jQuery plugin for bloggers
date: 2013-12-30 08:00
slug: tl-dr-a-jquery-plugin-for-bloggers
categories:
- Code
tags:
- jquery
- javascript
- webdesign
- blogging
- plugin
- text
- reading
---

![](https://brettterpstra.com/uploads/2013/12/tldrbored.jpg)

I made a jQuery plugin called "TL;DR"[^def] [live on GitHub][tldr] last night. It's designed for bloggers who write long posts: it adds a block with summaries and skip links automatically. It was inspired in part by [QuikScan](http://www.quikscan.org/howtos.html), which was pointed out to me by Christopher Allen.

[^def]: "Too long, didn't read," but you knew that.

It's basically a table of contents with short snippets of text. There are a ton of options that can be configured (all detailed on the project page).

It scans headers and determines sections based on your settings, then it can summarize the text automatically, or you can provide snippets using a `data-tldr` attribute on your headlines. You can tell it how long to make auto-generated snippets, how many paragraphs to pull from and how many sentences deep it should go into each paragraph.

It can figure out where an intro ends and the post begins and insert the summary at that point, if you want. You can also have it collapse the summaries and apply an animated reveal-on-click. You can even control most of the markup and classes that it outputs, so styling it is relatively easy.

Check out the project page for more info. To see the experimental version in action on this site, go to the gear menu in the upper right and turn on "TL;DR." Then head to [a longer post](/2013/12/28/marked-2-dot-2-814/) and click the "TL;DR" block near the top[^future]. To see one with manually curated (and hastily created) summaries, check [this post](/2013/12/24/scripting-podcast-and-screencast-prep-on-a-mac/).

[Grab the plugin on GitHub.][tldr] I'll really only be updating it as needed for my own site, but I'm open to suggestions and pull requests. I kind of plan to add templating to it, and possibly an algorithm that can summarize longer texts without headlines. Maybe.

[tldr]: http://ttscoff.github.io/jquery-tldr/

[^future]: Moving forward I plan to add snippets and summaries to my posts manually, but what you're seeing on previous posts is the auto-generated summaries.

---

Brett is a writer and developer living in Minnesota, USA. You can follow him as ttscoff. This content is supported by readers like you. [More about Brett](https://brettterpstra.com/contact.md), including social links.

Copyright © 2026 Brett Terpstra. All rights reserved.
