{"id":721,"date":"2009-07-21T20:07:52","date_gmt":"2009-07-22T03:07:52","guid":{"rendered":"http:\/\/bhagwad.com\/blog\/?p=721"},"modified":"2010-10-09T02:12:02","modified_gmt":"2010-10-08T20:42:02","slug":"firefox-ubiquity-character-count-command","status":"publish","type":"post","link":"https:\/\/www.bhagwad.com\/blog\/2009\/technology\/firefox-ubiquity-character-count-command.html\/","title":{"rendered":"Firefox Ubiquity &#8211; Character Count Command"},"content":{"rendered":"<link rel=\"commands\" href=\"http:\/\/www.bhagwad.com\/Ubiquity\/charcount.js\" name=\"char-count\" \/>\n<p style=\"text-align: justify;\">Now that Ubiquity 0.5 is out, <a href=\"http:\/\/www.eriksmartt.com\/blog\/archives\/547\">Erik&#8217;s Character Count Command<\/a> no longer works. So I have updated it and if you have Ubiquity Firefox, the command bar should have appeared on top for you. Here is the code:<br \/>\n<code><br \/>\nCmdUtils.CreateCommand({<br \/>\nnames: ['char-count'],<br \/>\narguments: [ {role: 'object', nountype: noun_arb_text, label: 'text to count chars in'}],<br \/>\npreview: function( pblock, args ) {<br \/>\n\/\/pblock.innerHTML = argText.object.length;<br \/>\npblock.innerHTML = \"The number of characters is: \"+ args.object.text.length;<br \/>\n}<br \/>\n});<\/code><\/p>\n<p style=\"text-align: justify;\">Hope you found it useful!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now that Ubiquity 0.5 is out, Erik&#8217;s Character Count Command no longer works. So I have updated it and if you have Ubiquity Firefox, the command bar should have appeared on top for you. Here is the code: CmdUtils.CreateCommand({ names: [&#8216;char-count&#8217;], arguments: [ {role: &#8216;object&#8217;, nountype: noun_arb_text, label: &#8216;text to count chars in&#8217;}], preview: function( &#8230; <a title=\"Firefox Ubiquity &#8211; Character Count Command\" class=\"read-more\" href=\"https:\/\/www.bhagwad.com\/blog\/2009\/technology\/firefox-ubiquity-character-count-command.html\/\" aria-label=\"Read more about Firefox Ubiquity &#8211; Character Count Command\">Read more<\/a><\/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":[6],"class_list":["post-721","post","type-post","status-publish","format-standard","hentry","category-nr","category-sa","category-technology","tag-firefox-ubiquity"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Firefox Ubiquity - Character Count Command<\/title>\n<meta name=\"description\" content=\"Counts the characters in a selection using Firefox&#039;s Ubiquity 0.5 add on\" \/>\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\/2009\/technology\/firefox-ubiquity-character-count-command.html\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Firefox Ubiquity - Character Count Command\" \/>\n<meta property=\"og:description\" content=\"Counts the characters in a selection using Firefox&#039;s Ubiquity 0.5 add on\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bhagwad.com\/blog\/2009\/technology\/firefox-ubiquity-character-count-command.html\/\" \/>\n<meta property=\"og:site_name\" content=\"Expressions - Bhagwad Jal Park\" \/>\n<meta property=\"article:published_time\" content=\"2009-07-22T03:07:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2010-10-08T20:42:02+00:00\" \/>\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<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2009\\\/technology\\\/firefox-ubiquity-character-count-command.html\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2009\\\/technology\\\/firefox-ubiquity-character-count-command.html\\\/\"},\"author\":{\"name\":\"bhagwad\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/#\\\/schema\\\/person\\\/06c9c710885b810f1dfe3779fc346b23\"},\"headline\":\"Firefox Ubiquity &#8211; Character Count Command\",\"datePublished\":\"2009-07-22T03:07:52+00:00\",\"dateModified\":\"2010-10-08T20:42:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2009\\\/technology\\\/firefox-ubiquity-character-count-command.html\\\/\"},\"wordCount\":49,\"commentCount\":8,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/#\\\/schema\\\/person\\\/06c9c710885b810f1dfe3779fc346b23\"},\"keywords\":[\"Firefox Ubiquity\"],\"articleSection\":[\"NR\",\"SA\",\"Technology\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2009\\\/technology\\\/firefox-ubiquity-character-count-command.html\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2009\\\/technology\\\/firefox-ubiquity-character-count-command.html\\\/\",\"url\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2009\\\/technology\\\/firefox-ubiquity-character-count-command.html\\\/\",\"name\":\"Firefox Ubiquity - Character Count Command\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/#website\"},\"datePublished\":\"2009-07-22T03:07:52+00:00\",\"dateModified\":\"2010-10-08T20:42:02+00:00\",\"description\":\"Counts the characters in a selection using Firefox's Ubiquity 0.5 add on\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2009\\\/technology\\\/firefox-ubiquity-character-count-command.html\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2009\\\/technology\\\/firefox-ubiquity-character-count-command.html\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2009\\\/technology\\\/firefox-ubiquity-character-count-command.html\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Firefox Ubiquity &#8211; Character Count Command\"}]},{\"@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=1776875508\",\"url\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1776875508\",\"contentUrl\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1776875508\",\"caption\":\"bhagwad\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1776875508\"},\"sameAs\":[\"http:\\\/\\\/www.bhagwad.com\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Firefox Ubiquity - Character Count Command","description":"Counts the characters in a selection using Firefox's Ubiquity 0.5 add on","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\/2009\/technology\/firefox-ubiquity-character-count-command.html\/","og_locale":"en_US","og_type":"article","og_title":"Firefox Ubiquity - Character Count Command","og_description":"Counts the characters in a selection using Firefox's Ubiquity 0.5 add on","og_url":"https:\/\/www.bhagwad.com\/blog\/2009\/technology\/firefox-ubiquity-character-count-command.html\/","og_site_name":"Expressions - Bhagwad Jal Park","article_published_time":"2009-07-22T03:07:52+00:00","article_modified_time":"2010-10-08T20:42:02+00:00","author":"bhagwad","twitter_card":"summary_large_image","twitter_creator":"@bhagwad","twitter_site":"@bhagwad","twitter_misc":{"Written by":"bhagwad"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bhagwad.com\/blog\/2009\/technology\/firefox-ubiquity-character-count-command.html\/#article","isPartOf":{"@id":"https:\/\/www.bhagwad.com\/blog\/2009\/technology\/firefox-ubiquity-character-count-command.html\/"},"author":{"name":"bhagwad","@id":"https:\/\/www.bhagwad.com\/blog\/#\/schema\/person\/06c9c710885b810f1dfe3779fc346b23"},"headline":"Firefox Ubiquity &#8211; Character Count Command","datePublished":"2009-07-22T03:07:52+00:00","dateModified":"2010-10-08T20:42:02+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bhagwad.com\/blog\/2009\/technology\/firefox-ubiquity-character-count-command.html\/"},"wordCount":49,"commentCount":8,"publisher":{"@id":"https:\/\/www.bhagwad.com\/blog\/#\/schema\/person\/06c9c710885b810f1dfe3779fc346b23"},"keywords":["Firefox Ubiquity"],"articleSection":["NR","SA","Technology"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.bhagwad.com\/blog\/2009\/technology\/firefox-ubiquity-character-count-command.html\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.bhagwad.com\/blog\/2009\/technology\/firefox-ubiquity-character-count-command.html\/","url":"https:\/\/www.bhagwad.com\/blog\/2009\/technology\/firefox-ubiquity-character-count-command.html\/","name":"Firefox Ubiquity - Character Count Command","isPartOf":{"@id":"https:\/\/www.bhagwad.com\/blog\/#website"},"datePublished":"2009-07-22T03:07:52+00:00","dateModified":"2010-10-08T20:42:02+00:00","description":"Counts the characters in a selection using Firefox's Ubiquity 0.5 add on","breadcrumb":{"@id":"https:\/\/www.bhagwad.com\/blog\/2009\/technology\/firefox-ubiquity-character-count-command.html\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bhagwad.com\/blog\/2009\/technology\/firefox-ubiquity-character-count-command.html\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bhagwad.com\/blog\/2009\/technology\/firefox-ubiquity-character-count-command.html\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.bhagwad.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Firefox Ubiquity &#8211; Character Count Command"}]},{"@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=1776875508","url":"https:\/\/www.bhagwad.com\/blog\/wp-content\/litespeed\/avatar\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1776875508","contentUrl":"https:\/\/www.bhagwad.com\/blog\/wp-content\/litespeed\/avatar\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1776875508","caption":"bhagwad"},"logo":{"@id":"https:\/\/www.bhagwad.com\/blog\/wp-content\/litespeed\/avatar\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1776875508"},"sameAs":["http:\/\/www.bhagwad.com\/blog"]}]}},"_links":{"self":[{"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/posts\/721","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=721"}],"version-history":[{"count":0,"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/posts\/721\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/media?parent=721"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/categories?post=721"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/tags?post=721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}