Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A collection of small jQuery trinkets

branch: master
Octocat-spinner-32 ajaxsubmit
Octocat-spinner-32 anchorjump Anchorjump: prevent negatives.
Octocat-spinner-32 autoexpand Autoexpand: another fix for Turbolinks.
Octocat-spinner-32 buttonloading Add more stuff.
Octocat-spinner-32 console-shim Console shim: simplify the code.
Octocat-spinner-32 cycler Cycler: Fix autostart.
Octocat-spinner-32 ellipsify Update ellipsify.
Octocat-spinner-32 ensurevisible Ensurevisible: allow offsets.
Octocat-spinner-32 fadeonload Fadeonload: fix more edge cases with the reload and back buttons.
Octocat-spinner-32 fillsize Fillsize: account for container paddings.
Octocat-spinner-32 growl Update comments in growl/unorphan.
Octocat-spinner-32 hidpi Hidpi: use this instead of window.
Octocat-spinner-32 instance JSHint.
Octocat-spinner-32 livenavigate JSHint.
Octocat-spinner-32 mailcheckhint Mailcheckhint: update doc comments.
Octocat-spinner-32 micro_amd Microalmond.
Octocat-spinner-32 nomobilescroll Update nomobilescroll.
Octocat-spinner-32 placeholder_polyfill Placeholder polyfill.
Octocat-spinner-32 preventoverscroll JSHint.
Octocat-spinner-32 pseudoinput Pseudoinput: update to use delegates.
Octocat-spinner-32 scrollagent Scrollagent: add support for data-anchor-offset.
Octocat-spinner-32 scrollmonitor
Octocat-spinner-32 scrollstick Scrollstick: add support for parent.
Octocat-spinner-32 scrope Initial.
Octocat-spinner-32 selecttrap Selecttrap: fix hover states.
Octocat-spinner-32 size_responder
Octocat-spinner-32 smartquotes Update smartquotes to fix code/pre issue.
Octocat-spinner-32 sort
Octocat-spinner-32 tabs JShint.
Octocat-spinner-32 test Selecttrap: inherit classes, and allow blank values.
Octocat-spinner-32 timer JSHint and formatting.
Octocat-spinner-32 toggleable Toggleable: refactor with new syntax.
Octocat-spinner-32 uiscreen Add more stuff.
Octocat-spinner-32 unorphan Unorphan: don't unorphan single words.
Octocat-spinner-32 .gitignore Tests.
Octocat-spinner-32 README.textile fix broken links
Octocat-spinner-32 package.json Tests.

jQuery stuff

A grabbag of plugins I’ve written over the years

This is a humble repository of jQuery plugins that I’ve written for our projects. These are usually small plugins (<75 sloc).

If you’re to use any of these, I encourage you to just drop it into your project and maintain it yourself—I can’t claim maintain these in a backward-compatible manner.

These plugins make great ‘starting points’ for whatever you’ll need. Take them and modify them (or not) as you see fit.


These things are often basic features that most sites/webapps I work on need.

Anchorjump Make anchor links scroll smoothly
Autoexpand Makes text fields auto-size its height
ButtonLoading Show ‘loading…’ text on buttons
Console Shim * Makes `console.log()` silently fail if the browser doesn’t support it
Growl Lightweight notification library
MailcheckHint Simple one-shot integration with Kicksend Mailcheck
Scrollagent Simple scrollspy implementation
Tabs Simple tab control
Toggleable Simple toggle menu helper
UIScreen Blacks out things
Unorphan Prevents text orphans

Quite useful

Still very useful in a lot of common cases, but not as common as the ones above.

Ajax Submit Submits a form via AJAX instead of a page load
Cycler * Cycles through a list (lightweight carousel/slideshow)
Ellipsify Truncates text with ellipses
Ensurevisible Scrolls a pane to reveal a given item
Fadeonload Fades images in on load
HiDPI Automatically uses 2x images for retina displays in images
NoMobileScroll Prevent document body scrolling on iOS apps
Prevent Overscroll Stop pages from scrolling when scrolling through a panel
Pseudoinput Highlight the container of inputs when they’re focused
Scrollstick Makes elements stick to the top when it’s outside the scroll viewport
Smartquotes Translates plain ASCII punctuation into typographic punctuation

Niche uses

Useful in some rarer cases.

SizeResponder Performs callbacks when the browser is resized to/from a given range
Fillsize Makes an element fill up its container
Sort Sorts DOM elements
Timer * General-purpose wrapper for setTimeout

Kinda deprecated / obsolete

I don’t find myself using these often anymore. Or, at all. But they work!

Livenavigate In-page navigation that doesn’t break the back button and actually changes the URL
Instance Lightweight views

* = no dependency on jQuery

Something went wrong with that request. Please try again.