{"id":1752,"date":"2010-02-20T01:45:45","date_gmt":"2010-02-20T08:45:45","guid":{"rendered":"http:\/\/www.bhagwad.com\/blog\/?p=1752"},"modified":"2010-10-09T02:12:00","modified_gmt":"2010-10-08T20:42:00","slug":"word-and-character-count-google-chrome-extension","status":"publish","type":"post","link":"https:\/\/www.bhagwad.com\/blog\/2010\/technology\/word-and-character-count-google-chrome-extension.html\/","title":{"rendered":"Word and Character Count &#8211; Google Chrome Extension"},"content":{"rendered":"<p><a href=\"https:\/\/chrome.google.com\/extensions\/detail\/kmndjoipobjfjbhocpoeejjimchnbjje\"><em><strong>Jump straight to the Extension!<\/strong><\/em><\/a><\/p>\n<p>Yesterday, I wrote my first Google Chrome extension. The feature that was really keeping me on Firefox all this while was the\u00a0<a href=\"http:\/\/www.bhagwad.com\/blog\/tag\/firefox-ubiquity\">Ubiquity add on<\/a>, and though it still works, Mozilla <a href=\"http:\/\/jonoscript.wordpress.com\/2010\/01\/19\/whats-up-with-ubiquity\/\">has decided to put a hold<\/a> on Ubiquity&#8217;s development.<\/p>\n<p>Without Ubiquity to hold me back, I succumbed to Google Chrome&#8217;s seductive minimalistic interface, blistering speed and overall smoothness. And since the <a href=\"https:\/\/chrome.google.com\/extensions\">Chrome Extension gallery<\/a> didn&#8217;t have an extension to count the words and characters in a selection, I decided to write one myself since it&#8217;s absolutely essential to me as a writer.<\/p>\n<p>This is the first time I&#8217;m writing an extension for a browser (I don&#8217;t count Ubiquity commands as extensions as such), and the results are pretty neat. It took me well over a day to figure out exactly what the architecture of an extension is and I almost lost my head trying to implement things like message passing, but I finally came through with the goods :)<\/p>\n<p>This is what the extension I wrote looks like &#8211; <a href=\"https:\/\/chrome.google.com\/extensions\/detail\/kmndjoipobjfjbhocpoeejjimchnbjje\">Word and Character Count<\/a>:<\/p>\n<figure id=\"attachment_1754\" aria-describedby=\"caption-attachment-1754\" style=\"width: 438px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2010\/02\/Word-and-Character-Count.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1754  \" title=\"Google Chrome Extension - Word and Character Count\" src=\"http:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2010\/02\/Word-and-Character-Count.jpg\" alt=\"Google Chrome Extension - Word and Character Count\" width=\"448\" height=\"232\" srcset=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2010\/02\/Word-and-Character-Count.jpg 1067w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2010\/02\/Word-and-Character-Count-300x155.jpg 300w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2010\/02\/Word-and-Character-Count-1024x529.jpg 1024w\" sizes=\"auto, (max-width: 448px) 100vw, 448px\" \/><\/a><figcaption id=\"caption-attachment-1754\" class=\"wp-caption-text\">Google Chrome Extension - Word and Character Count<\/figcaption><\/figure>\n<p>I&#8217;m not much of a designer, so the logo for my extension is just a big blue &#8220;W&#8221; and the output simply gives the number of words and characters &#8211; good enough for my needs. Initially it was just a word count extension and then two people were kind enough to use it and suggest that I include a character counter too &#8211; which I did promptly.<\/p>\n<p>So if you&#8217;re a writer using Google Chrome, be sure to install my humble contribution to the Google Chrome universe :D<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My first Google Chrome extension to count the number of words and characters in a selection<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,33,23],"tags":[],"class_list":["post-1752","post","type-post","status-publish","format-standard","hentry","category-nr","category-sa","category-technology"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Word and Character Count - Google Chrome Extension<\/title>\n<meta name=\"description\" content=\"My first Google Chrome extension to count the number of words and characters in a selection\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bhagwad.com\/blog\/2010\/technology\/word-and-character-count-google-chrome-extension.html\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Word and Character Count - Google Chrome Extension\" \/>\n<meta property=\"og:description\" content=\"My first Google Chrome extension to count the number of words and characters in a selection\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bhagwad.com\/blog\/2010\/technology\/word-and-character-count-google-chrome-extension.html\/\" \/>\n<meta property=\"og:site_name\" content=\"Expressions - Bhagwad Jal Park\" \/>\n<meta property=\"article:published_time\" content=\"2010-02-20T08:45:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2010-10-08T20:42:00+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2010\/02\/Word-and-Character-Count.jpg\" \/>\n<meta name=\"author\" content=\"bhagwad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bhagwad\" \/>\n<meta name=\"twitter:site\" content=\"@bhagwad\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"bhagwad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2010\\\/technology\\\/word-and-character-count-google-chrome-extension.html\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2010\\\/technology\\\/word-and-character-count-google-chrome-extension.html\\\/\"},\"author\":{\"name\":\"bhagwad\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/#\\\/schema\\\/person\\\/06c9c710885b810f1dfe3779fc346b23\"},\"headline\":\"Word and Character Count &#8211; Google Chrome Extension\",\"datePublished\":\"2010-02-20T08:45:45+00:00\",\"dateModified\":\"2010-10-08T20:42:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2010\\\/technology\\\/word-and-character-count-google-chrome-extension.html\\\/\"},\"wordCount\":298,\"commentCount\":38,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/#\\\/schema\\\/person\\\/06c9c710885b810f1dfe3779fc346b23\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2010\\\/technology\\\/word-and-character-count-google-chrome-extension.html\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/uploads\\\/2010\\\/02\\\/Word-and-Character-Count.jpg\",\"articleSection\":[\"NR\",\"SA\",\"Technology\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2010\\\/technology\\\/word-and-character-count-google-chrome-extension.html\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2010\\\/technology\\\/word-and-character-count-google-chrome-extension.html\\\/\",\"url\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2010\\\/technology\\\/word-and-character-count-google-chrome-extension.html\\\/\",\"name\":\"Word and Character Count - Google Chrome Extension\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2010\\\/technology\\\/word-and-character-count-google-chrome-extension.html\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2010\\\/technology\\\/word-and-character-count-google-chrome-extension.html\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/uploads\\\/2010\\\/02\\\/Word-and-Character-Count.jpg\",\"datePublished\":\"2010-02-20T08:45:45+00:00\",\"dateModified\":\"2010-10-08T20:42:00+00:00\",\"description\":\"My first Google Chrome extension to count the number of words and characters in a selection\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2010\\\/technology\\\/word-and-character-count-google-chrome-extension.html\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2010\\\/technology\\\/word-and-character-count-google-chrome-extension.html\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2010\\\/technology\\\/word-and-character-count-google-chrome-extension.html\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/uploads\\\/2010\\\/02\\\/Word-and-Character-Count.jpg\",\"contentUrl\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/uploads\\\/2010\\\/02\\\/Word-and-Character-Count.jpg\",\"width\":\"1067\",\"height\":\"552\",\"caption\":\"Google Chrome Extension - Word and Character Count\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2010\\\/technology\\\/word-and-character-count-google-chrome-extension.html\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Word and Character Count &#8211; Google Chrome Extension\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/\",\"name\":\"Expressions - Bhagwad Jal Park\",\"description\":\"My thoughts, haikus and freelance musings\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/#\\\/schema\\\/person\\\/06c9c710885b810f1dfe3779fc346b23\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/#\\\/schema\\\/person\\\/06c9c710885b810f1dfe3779fc346b23\",\"name\":\"bhagwad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1779900049\",\"url\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1779900049\",\"contentUrl\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1779900049\",\"caption\":\"bhagwad\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1779900049\"},\"sameAs\":[\"http:\\\/\\\/www.bhagwad.com\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Word and Character Count - Google Chrome Extension","description":"My first Google Chrome extension to count the number of words and characters in a selection","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bhagwad.com\/blog\/2010\/technology\/word-and-character-count-google-chrome-extension.html\/","og_locale":"en_US","og_type":"article","og_title":"Word and Character Count - Google Chrome Extension","og_description":"My first Google Chrome extension to count the number of words and characters in a selection","og_url":"https:\/\/www.bhagwad.com\/blog\/2010\/technology\/word-and-character-count-google-chrome-extension.html\/","og_site_name":"Expressions - Bhagwad Jal Park","article_published_time":"2010-02-20T08:45:45+00:00","article_modified_time":"2010-10-08T20:42:00+00:00","og_image":[{"url":"http:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2010\/02\/Word-and-Character-Count.jpg","type":"","width":"","height":""}],"author":"bhagwad","twitter_card":"summary_large_image","twitter_creator":"@bhagwad","twitter_site":"@bhagwad","twitter_misc":{"Written by":"bhagwad","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bhagwad.com\/blog\/2010\/technology\/word-and-character-count-google-chrome-extension.html\/#article","isPartOf":{"@id":"https:\/\/www.bhagwad.com\/blog\/2010\/technology\/word-and-character-count-google-chrome-extension.html\/"},"author":{"name":"bhagwad","@id":"https:\/\/www.bhagwad.com\/blog\/#\/schema\/person\/06c9c710885b810f1dfe3779fc346b23"},"headline":"Word and Character Count &#8211; Google Chrome Extension","datePublished":"2010-02-20T08:45:45+00:00","dateModified":"2010-10-08T20:42:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bhagwad.com\/blog\/2010\/technology\/word-and-character-count-google-chrome-extension.html\/"},"wordCount":298,"commentCount":38,"publisher":{"@id":"https:\/\/www.bhagwad.com\/blog\/#\/schema\/person\/06c9c710885b810f1dfe3779fc346b23"},"image":{"@id":"https:\/\/www.bhagwad.com\/blog\/2010\/technology\/word-and-character-count-google-chrome-extension.html\/#primaryimage"},"thumbnailUrl":"http:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2010\/02\/Word-and-Character-Count.jpg","articleSection":["NR","SA","Technology"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.bhagwad.com\/blog\/2010\/technology\/word-and-character-count-google-chrome-extension.html\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.bhagwad.com\/blog\/2010\/technology\/word-and-character-count-google-chrome-extension.html\/","url":"https:\/\/www.bhagwad.com\/blog\/2010\/technology\/word-and-character-count-google-chrome-extension.html\/","name":"Word and Character Count - Google Chrome Extension","isPartOf":{"@id":"https:\/\/www.bhagwad.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.bhagwad.com\/blog\/2010\/technology\/word-and-character-count-google-chrome-extension.html\/#primaryimage"},"image":{"@id":"https:\/\/www.bhagwad.com\/blog\/2010\/technology\/word-and-character-count-google-chrome-extension.html\/#primaryimage"},"thumbnailUrl":"http:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2010\/02\/Word-and-Character-Count.jpg","datePublished":"2010-02-20T08:45:45+00:00","dateModified":"2010-10-08T20:42:00+00:00","description":"My first Google Chrome extension to count the number of words and characters in a selection","breadcrumb":{"@id":"https:\/\/www.bhagwad.com\/blog\/2010\/technology\/word-and-character-count-google-chrome-extension.html\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bhagwad.com\/blog\/2010\/technology\/word-and-character-count-google-chrome-extension.html\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bhagwad.com\/blog\/2010\/technology\/word-and-character-count-google-chrome-extension.html\/#primaryimage","url":"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2010\/02\/Word-and-Character-Count.jpg","contentUrl":"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2010\/02\/Word-and-Character-Count.jpg","width":"1067","height":"552","caption":"Google Chrome Extension - Word and Character Count"},{"@type":"BreadcrumbList","@id":"https:\/\/www.bhagwad.com\/blog\/2010\/technology\/word-and-character-count-google-chrome-extension.html\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.bhagwad.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Word and Character Count &#8211; Google Chrome Extension"}]},{"@type":"WebSite","@id":"https:\/\/www.bhagwad.com\/blog\/#website","url":"https:\/\/www.bhagwad.com\/blog\/","name":"Expressions - Bhagwad Jal Park","description":"My thoughts, haikus and freelance musings","publisher":{"@id":"https:\/\/www.bhagwad.com\/blog\/#\/schema\/person\/06c9c710885b810f1dfe3779fc346b23"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bhagwad.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.bhagwad.com\/blog\/#\/schema\/person\/06c9c710885b810f1dfe3779fc346b23","name":"bhagwad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bhagwad.com\/blog\/wp-content\/litespeed\/avatar\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1779900049","url":"https:\/\/www.bhagwad.com\/blog\/wp-content\/litespeed\/avatar\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1779900049","contentUrl":"https:\/\/www.bhagwad.com\/blog\/wp-content\/litespeed\/avatar\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1779900049","caption":"bhagwad"},"logo":{"@id":"https:\/\/www.bhagwad.com\/blog\/wp-content\/litespeed\/avatar\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1779900049"},"sameAs":["http:\/\/www.bhagwad.com\/blog"]}]}},"_links":{"self":[{"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/posts\/1752","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/comments?post=1752"}],"version-history":[{"count":0,"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/posts\/1752\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/media?parent=1752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/categories?post=1752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/tags?post=1752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}