As of 2016-02-26, there will be no more posts for this blog. s/blog/pba/
Showing posts with label Chrome. Show all posts

Google announced the preview of upcoming Web Store and there is a few changes to the developer dashboard.

https://farm5.staticflickr.com/4094/4914209620_b15418972d_o.png
  • You can now select up to 3 predefined categories and with some customized.

  • The terribly extremely limited character length of 2,000 has been lifted to 16,000. But still no markup, you cant highlight or link your words to other place.

  • You can select a verified site from your Google Webmaster Tools account, it will show users that this extension is published from the site you set instead of your developer display name.

    http://farm5.static.flickr.com/4098/4914240954_1730e89fc9_z.jpg
  • In preview, it shows the extension is free but nothing yet for normal page. Obviously, we can set a price when Web Store is ready.

    https://farm5.staticflickr.com/4076/4913628365_e1664ccaa3_o.png

Your extension now needs logo and at least one screenshot in order to publish, I have to create them for my silly extension.

Keep Last Two Tabs is my first Chrome Extension, I wrote this post because the Extension page is only allowed 2,000 characters in description.

Note

This extension has been abandoned for years. (2016-02-10T04:03:35Z)

This is a silly extension. Its made to prevent Chrome quits when you close last tab. But its not really work as you may expect. It keeps you Chrome has at least two tabs. Because intercepting last tab closing is not possible, therefore this is one possible way to get around.

1   Source Code

You can download it on GitHub.

2   Notes

  • You may want to pin the leftmost tab and leave it there unused.
  • This extension is not for preventing the result after you click on windows close button by accident. That issue is not possible to resolve by using extension, currently. And this last tab closing and window closing issues are both should be resolved by core code not by extensions. This is just a temporarily silly workaround.
  • How to Close Chrome after installation of this extension? Press Alt+F4 or Click on X button on top-right corner of Chrome window.
  • Note by sozercan: If you have an application shortcut open, it wont close the main window. (Thanks!)
  • Please go to vote for better tab controlling1.
[1]http://www.google.com/support/chrome/bin/static.py?page=suggestions.cs&issue=107375&bucket=15653 is gone.

3   Issues

  • If there is only one normal tab with one or more pinned tab closed (aka ghost tab? still there, you can click to reopen), Chrome will exit if you close that only normal tab.
  • Currently, ghost tab is not able to be detected, we can see them as normal tabs, therefore we cant stop this happening. (2010-05-19) Updated 2010-07-24: Ghost tab seems to be removed in Chrome 6.

4   Changelog

  • 0.3.1 2010-08-09 - Do not close new tab which is chrome://newtab/
  • 0.3.0.1 2010-07-25 - Change (fix) the closing second tab to be for closing New Tabs. The previous way didnt cover some situations.
  • 0.3 2010-07-24 - Add new option for closing second tab if there were only two tabs when open new tab and second tab is the New Tab page (chrome://newtab/). (Suggested by manwe)
  • 0.2 2010-02-22 - Add Options page for whether creating tab in background by user decision. (Check the new option, would have behavior like first release)
  • 0.1.1 2010-02-08 - Tab creation in background for better experience (suggested by anonymous)
  • 0.1 2009-12-19 - First release.

Note

Now I use Google Docs to record the number, see this doc. Its easier to add a data point, the only problem is its too ugly. (2010-06-03)

The chart below is the weekly users of Keep Last Two Tabs, a Chrome Extension of mine. This extension does what it claims, its silly and amazingly to see the number of users is actually growing up.

A week ago, I stumbled upon Flot, a pure JavaScript plotting library for jQuery. It produces nice and pretty chart comparing to Google Visualization APIs Annotated Time Line, a Flash based. Here is a post about how I used it.

I feel Annotated Time Line is more easier (or less customizable) to use because you dont need some functions, but Flot is more comprehensive library (and its Open Source), you can have more types of chart and make the chart do whatever you want if you know JavaScript.