Userscripts: View Image Links + PicLens 安裝 & 設定

為什麼要分兩篇呢? 因為圖太多了..分開來貼應該比較清楚點:p 廢話少說, 以下就是安裝 & 設定方法:

  1. 為你的Firefox安裝以下 extension:
  2. http://userscripts.org/ 安裝 View Image Links userscript.

(如下圖, 按右邊的 “Install this script”)

3. 先設定 RefControl, 以無名相簿為例: - 由 Firefox 選單 Tools –> RefControl Options, 點選”新增網站”後, 依Wiki的說明輸入網站及自訂Referer值:

  1. 設定filter, 以無名相簿為例
    • 由 Firefox 選單 Tools –> Greasemonkey –> Manage User Scripts, 左邊選 “View Image Links”, 按右邊的 “Add”, 再輸入 “http://www.wretch.cc/album/album.php*”
  • 連到 http://www.wretch.cc/ ,選一本你想看的相簿, 如果設定正確會在右上角出現三個button:
  • 點選 Config, 會出現以下的設定畫面, 在這可以依 Wiki的說明設定. 輸入完後點選”Save”.
  • 點選 “View Image Links”, 應該會出現如下圖的 viewer 畫面
  • 接著請試 “Start PicLens Lite”, 會看到以下的提示訊息:
  • 點選確定後會看到 Lite 版的畫面.
  • 到 Firefox 網址列輸入 about:config, 把 signed.applets.codebase_principal_support 設定值改為 true
  • 回到無名相簿, 再次點選 “Start PicLens Lite”, 會出現以下確認視窗. 建議”不要”勾選”記住此決定”, 點選”允許”. (會出現此確認視窗是因為程式中用到 XPCOM 來寫檔, 檔案會存在 User Home 下的 gm_vil_temp_rss.xml)
  • 允許後就會出現 3D 的 PicLens 囉!

大致上就是這樣. 如果你遇到PicLens只有顯示黑框, 但沒有正確顯示圖片, 那表示你的 RefControl 沒有設定好, 或是設定前就用 PicLens 看過同一頁(會被cache住),請設定好 RefControl 後再重開 Firefox即可.相關的 Filter 設定可以在 Wiki 上找到, 以後會陸續增加. 看圖快樂囉! :D

