Skip to content

Instantly share code, notes, and snippets.

@ardell
Created August 21, 2014 23:39
Show Gist options
  • Save ardell/8256a67c918152d8a697 to your computer and use it in GitHub Desktop.
Save ardell/8256a67c918152d8a697 to your computer and use it in GitHub Desktop.
Add asterisks at 45 and 75 characters (for container sizing)
(function(){var script=document.createElement('script');script.src = "//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js";document.getElementsByTagName('head')[0].appendChild(script);jQuery.noConflict();jQuery('p').html(function(){var t=jQuery(this).text();return t.substring(0,45)+"*"+t.substring(45,75)+"*"+t.substring(75);})})()
@ardell
Copy link
Author

ardell commented Aug 21, 2014

Paste this into your javascript console to add asterisks at 45 and 75 characters on all paragraph tags.

Based on suggestion from Mattox Shuler's talk at Transform Athens: http://www.meetup.com/transform-athens/events/196452892/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment