Skip to content

Instantly share code, notes, and snippets.

@skmp
Last active December 31, 2015 05:49
Show Gist options
  • Save skmp/7943288 to your computer and use it in GitHub Desktop.
Save skmp/7943288 to your computer and use it in GitHub Desktop.
Summaries by using my fork of textteaser!
// Open the debug tools
// load the function using
// This requires the target site to have jquery loaded as $
$('<script src="https://rawgithub.com/skmp/textteaser/master/tease.js"></script>').appendTo('body');
//Use directly from console
//(replace with proper selectors for your page)
tease($('.title-selector').text(), $('.content-selector').text())
<!-- Load after jquery -->
<script src="https://rawgithub.com/skmp/textteaser/master/tease.js"></script>
<!-- .... -->
<script>
tease($('.title-selector').text(), $('.content-selector').text())
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment