<commit_before>[![Build Status](https://travis-ci.org/winious/TweetIt.svg?branch=master)](https://travis-ci.org/winious/TweetIt)

So I was thinking about how I always want to quote things I read on web pages and tweet them. I thought about creating a chrome extension for it. Then I saw this functionality was available in Medium and thought it would be a simple way to learn a little about chrome extensions before I tackle Chrome apps.

## Functionality
1. User should be able to install extension from chrome web store
2. I like how the tweet icon shows up when text is highlighted in Medium, so I'll try to replicate that feature
3. When user clicks the link, the tweet should be posted, either after they have authenticated with OAuth (Using web intents)
4. Quotes should be trimmed down to 100 chars with the quote attributed to the url of the page
5. if the quote is too long, it will be trimmed to 97 chars with ellipses 
6. The url will shortened (this is done automatically by twitter)

## Installation 
1. To install, clone this git repository using `git clone https://github.com/winious/TweetIt.git`
2. Then open a new chrome tab and type `chrome://extensions/`
3. Click on "Load unpacked extension" and select the folder that contains this code (the manifest.json file)

## Run Tests
1. Install gulp `npm install -g gulp`
2. Install node.js packages `npm install`
3. Run tests `npm test`

## Todo 
- [ ] Style the tooltip
- [ ] Allow users to disable the extension on a page (remember these settings)
- [x] Add tests
- [x] Add CI<commit_msg>Add demo page to readme<commit_after>[![Build Status](https://travis-ci.org/winious/TweetIt.svg?branch=master)](https://travis-ci.org/winious/TweetIt)

# Check out the demo
http://winious.github.io/TweetIt/

So I was thinking about how I always want to quote things I read on web pages and tweet them. I thought about creating a chrome extension for it. Then I saw this functionality was available in Medium and thought it would be a simple way to learn a little about chrome extensions before I tackle Chrome apps.

## Functionality
1. User should be able to install extension from chrome web store
2. I like how the tweet icon shows up when text is highlighted in Medium, so I'll try to replicate that feature
3. When user clicks the link, the tweet should be posted, either after they have authenticated with OAuth (Using web intents)
4. Quotes should be trimmed down to 100 chars with the quote attributed to the url of the page
5. if the quote is too long, it will be trimmed to 97 chars with ellipses 
6. The url will shortened (this is done automatically by twitter)

## Installation 
1. To install, clone this git repository using `git clone https://github.com/winious/TweetIt.git`
2. Then open a new chrome tab and type `chrome://extensions/`
3. Click on "Load unpacked extension" and select the folder that contains this code (the manifest.json file)

## Run Tests
1. Install gulp `npm install -g gulp`
2. Install node.js packages `npm install`
3. Run tests `npm test`

## Todo 
- [ ] Style the tooltip
- [ ] Allow users to disable the extension on a page (remember these settings)
{'fraction_non_alphanumeric': 0.06677265500794913, 'fraction_numerical': 0.010810810810810811, 'mean_word_length': 4.074193548387097, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5763394', 'n_tokens_mistral': 896, 'n_tokens_neox': 838, 'n_words': 488}