<commit_before># bookmarklet-to-chrome-extension-boilerplate

Boilerplate to port your bookmarklet to become a Chrome extension

Simply copy your bookmarklet code into `bookmarklet-code.js` and test it localy, update the metadata and you're ready to pack it.

In order to publish your extension follow the steps [here](https://developer.chrome.com/webstore/publish).


## Test the chrome extension localy

The introductory documentation is from the [Chrome website](https://developer.chrome.com/extensions/getstarted#unpacked):

> Extensions that you download from the Chrome Web Store are packaged up as .crx files, which is great for distribution, but not so great for development. Recognizing this, Chrome gives you a quick way of loading up your working directory for testing. Let's do that now.

> Visit [chrome://extensions](chrome://extensions) in your browser (or open up the Chrome menu by clicking the icon to the far right of the Omnibox:  The menu's icon is three horizontal bars. and select Extensions under the Tools menu to get to the same place).<commit_msg>typo fixed<commit_after># bookmarklet-to-chrome-extension-boilerplate

Boilerplate to port your bookmarklet to a Chrome extension

Simply copy your bookmarklet code into `bookmarklet-code.js` and test it localy, update the metadata and you're ready to pack it.

In order to publish your extension follow the steps [here](https://developer.chrome.com/webstore/publish).


## Test the chrome extension localy

The introductory documentation is from the [Chrome website](https://developer.chrome.com/extensions/getstarted#unpacked):

> Extensions that you download from the Chrome Web Store are packaged up as .crx files, which is great for distribution, but not so great for development. Recognizing this, Chrome gives you a quick way of loading up your working directory for testing. Let's do that now.

> Visit [chrome://extensions](chrome://extensions) in your browser (or open up the Chrome menu by clicking the icon to the far right of the Omnibox:  The menu's icon is three horizontal bars. and select Extensions under the Tools menu to get to the same place).
{'fraction_non_alphanumeric': 0.06361085126286249, 'fraction_numerical': 0.0, 'mean_word_length': 4.796747967479675, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2157097', 'n_tokens_mistral': 556, 'n_tokens_neox': 529, 'n_words': 285}