{"id":528,"date":"2009-03-22T22:06:27","date_gmt":"2009-03-22T21:06:27","guid":{"rendered":"http:\/\/www.streppone.it\/cosimo\/blog\/2009\/03\/yet-another-post-about-ubiquity\/"},"modified":"2009-03-22T22:06:27","modified_gmt":"2009-03-22T21:06:27","slug":"yet-another-post-about-ubiquity","status":"publish","type":"post","link":"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/03\/yet-another-post-about-ubiquity\/","title":{"rendered":"Yet another post about Ubiquity"},"content":{"rendered":"<p>Yeah, sorry, but it&#39;s so exciting&#8230; :-)<\/p>\n<p>In my development version now I&#39;m <strong>able to run unmodified Firefox Ubiquity commands<\/strong>!<br \/>\nYes, original Firefox Ubiquity JS commands can be run in the Opera version.<\/p>\n<p>That&#39;s great! Of course, not all of them can work. Most of the Ubiquity internal objects are mocked, but nonetheless they work. So now I&#39;m going to rewrite the command list as they were pB]native[\/B] ubiquity commands and adapt all the code to this new structure.<br \/>\nThis is an example of a native Ubiquity command:<\/p>\n<pre><code>\r\nCmdUtils.CreateCommand({\r\n  name: &quot;validate&quot;,\r\n  icon: &quot;<a href=\"http:\/\/www.imageboo.com\/files\/uhee2ii315oxd8akq0nm.ico\" rel=\"nofollow\" target=\"_blank\">http:\/\/www.imageboo.com\/files\/uhee2ii315oxd8akq0nm.ico<\/a>&quot;,\r\n  description: &quot;Checks the markup validity of the current Web document&quot;,\r\n  preview: &quot;Sends this page to the W3C validator&quot;,\r\n  execute: function() {\r\n    var url = &quot;<a href=\"http:\/\/validator.w3.org\/check?uri=\" rel=\"nofollow\" target=\"_blank\">http:\/\/validator.w3.org\/check?uri=<\/a>&quot; + Application.activeWindow.activeTab.document.location.href;\r\n    Utils.openUrlInBrowser( url );\r\n  }\r\n})\r\n<\/code><\/pre>\n<p>Cool!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yeah, sorry, but it&#39;s so exciting&#8230; :-) In my development version now I&#39;m able to run unmodified Firefox Ubiquity commands! Yes, original Firefox Ubiquity JS commands can be run in the Opera version. That&#39;s great! Of course, not all of them can work. Most of the Ubiquity internal objects are mocked, but nonetheless they work. [&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":[118,117,74,72,73],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Yet another post about Ubiquity - 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\/2009\/03\/yet-another-post-about-ubiquity\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Yet another post about Ubiquity - Random hacking\" \/>\n<meta property=\"og:description\" content=\"Yeah, sorry, but it&#039;s so exciting&#8230; :-) In my development version now I&#039;m able to run unmodified Firefox Ubiquity commands! Yes, original Firefox Ubiquity JS commands can be run in the Opera version. That&#039;s great! Of course, not all of them can work. Most of the Ubiquity internal objects are mocked, but nonetheless they work. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/03\/yet-another-post-about-ubiquity\/\" \/>\n<meta property=\"og:site_name\" content=\"Random hacking\" \/>\n<meta property=\"article:published_time\" content=\"2009-03-22T21:06:27+00:00\" \/>\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\/2009\/03\/yet-another-post-about-ubiquity\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/03\/yet-another-post-about-ubiquity\/\"},\"author\":{\"name\":\"cosimo\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"headline\":\"Yet another post about Ubiquity\",\"datePublished\":\"2009-03-22T21:06:27+00:00\",\"dateModified\":\"2009-03-22T21:06:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/03\/yet-another-post-about-ubiquity\/\"},\"wordCount\":100,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"keywords\":[\"extensions\",\"firefox\",\"opera\",\"ubiquity\",\"userjs\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/03\/yet-another-post-about-ubiquity\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/03\/yet-another-post-about-ubiquity\/\",\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/03\/yet-another-post-about-ubiquity\/\",\"name\":\"Yet another post about Ubiquity - Random hacking\",\"isPartOf\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#website\"},\"datePublished\":\"2009-03-22T21:06:27+00:00\",\"dateModified\":\"2009-03-22T21:06:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/03\/yet-another-post-about-ubiquity\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/03\/yet-another-post-about-ubiquity\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/03\/yet-another-post-about-ubiquity\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.streppone.it\/cosimo\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Yet another post about Ubiquity\"}]},{\"@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":"Yet another post about Ubiquity - 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\/2009\/03\/yet-another-post-about-ubiquity\/","og_locale":"en_US","og_type":"article","og_title":"Yet another post about Ubiquity - Random hacking","og_description":"Yeah, sorry, but it&#39;s so exciting&#8230; :-) In my development version now I&#39;m able to run unmodified Firefox Ubiquity commands! Yes, original Firefox Ubiquity JS commands can be run in the Opera version. That&#39;s great! Of course, not all of them can work. Most of the Ubiquity internal objects are mocked, but nonetheless they work. [&hellip;]","og_url":"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/03\/yet-another-post-about-ubiquity\/","og_site_name":"Random hacking","article_published_time":"2009-03-22T21:06:27+00:00","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\/2009\/03\/yet-another-post-about-ubiquity\/#article","isPartOf":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/03\/yet-another-post-about-ubiquity\/"},"author":{"name":"cosimo","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"headline":"Yet another post about Ubiquity","datePublished":"2009-03-22T21:06:27+00:00","dateModified":"2009-03-22T21:06:27+00:00","mainEntityOfPage":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/03\/yet-another-post-about-ubiquity\/"},"wordCount":100,"commentCount":0,"publisher":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"keywords":["extensions","firefox","opera","ubiquity","userjs"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.streppone.it\/cosimo\/blog\/2009\/03\/yet-another-post-about-ubiquity\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/03\/yet-another-post-about-ubiquity\/","url":"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/03\/yet-another-post-about-ubiquity\/","name":"Yet another post about Ubiquity - Random hacking","isPartOf":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#website"},"datePublished":"2009-03-22T21:06:27+00:00","dateModified":"2009-03-22T21:06:27+00:00","breadcrumb":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/03\/yet-another-post-about-ubiquity\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.streppone.it\/cosimo\/blog\/2009\/03\/yet-another-post-about-ubiquity\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/03\/yet-another-post-about-ubiquity\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.streppone.it\/cosimo\/blog\/"},{"@type":"ListItem","position":2,"name":"Yet another post about Ubiquity"}]},{"@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\/528"}],"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=528"}],"version-history":[{"count":0,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts\/528\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/media?parent=528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/categories?post=528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/tags?post=528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}