<commit_before># ACRExtensions

Amazon Cloud Reader extensions

## Copy Bookmarklet

It will make an extra Copy button in addition to Highlight and Note that will prompt the selected text so the user can easily copy it.

In your browser do an "Add bookmark" action on the Bookmarks Bar and enter "ACRExtensions Copy" for the name and the code below for the url:

    javascript:(function(){var a=null;var c=null;if(typeof window.KindleReaderContextMenu!=="undefined"){a=window}else{if(window.length){for(var d=0;d<window.length;d++){if(typeof window[d].KindleReaderContextMenu!=="undefined"){a=window[d];break}}}}if(typeof a==="object"){var b=a.KindleReaderContextMenu;if(typeof b.ACRExtensions==="undefined"){b.ACRExtensions=true;var e=b.show;b.show=function(){var i=e.apply(b,arguments);if(typeof(arguments[3])!=="undefined"&&typeof(arguments[3]["start"])!=="undefined"){var g=arguments[3].start;var h=arguments[3].end;var m={};c=$("iframe",document).first().contents();$("iframe",c).each(function(p,o){for(var n=g;n<=h;n++){$("#"+n,$(o).contents()).each(function(q,r){m[n]=$(r).text()})}});var k="";for(var j in m){k+=" "+m[j]}}$("#ACRExtensions_copyB_sep",c).remove();$("#ACRExtensions_copyB",c).remove();var f=$('<div id="ACRExtensions_copyB_sep" class="kindle_menu_separator"></div>');var l=$('<div id="ACRExtensions_copyB" class="kindle_menu_button button_enabled ui-corner-left">Copy</div>');$("#kindle_menu_border",c).append(f).append(l);$("#ACRExtensions_copyB",c).click(function(n){a.prompt("Selection:",k)});return i};alert("ACRExtensions Copy is now active.")}else{alert("ACRExtensions Copy is already active.")}}else{alert("Error: ACRExtensions Copy is not active. Te Amazon Cloud Reader window could not be found.")}})()
<commit_msg>Mod Copy Bookmarket info in the README<commit_after># ACRExtensions

Amazon Cloud Reader extensions

## Copy Bookmarklet

This bookmarklet adds ebables you to copy the text yu select in the Amazon Cloud Reader browser app.

It will make an extra Copy button in addition to Highlight and Note that will prompt the selected text so the user can easily copy it.

In your browser do an "Add bookmark" action on the Bookmarks Bar and enter "ACRExtensions Copy" for the name and the code below for the url:

    javascript:(function(){var a=null;var c=null;if(typeof window.KindleReaderContextMenu!=="undefined"){a=window}else{if(window.length){for(var d=0;d<window.length;d++){if(typeof window[d].KindleReaderContextMenu!=="undefined"){a=window[d];break}}}}if(typeof a==="object"){var b=a.KindleReaderContextMenu;if(typeof b.ACRExtensions==="undefined"){b.ACRExtensions=true;var e=b.show;b.show=function(){var i=e.apply(b,arguments);if(typeof(arguments[3])!=="undefined"&&typeof(arguments[3]["start"])!=="undefined"){var g=arguments[3].start;var h=arguments[3].end;var m={};c=$("iframe",document).first().contents();$("iframe",c).each(function(p,o){for(var n=g;n<=h;n++){$("#"+n,$(o).contents()).each(function(q,r){m[n]=$(r).text()})}});var k="";for(var j in m){k+=" "+m[j]}}$("#ACRExtensions_copyB_sep",c).remove();$("#ACRExtensions_copyB",c).remove();var f=$('<div id="ACRExtensions_copyB_sep" class="kindle_menu_separator"></div>');var l=$('<div id="ACRExtensions_copyB" class="kindle_menu_button button_enabled ui-corner-left">Copy</div>');$("#kindle_menu_border",c).append(f).append(l);$("#ACRExtensions_copyB",c).click(function(n){a.prompt("Selection:",k)});return i};alert("ACRExtensions Copy is now active.")}else{alert("ACRExtensions Copy is already active.")}}else{alert("Error: ACRExtensions Copy is not active. Te Amazon Cloud Reader window could not be found.")}})()

Once you have the bookmarklet set up you just need to click on it once right after the Amazon Cloud Read app is loaded.

{'fraction_non_alphanumeric': 0.1907051282051282, 'fraction_numerical': 0.002670940170940171, 'mean_word_length': 9.373961218836564, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 11, 'https://': 0, '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': '3559437', 'n_tokens_mistral': 1250, 'n_tokens_neox': 1194, 'n_words': 270}