{"id":512,"date":"2010-01-24T20:59:42","date_gmt":"2010-01-24T19:59:42","guid":{"rendered":"http:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/"},"modified":"2010-01-24T20:59:42","modified_gmt":"2010-01-24T19:59:42","slug":"url-shortening-in-ubiquity-for-opera-too","status":"publish","type":"post","link":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/","title":{"rendered":"URL shortening in Ubiquity for Opera too&#8230;"},"content":{"rendered":"<p>Given the cool <a href=\"http:\/\/my.opera.com\/missevilat\/blog\/2010\/01\/15\/shorten-url-with-a-button\" rel=\"nofollow\">recent activity<\/a> around <a href=\"http:\/\/my.opera.com\/BAMAToNE\/blog\/2009\/10\/04\/how-to-shorten-urls-from-the-opera-address-bar\" rel=\"nofollow\">url shortening<\/a> in Opera, I thought I could also give my small contribution.<\/p>\n<p>In fact, a url shortening command is missing in <a href=\"http:\/\/my.opera.com\/cstrep\/blog\/index.dml\/tag\/ubiquity\" rel=\"nofollow\">Ubiquity for Opera<\/a>. Or rather, it <b>was<\/b> missing.<\/p>\n<p>There&#39;s a new command, <code>shorten-url<\/code>, based on <a href=\"http:\/\/bit.ly\" rel=\"nofollow\">bit.ly&#39;s<\/a> API, that allows you, as usual with Ubiquity commands, to shorten the current open tab URL, or shorten any URL you type in the Ubiquity window. Here you can see a screenshot as example:<\/p>\n<p><span class='imgcenter'><img alt='' src='http:\/\/files.myopera.com\/cstrep\/blog\/shorten-url-example.png' \/><\/span> <\/p>\n<p>This new command also uses the amazing ajax-enabling UserJS library by <a href=\"\/xErath\/\" rel=\"nofollow\">xErath<\/a>. Another interesting news is that from now on, I&#39;ll use <b>YUI Compressor<\/b> to also ship a minified version of the ubiquity javascript code, that almost halves the size, so that&#39;s good, since we&#39;re already at ~80kb uncompressed.<\/p>\n<p>As usual, you can <a href=\"http:\/\/people.opera.com\/cosimo\/ubiquity\/ubiquity.js\" rel=\"nofollow\">download Ubiquity for Opera<\/a>,<br \/>\n(or the <a href=\"http:\/\/people.opera.com\/cosimo\/ubiquity\/ubiquity-min.js\" rel=\"nofollow\">minified version<\/a>), or go to the <a href=\"http:\/\/github.com\/cosimo\/ubiquity-opera\/\" rel=\"nofollow\">Ubiquity for Opera github repository<\/a>.<\/p>\n<p>Enjoy :-)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Given the cool recent activity around url shortening in Opera, I thought I could also give my small contribution. In fact, a url shortening command is missing in Ubiquity for Opera. Or rather, it was missing. There&#39;s a new command, shorten-url, based on bit.ly&#39;s API, that allows you, as usual with Ubiquity commands, to shorten [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[481,483,102,416,74,482,72,73],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>URL shortening in Ubiquity for Opera too... - Random hacking<\/title>\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.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"URL shortening in Ubiquity for Opera too... - Random hacking\" \/>\n<meta property=\"og:description\" content=\"Given the cool recent activity around url shortening in Opera, I thought I could also give my small contribution. In fact, a url shortening command is missing in Ubiquity for Opera. Or rather, it was missing. There&#039;s a new command, shorten-url, based on bit.ly&#039;s API, that allows you, as usual with Ubiquity commands, to shorten [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/\" \/>\n<meta property=\"og:site_name\" content=\"Random hacking\" \/>\n<meta property=\"article:published_time\" content=\"2010-01-24T19:59:42+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/files.myopera.com\/cstrep\/blog\/shorten-url-example.png\" \/>\n<meta name=\"author\" content=\"cosimo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"cosimo\" \/>\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.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/\"},\"author\":{\"name\":\"cosimo\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"headline\":\"URL shortening in Ubiquity for Opera too&#8230;\",\"datePublished\":\"2010-01-24T19:59:42+00:00\",\"dateModified\":\"2010-01-24T19:59:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/\"},\"wordCount\":162,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"image\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/files.myopera.com\/cstrep\/blog\/shorten-url-example.png\",\"keywords\":[\"ajax\",\"bit.ly\",\"browser\",\"javascript\",\"opera\",\"shorten-url\",\"ubiquity\",\"userjs\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/\",\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/\",\"name\":\"URL shortening in Ubiquity for Opera too... - Random hacking\",\"isPartOf\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/files.myopera.com\/cstrep\/blog\/shorten-url-example.png\",\"datePublished\":\"2010-01-24T19:59:42+00:00\",\"dateModified\":\"2010-01-24T19:59:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/#primaryimage\",\"url\":\"http:\/\/files.myopera.com\/cstrep\/blog\/shorten-url-example.png\",\"contentUrl\":\"http:\/\/files.myopera.com\/cstrep\/blog\/shorten-url-example.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.streppone.it\/cosimo\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"URL shortening in Ubiquity for Opera too&#8230;\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#website\",\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/\",\"name\":\"Random hacking\",\"description\":\"Assume nothing. Code defensively. Keep it simple, stupid!\",\"publisher\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.streppone.it\/cosimo\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\",\"name\":\"cosimo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g\",\"caption\":\"cosimo\"},\"logo\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/author\/cosimo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"URL shortening in Ubiquity for Opera too... - Random hacking","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.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/","og_locale":"en_US","og_type":"article","og_title":"URL shortening in Ubiquity for Opera too... - Random hacking","og_description":"Given the cool recent activity around url shortening in Opera, I thought I could also give my small contribution. In fact, a url shortening command is missing in Ubiquity for Opera. Or rather, it was missing. There&#39;s a new command, shorten-url, based on bit.ly&#39;s API, that allows you, as usual with Ubiquity commands, to shorten [&hellip;]","og_url":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/","og_site_name":"Random hacking","article_published_time":"2010-01-24T19:59:42+00:00","og_image":[{"url":"http:\/\/files.myopera.com\/cstrep\/blog\/shorten-url-example.png"}],"author":"cosimo","twitter_card":"summary_large_image","twitter_misc":{"Written by":"cosimo","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/#article","isPartOf":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/"},"author":{"name":"cosimo","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"headline":"URL shortening in Ubiquity for Opera too&#8230;","datePublished":"2010-01-24T19:59:42+00:00","dateModified":"2010-01-24T19:59:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/"},"wordCount":162,"commentCount":0,"publisher":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"image":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/#primaryimage"},"thumbnailUrl":"http:\/\/files.myopera.com\/cstrep\/blog\/shorten-url-example.png","keywords":["ajax","bit.ly","browser","javascript","opera","shorten-url","ubiquity","userjs"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/","url":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/","name":"URL shortening in Ubiquity for Opera too... - Random hacking","isPartOf":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/#primaryimage"},"image":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/#primaryimage"},"thumbnailUrl":"http:\/\/files.myopera.com\/cstrep\/blog\/shorten-url-example.png","datePublished":"2010-01-24T19:59:42+00:00","dateModified":"2010-01-24T19:59:42+00:00","breadcrumb":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/#primaryimage","url":"http:\/\/files.myopera.com\/cstrep\/blog\/shorten-url-example.png","contentUrl":"http:\/\/files.myopera.com\/cstrep\/blog\/shorten-url-example.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/01\/url-shortening-in-ubiquity-for-opera-too\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.streppone.it\/cosimo\/blog\/"},{"@type":"ListItem","position":2,"name":"URL shortening in Ubiquity for Opera too&#8230;"}]},{"@type":"WebSite","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#website","url":"https:\/\/www.streppone.it\/cosimo\/blog\/","name":"Random hacking","description":"Assume nothing. Code defensively. Keep it simple, stupid!","publisher":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.streppone.it\/cosimo\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1","name":"cosimo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g","caption":"cosimo"},"logo":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/"},"url":"https:\/\/www.streppone.it\/cosimo\/blog\/author\/cosimo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts\/512"}],"collection":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/comments?post=512"}],"version-history":[{"count":0,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts\/512\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/media?parent=512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/categories?post=512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/tags?post=512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}