{"id":840,"date":"2006-11-25T01:15:42","date_gmt":"2006-11-24T23:15:42","guid":{"rendered":"http:\/\/www.mummila.net\/nuudelisoppa\/index.php\/?p=840"},"modified":"2011-07-28T16:17:45","modified_gmt":"2011-07-28T13:17:45","slug":"fixing-the-feeling-lucky-extension-for-ff-20","status":"publish","type":"post","link":"https:\/\/mummila.net\/nuudelisoppa\/2006\/11\/25\/fixing-the-feeling-lucky-extension-for-ff-20\/","title":{"rendered":"Fixing the Feeling Lucky extension for FF 2.0"},"content":{"rendered":"<p><b>Brad Kowalczyk&#8217;s<\/b> Feeling Lucky extension&#8230;<\/p>\n<blockquote><p>&#8220;Performs Google&#8217;s &#8216;I&#8217;m Feeling Lucky&#8217; search with any selected text and opens the result in new a tab.<\/p>\n<p>This is the first ever Firefox extension that I&#8217;ve created. I found myself selecting, copying, pasting text into the location bar to do an &#8216;I&#8217;m Feeling Lucky&#8217; search all too often so I figured I should make an extension to make it just a little simpler.<\/p>\n<p>Simply select some text and either hit &#8216;Enter&#8217; or right-click it and select &#8216;Feeling Lucky&#8217; The web page of the first Google search result for that text will open in a new tab.&#8221;<\/p>\n<p><a href=\"https:\/\/addons.mozilla.org\/firefox\/2049\/\">Mozilla<\/a><\/p><\/blockquote>\n<p>I felt I needed this, but it wasn&#8217;t FF 2.0 compatible, so I fixed it. Apparently, the only thing needed for that was replacing a call to <code>gContextMenu.searchSelected()<\/code> in feelingLucky.xul with a call to <code>getBrowserSelection()<\/code>. In addition to that, the em:maxVersion in install.rdf needs to be set for 2.0, naturally.<\/p>\n<p>I&#8217;ve packed <a href='http:\/\/mummila.net\/nuudelisoppa\/files\/2006\/11\/feeling_lucky-0.32-fx.xpi'>one fixed version<\/a> of this, but I haven&#8217;t tested it (too lazy). Try it at your own risk.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Brad Kowalczyk&#8217;s Feeling Lucky extension&#8230; &#8220;Performs Google&#8217;s &#8216;I&#8217;m Feeling Lucky&#8217; search with any selected text and opens the result in new a tab. This is the first ever Firefox extension that I&#8217;ve created. I found myself selecting, copying, pasting text into the location bar to do an &#8216;I&#8217;m Feeling Lucky&#8217; search all too often so [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[28],"class_list":["post-840","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-mozilla"],"_links":{"self":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/840","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/comments?post=840"}],"version-history":[{"count":3,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/840\/revisions"}],"predecessor-version":[{"id":2993,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/840\/revisions\/2993"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/media?parent=840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/categories?post=840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/tags?post=840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}