顯示包含「bookmarklet」標籤的文章。顯示所有文章
顯示包含「bookmarklet」標籤的文章。顯示所有文章

2008年9月12日星期五

用Firefox 上PPS 網頁

原來都好多人用Firefox Login 唔到 PPS 網站. 但我自己用Firefox+Ubuntu 就用到. 點解?
特登開Virtual PC, 用 XP Firefox 行 ppshk.com . 第一次又真係去唔到喎.
但係呢, Refresh 幾次又得左. 再Refresh 又唔得, 再 Refresh 又得, 周而復始.
好奇怪.

不過大概估到咩事, 睇番JS error console, 發現係 applet 既 isActive function 間唔中 會 undefined.
至於點"間唔中"undefined, 係因為APPLET 間唔中LOAD 得慢, 間唔中LOAD 得快.
如果網頁LOAD 完, JAVA APPLET 未LOAD完, Javascript enginee 行唔到 isActive, 就脾氣出 runtime error, 停左原本行緊既function, 所以o係"請稍候,系統組件在下載中"度 Hold 死左.

PPS 個 check applet logic 可以寫好D 避左佢.
因為ubuntu firefox同windows firefox 2.0 都冇事, 所以我覺得呢個似係Windows firefox 3.0 既 bug.

至於o係firefox 或者 PPS fix 問題之前既workaround, 就只不過係 call 佢個on_Load() function 多一次.
寫左兩個小script, 自己鐘意用邊個就用啦.
  • Bookmarklet: reload_pps
    當你見到"請稍候,系統組件在下載中"時, 又知道applet download 完, 可用呢個Bookmarklet 黎CALL on_Load()

  • Greasemonkey: delay_onload.user.js
    開 login page 第五秒 會 call on_Load() 一次. 如果五秒都Load 唔完, 請用 User Script Command -> On Load Again functon
如果你有用開Firebugs / Javascript shell/ Console, 自已打 on_Load() 都OK.

2008年8月7日星期四

[g2c] g2c Mapplet is added to google map directory



之前寫既Google Map to CentaMap (g2c) Mapplet 終於 加入左落 Google Map Directory 。
而家只要o係工具度打 ”CentaMap“ 就可以搵到

或者用呢個連結

我個人就鐘意用 Bookmarklet 多D。因為多數都係想搵OPENRICE 既舖頭o係邊

Bookmarklet 已經試過o係Safari, Opera 等Browser 試過,沒有問題。

2008年7月31日星期四

[g2c] Google Map / Openrice link to CentaMap

[g2c] google map 連去 centamap 中原地圖
因為本人為食既關係, 經常去行openrice. 睇下有咩好食. 由其是openrice 加入左google map 就更加方便.
不過google map 有個不足既地方, 就係缺乏交通資訊, 想查下附近有咩巴士撘都唔得. 所以經常要去中原網頁去查.
為左方便自己, 寫左個script 同 bookmarklet 黎連去中原地圖. 只要一click 個bookmark 就會去到中原地圖相應既地址.
使用方法好簡單:

For FireFox:
  1. 拖曳以 g2c 連結到bookmark toolbar


  2. 到openrice/googlemap 找個有地圖既頁面
  3. 按一下g2c 既bookmark


For IE:
  1. 用滑鼠右鍵按 g2c 連結

  2. 加到我的最愛 的 "連結" 或 "Link" Folder


  3. 到openrice/googlemap 找個有地圖既頁面
  4. 按一下g2c 既bookmark


註: 此bookmarklet 有可能被popup blocker 阻隔, 請加入openrice 為popup allow list
另因implementation 問題, 位置會有可能出現少許偏差, 我已盡量將錯誤減低.

當你加入g2c bookmark, 可以試下以下連結


歡迎留下意見. 如有其他website 想納入此function, 歡迎提出.
此function 是第一步, 本人另有其他計劃既打算 (事實上我想google 幫我做埋), 如果你有其他project 既提議, 歡迎聯絡交流

mcc
==================================

Hi All,

I like to use Openrice.com to search for food. Openrice is so great that integrated with Google Map to show the place of restaurants. Google Map is great, but it is not as useful as Centamap in Hong Kong (eg. you can't check the nearby bus station in Google Map, but Centamap). That's why I write this little tool to take user from the Google Map to Centamap.

The usage is simple:
For FireFox:
  1. Drag and drop the g2c link into your bookmark bar.
  2. Go to openrice and search for a restaurant.
  3. Click on the bookmark link you just added to the bar.


For IE6:
  1. Right click the g2c link
  2. Add it to My Favourite
  3. Go to openrice and search for a restaurant.
  4. Click on the bookmark link you just added.

Open the following site and click on the bookmark to try!

Please do leave me comment or feature request. Other map projects requests are also welcome.
I have several projects in my mind to enhance google map usability ( I prefer google will develop them for me, more than I do it for google). If you get any big idea, please do feel free to contact me.

mcc

[pmod] put.hk modification - more user friendly

put.hk介面作出更改, 並增加favorites newsgroup list 到put.hk 左面的menu, 方便閱讀.
並可以對favorites list 備份及還原

For FireFox: pmod

For IE6: pmod

用法:
  1. 將上面的pmod 連結加進 IE / Firefox 的bookmarks bar 內
  2. put.hk 睇newsgroup 並按右上的[Favorites] 連結將newsgroup 加進favorites list
  3. 完成favorite list 後, 按pmod bookmark

  4. 左手面既menu 會多左一排favorites newsgroup list

========================================
Add favorites list in the left hand side menu, allow favorites backup and restore.

For FireFox: pmod

For IE6: pmod

Usage:
  1. Add the above pmod link to your bookmarks
  2. Go to put.hk, select your favorite newsgroups
  3. Click [Favorites] that located in the right upper frame to add the newsgroup to favorites
  4. Once you finished adding favorites, Click on the pmod bookmark
  5. A favorites list should be placed on the left side menu.