Skip to content

Instantly share code, notes, and snippets.

@TalkingQuickly
Created February 17, 2014 09:53
Show Gist options
  • Save TalkingQuickly/9047767 to your computer and use it in GitHub Desktop.
Save TalkingQuickly/9047767 to your computer and use it in GitHub Desktop.
Simple bookmarklet which allows you to indent bullet points in Basecamp
javascript:indentBasecamp = function() { var cac = $('iframe')[0].contentWindow.getSelection().getRangeAt(0).commonAncestorContainer; if (cac.tagName === "LI") { theNode = cac; } else { theNode = cac.parentNode }; theNode.insertAdjacentHTML('afterend', '<ul><li></li></ul>'); }; indentBasecamp();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment