Notes around the Internet.

Posts Tagged: Extension

Shortly 更新到 v2.2 之後,終於把支援的縮網址服務往外延伸拓展了:除了直接支援 Facebook 的 on.fb.me 以外、也支援了 Github 去年 11 月推出的 git.io 縮網址、跟方便自己使用的 kkbox.fm。
之前 @pingveno 分享說很多網站其實透過 bit.ly 在提供自己的官方短網址,只要把他們的網址餵給 bit.ly,就可以得到諸如 bbc.in 之類的短網址。所以 v2.2 也乾脆就直接做了一份可以自動更新的清單,用來辨識這類型的網站。以後如果哪裡有逛到其他網站,就可以迅速的更新出去了。
大致上 Shortly 2 更新到這邊,我覺得已經差不多了──該有的功能差不多都到齊了、沒有真的很必要的功能 (如鍵盤快速鍵) 其實也做進去了,之後應該就不會有 2011/7 以來這一陣子這麼頻繁的更新啦。下一步的目標是 port 到 Chrome 去,雖然一直有點懶得去研究 Chrome Extension API⋯⋯

Shortly 更新到 v2.2 之後,終於把支援的縮網址服務往外延伸拓展了:除了直接支援 Facebook 的 on.fb.me 以外、也支援了 Github 去年 11 月推出的 git.io 縮網址、跟方便自己使用的 kkbox.fm

之前 @pingveno 分享說很多網站其實透過 bit.ly 在提供自己的官方短網址,只要把他們的網址餵給 bit.ly,就可以得到諸如 bbc.in 之類的短網址。所以 v2.2 也乾脆就直接做了一份可以自動更新的清單,用來辨識這類型的網站。以後如果哪裡有逛到其他網站,就可以迅速的更新出去了。

大致上 Shortly 2 更新到這邊,我覺得已經差不多了──該有的功能差不多都到齊了、沒有真的很必要的功能 (如鍵盤快速鍵) 其實也做進去了,之後應該就不會有 2011/7 以來這一陣子這麼頻繁的更新啦。下一步的目標是 port 到 Chrome 去,雖然一直有點懶得去研究 Chrome Extension API⋯⋯

Ultimate Status Bar

Looks quite interesting!

safariextensions:

A new alternative to the standard Safari status bar.

 

Its featureset includes:

  • hides when not needed
  • lengthens shortened URLs
  • show site icon destination URL so you can tell where the link goes
  • display file type and size information for downloadable files
  • Multiple themes to match your particular style

Some pretty cool features; hopefully some more Safari-like themes will be forthcoming.

Source: safariextensions

Text

The new Safari 5 has arrived with official extension feature. But while I was playing around the extension, I didn’t find a way to make an extension speak multiple languages, just as every Mac applications.

The built-in extension builder in Safari 5 does not provide an option to create multi-language support for an extension, thus I’m trying to make it the way with the validate event.

The validate event happens at the first time when a toolbar button or a contextual menu item is appended to Safari, and anytime you need to change those items with different scenarios. It’s the best opportunity to change their labels or tooltips (only with the toolbar button.)

How to make change to extension items during the validate event is described in Safari Developer Site and the documentation is open to everyone. So you can setup a locale array and change the label of your toolbar button or contextual menu item.

For quick reference of what text you can customize, you may be interested in the following two references:

Too bad for the toolbar item, its paletteLabel is readonly so you cannot change it. Other things like badge, image, label and tooltip are all there for you to customize in runtime. For the contextual menu item, you can change its title property.

Update: the validate event seems to be fired when a toolbar button is appended to the toolbar or change of current tab (e.g, loading another page or opening a new tab.) So if you want to make some immediate change, code it in the command event. 

safariextensions:

Emoji by Photar
Allows Safari to render emoji.

safariextensions:

Emoji by Photar

Allows Safari to render emoji.

Source: safariextensions