46 Responses to “Userscripts: View Image Links + PicLens 安裝 & 設定”


  1. 1 frank Apr 15th, 2008 at 18:15:29 PDT

    太好了!新的功能加入了!!

    使用上大致沒問題!

    只是 http://photo.xuite.net/ 實在不知該如何設定 RefControl ?

    photo.xuite.net -> http://photo.xuite.net/ 嗎!?

    有的可以有的卻不行!但相簿的圖是在的…

    可以的話希望唬大能加入 xuite 的 View Image Links

    感謝囉先!!

  2. 2 Horance Chou Apr 16th, 2008 at 00:16:41 PDT

    frank:

    我在 https://opensvn.csie.org/traccgi/MirrorScripts/wiki/View 加上了 xuite 的 filter 設定及 refControl 設定表, 請參考看看 :)

  3. 3 frank Apr 17th, 2008 at 00:17:54 PDT

    呵呵!!感謝大大!!

    應該說前天晚試了

    圖片顯示還是有些不穩定 時有時無…不知是啥問題?

    xuite 確實比較麻煩點!得要用 Greasemonkey 擋一些秀圖機與許多頁框才不致產生錯誤…

  4. 4 Horance Chou Apr 17th, 2008 at 12:17:39 PDT

    時有時無通常是refControl沒設好,
    或是 Firefox cache 的關係,
    如果確定設定沒錯,
    你可以試試看clear cache or restart Firefox.
    另外如果有在 javascript console 看到錯誤的話也可以貼上來討論看看 :)

  5. 5 星夜如雨 Apr 18th, 2008 at 03:18:40 PDT

    把 signed.applets.codebase_principal_support 設定值改為 true
    在 FirexFox 3 beta5 上面無效耶!?

  6. 6 星夜如雨 Apr 18th, 2008 at 03:18:02 PDT

    把 signed.applets.codebase_principal_support 設定值改為 true
    這個設定在 FireFox 3 beta5 上面照著設定無效耶?

  7. 7 Horance Chou Apr 18th, 2008 at 08:18:34 PDT

    是的, 我測過也不行, 我想是 security model 有改變的關係.
    這個問題應該暫時不會修了, 我打算把這個 Userscript 改寫成 Extension, 這樣就不會有 security 的問題了. 等等吧 :)

  8. 8 gin Apr 25th, 2008 at 01:25:16 PDT

    請問在mac上 要怎麼安裝設定
    我好想用喔

  9. 9 Horance Chou Apr 25th, 2008 at 21:25:38 PDT

    Hi Gin,

    因為我手邊沒有 Mac, 我也不太確定是不是可以用. 但是 Firefox & 需要的3個 extension 應該都有支援 Mac, 所以應該是可以執行的. 建議你照著上面的說明安裝看看, 如果有發生什麼錯誤再來討論吧 :)

  10. 10 iii May 5th, 2008 at 17:5:09 PDT

    我使用firefox 2.0.0.14 & piclens 1.6.3.2361會發生錯誤,試了二台電腦都這樣XD

  11. 11 Horance Chou May 5th, 2008 at 18:5:03 PDT

    Hi iii,

    請問是什麼樣的 Error?
    看看 工具->錯誤主控台 有沒有什麼訊息?

  12. 12 iii May 5th, 2008 at 22:5:12 PDT

    安裝之後firefox就無法正常的進入了,一開始就顯示”firefox發生錯誤 現在要立即關閉” 隨後就跳回windows了..

  13. 13 捲捲 May 6th, 2008 at 07:6:08 PDT

    大大你好~~
    真的很感謝你這篇教學文章!!
    超棒的我應該算是成功用好了~
    可是我出現一個問題….
    就是我在用PicLens看無名相片的時候,
    有很多照片點下去之後他會在左下角出現一個三角形裡面一個驚嘆號的警示標誌,
    然後圖片就會是很模糊的無法清楚顯示…
    我有把它照起來,
    http://www.wretch.cc/album/show.php?i=hcucurl&b=18&f=1571617796&p=4
    就像那樣…..
    可是有些又可以正常清楚顯示…
    真的很奇怪…
    不知道這是為什麼??
    我已經全部都按照說明步驟仔細的檢查跟重做很多遍了,
    還是會這樣….TT
    希望大大能救救我~~~~~~~
    感激不盡!!!!!!!!!

  14. 14 Horance Chou May 6th, 2008 at 11:6:56 PDT

    To iii:

    那就奇怪哩….看起來是你安裝的 extension 之間互相衝突才會這樣, 因為這個 userscript 要等到你看特定頁面(例如無名相簿)時才會起動, 所以應該不是VIL的問題. 建議你建立一個新的 profile 來測試看看. 建立新 profile 的方法是在起動firefox 時加上 -ProfileManager 參數. 例如從開始->執行

    "C:\Program Files\Mozilla Firefox\firefox.exe" -ProfileManager
    

    參考看看.

  15. 15 Horance Chou May 6th, 2008 at 11:6:42 PDT

    To 捲捲,

    這種情形應該都是 RefControl 沒設好,
    可以參考
    https://opensvn.csie.org/traccgi/MirrorScripts/wiki/View
    中有關 RefControl 的設定表來設定. 另外 PicLens 本身也會 cache 圖片資訊, 所以你設定完後可能要重開 FireFox 再測試.

  16. 16 iii May 25th, 2008 at 21:25:48 PDT

    之前使用piclens firefox一直會發生錯誤,現在更新piclens至1.6.4.3021版本己可正常使用,回報給大家參考^^

  17. 17 Parker Jun 11th, 2008 at 22:11:43 PDT

    大大您好^^ 很感謝您寫出這麼方便的看相本套件^^
    想請問一下在
    http://opensvn.csie.org/traccgi/MirrorScripts/wiki/View
    的RefControl 部份有兩個重復的 blog.yam.com 應該是要加入哪一個呢?
    另外想請問現在是不是暫時還不能支援yam天空相本…?
    因為我自己比較常用的相本是在天空 如果piclens能支援就太好了^^
    如果不是太麻煩的話,能否請大大加上支援天空的filter呢?
    先謝謝了 > <

  18. 18 Parker Jun 12th, 2008 at 04:12:46 PDT

    您好^^ 我之後翻到您在另外一篇有介紹怎麼自己寫filter的方法,
    所以現在已經弄好了 ^^
    (雖然還是有點小bug啦…會多出上一頁和下一頁的重複照片 目前想不到解決辦法> <)
    真的很感謝您的教學 ^^

    如果您不介意的話 不知道能否讓我把這邊寫好的filter寄給您呢?我想應該會對其他使用piclens的使用者有所幫助的^^” 雖然程式可能有點不堪入目啦…(苦笑)

  19. 19 Horance Chou Jun 12th, 2008 at 12:12:11 PDT

    Hi Parker,

    當然歡迎啊! 不過我已經有寫了 for album.blog.yam.com 的 filter 了, 如果你有裝到正確版本的 userscript 應該會自動更新才對. (參考http://blog.djh5e.org/archives/143). 我的 email: horance (at) gmail.com

  20. 20 Evilsmile Jun 18th, 2008 at 14:18:42 PDT

    不好意思想請教您一個問題,原本我在firefox2時完全沒有問題,可是更新完firefox3以後,看無名相簿十他會跳出”signed applets codebase_principal_support 請設為true”的錯誤訊息,我進去about:config裡面還保留firefox2的設定為true,可是卻無法用firefox3讓無名相簿變成3D,只能用投影片的方式放映,不知道該如何解決?

  21. 21 Evilsmile Jun 18th, 2008 at 15:18:40 PDT

    您好,剛看到上面的討論串,才知道FF3的security model已經改變了,期待大大的Extension :P

  22. 22 carlos Jun 18th, 2008 at 15:18:54 PDT

    我在今天更新firefox為3.0,使用您的方式來看無名,點選View後會出現no image links!….我是使用您上述的方式安裝的,請問有什麼可以知道我是那邊設定有問題嗎?

  23. 23 absurd Jun 18th, 2008 at 15:18:04 PDT

    我也是今天更新了Fx 3.0就來回報的
    很期待看到您的新作
    我也想在Fx 3.0用PicLens看無名啦

  24. 24 Horance Chou Jun 18th, 2008 at 21:18:27 PDT

    Hi Carlos,

    要看有沒有安裝成功, 可以按 Config button, 看看有沒出現指定的 filter. 以無名為例, URL Pattern 應該會是

    ^.*www.wretch.cc.*$
    

    另外就是看看 工具 -> 錯誤主控台 裡有沒有相關的錯誤訊息, 如果有錯誤訊息可以貼上來研究看看 :)

  25. 25 Carlos Jun 19th, 2008 at 15:19:00 PDT

    URL Pattern部份是安裝成功,而且可以自動更新…
    以下是警告的訊息
    警告: 應該要有 selector。 由於有錯誤的 selector 所以略過規則組。

    原始檔: font.css
    警告: 分析 property「filter」的值時發生錯誤。 中斷宣告。
    原始檔: l.yimg.com/wretch.yimg.com/photos/css/album/font.css
    警告: 未知的 property「word-break」 中斷宣告。
    原始檔: http://www.wretch.cc/album/album.php?id=DaiandDai&book=2
    警告: 分析 property「filter」的值時發生錯誤。 中斷宣告。
    原始檔: http://www.wretch.cc/album/album.php?id=DaiandDai&book=2
    http://gaia.freera.net/~horance/userscripts/View image links: PicLensLite object not found, insert tag …
    http://gaia.freera.net/~horance/userscripts/View image links: error loading img:http://www.wretch.cc/album/album.php?id=DaiandDai&book=2current idx: 0
    警告: 預期要有宣告,但找到「*」。 略過,從下個宣告開始繼續處理。
    原始檔: http://tw.yimg.com/i/tw/ysm/wretch/wretch_photo_top.html?v=2008-05-16&ctxtID=wretch_tw_gift_001&Partner=wretch_tw_photo_top_category_cm&type=&url=http://www.wretch.cc/album/album.php?id=DaiandDai&book=2
    行: 56

    請您協助一下囉

  26. 26 linghua Jun 21st, 2008 at 18:21:51 PDT

    點選View後會出現no image links,請問有什麼可以知道我是那邊設定有問題嗎?

    會出現以下錯誤訊息

    Deprecated method document.getSelection() called. Please use window.getSelection() instead.

    http://gaia.freera.net/~horance/userscripts/View image links: last check is 0

    http://gaia.freera.net/~horance/userscripts/View image links: start checking from https://opensvn.csie.org/MirrorScripts/userscripts/view.image.links.user.js

    opensvn.csie.org:443 用了無效的安全憑證。

    該憑證未受信任,因為簽發者憑證未知。

    (錯誤碼: sec_error_unknown_issuer)

  27. 27 Horance Chou Jun 23rd, 2008 at 19:23:33 PDT

    Hi linghua & Carlos,

    請參考 http://blog.djh5e.org/archives/151 後再試試看,

    thanks a lot!

  28. 28 blunch Jun 24th, 2008 at 13:24:31 PDT

    我在確認視窗中不小心勾選了”記住此決定”
    還有辦法改回來嗎??
    因為這樣好像沒辦法3D看圖??

    另外這樣好像也沒辦法更新的樣子
    所以我該怎麼辦呢??

  29. 29 blunch Jun 24th, 2008 at 13:24:51 PDT

    啊~~搞錯了 問題應該是這樣:
    1.不小心勾選了既”注此決定”有辦法改回來嗎?

    2.除了無名的沒辦法更新 ver66–>ver68 其他fliter都可以更新
    是因為1.的關係嗎??

  30. 30 Horance Chou Jun 24th, 2008 at 21:24:11 PDT

    Hi Blunch,

    1. 要改回來請參考 http://blog.djh5e.org/archives/138 的說明, 不過無法用3D看圖是 VIL 跟 Firefox 3.0 不相容的問題.
    2. 無法更新 filter 應該跟 1 沒關係, 你可以試著把無名的 filter 先刪掉後再更新試試看.
  31. 31 pppoe Jul 3rd, 2008 at 20:3:02 PDT

    是否可以增加photo.yam.com的看圖功能呢?
    謝謝

  32. 32 鬼臉 Jul 8th, 2008 at 23:8:44 PDT

    我按save後會出現
    error parsing URL Pattern or filter: TypeError: doc is null
    請問如何處理

  33. 33 鬼臉 Jul 8th, 2008 at 23:8:44 PDT

    不好意思
    問題解決了

  34. 34 Murder Jul 10th, 2008 at 12:10:29 PDT

    https://opensvn.csie.org/traccgi/MirrorScripts/wiki/View

    畫面怪怪的耶… 沒法查看需要的資訊

    Trac Error

    TracError: The Trac Environment needs to be upgraded.

    Run “trac-admin /home/opensvn/trac/MirrorScripts upgrade”

  35. 35 Murder Jul 10th, 2008 at 12:10:48 PDT

    update failed! reason:Error:
    P
    ³å€Ö property XPCComponents.classes

    按下允許Script的時候出現的錯誤訊息
    沒看到相關的討論,這有解嗎?

    我是使用Fx 3.0

  36. 36 JIM Jul 10th, 2008 at 14:10:13 PDT

    https://opensvn.csie.org/traccgi/MirrorScripts/wiki/View
    那個真的壞了耶,不能用

    我就在這裡留下我現在用的設定吧

    在about:config裡

    在搜尋列裡輸入refcontrol.actions

    找到就把下面的複製進去吧

    @DEFAULT=@NORMAL blog.yam.com=http://album.blog.yam.com/ photo.pchome.com.tw=http://photo.pchome.com.tw/ photo.xuite.net=http://photo.xuite.net/ pic.wretch.cc=http://www.wretch.cc/album/album.php pixnet.net=http://www.pixnet.net/ wretch.yimg.com=http://www.wretch.cc/album/album.php

  37. 37 Horance Chou Jul 11th, 2008 at 12:11:24 PDT

    opensvn 現在應該正常了

  38. 38 Horance Chou Jul 22nd, 2008 at 18:22:13 PDT

    Hi 12,

    當然可以不安裝PicLens(而且以目前 Firefox 3.0 的狀況來說, 有裝跟沒裝是一樣的 XD)

    至於 VIL 的主要功能, 就是讓你直接看相簿裡的大圖, 不用進去相簿後還要一直點下一頁下一頁. 而且在圖與圖之間切換時, VIL 只會載入下一張圖片, 不會再下載其它東西(例如廣告), 所以速度會比點相簿裡的上/下頁快很多.

  39. 39 Horance Chou Jul 22nd, 2008 at 23:22:04 PDT

    錯誤訊息是什麼樣的訊息?
    另外如果你只想用最基本的功能, RefControl 也可以不用裝

    另外你說到 opensvn 不能看, 應該是因為 SSL 憑証的關係, 請參考 http://blog.djh5e.org/archives/151 讓 Firefox 3.0 接受 opensvn 的 certificate

  40. 40 larz Sep 4th, 2008 at 06:4:29 PDT

    在FX2.0.0.16和3.0.1可正常使用view,但是點piclens一點反應都沒有,連提示視窗都沒出現,只能在錯誤主控台查到以下資訊,greasemonkey和piclens都是最新版,問題到底在哪邊?

    還有Next的accesskey不是Alt n,而是要按三個鍵Alt shift n,請問到哪邊可以改accesskey

    Error: unsafeWindow.PicLensLite.hasPicLensClient is not a function
    Source File: file:///C:/Documents and Settings/Administrator/Application Data/Mozilla/Firefox/Profiles/3ycyyyk7.default/extensions/{e4a8a97b-f2ed-450b-b12d-ee082ba24781}/components/greasemonkey.js
    Line: 1194

  41. 41 Horance Chou Sep 4th, 2008 at 11:4:08 PDT

    看起來應該是 PicLens API 有變,
    我有空再來看看…

    另外 Firefox accesskey 預設已改為 alt-shift, 要改回 alt 可以參考
    http://forum.moztw.org/viewtopic.php?p=89175

    http://kb.mozillazine.org/Ui.key.generalAccessKey
    的說明

    thanks!

  42. 42 Horance Chou Sep 4th, 2008 at 12:4:32 PDT

    To larz,

    Fixed in rev. 69

    thanks!

  43. 43 larz Sep 4th, 2008 at 13:4:13 PDT

    To Horance
    動作好快,thanks your work.

    不過自動更新在FX3下還是有問題,老是會跳出remote rev is 66, my rev is 66, no need to update.
    我只有兩個方法繞過這個問題
    1.改用FX2開啟,可自動更新無誤
    2.自己手動連到以下網址更新
    https://opensvn.csie.org/MirrorScripts/userscripts

    3D功能在FX3依舊無法使用,看來只能等待你將VIL 寫成extension了,anyway…this is a GJ!

  44. 44 Horance Chou Sep 4th, 2008 at 23:4:21 PDT

    嗯…基本上我的工作是越近年底越忙,
    所以 extension 版本大概要很久很久之後了 XD

    目前FF3還是只能手動更新啦, 更新之後也可以自行到 about:config 中去設定 greasemonkey.scriptvals.http://gaia.freera.net/~horance/userscripts//View image links.revision 的值, 這樣就不會一直 alert 了

  1. 1 唬人斯不唬人 » Blog Archive » 用 PicLens 看無名/Pixnet 的圖片! Pingback on Apr 3rd, 2008 at 02:3:20 PDT
  2. 2 Userscript: 新安裝 View Image Links 無法成功自動更新 Filter 的問題及解決方法 at 唬人斯不唬人 Pingback on Jun 23rd, 2008 at 19:23:55 PDT

Leave a Reply