TaraLog/2005-12-26
;PC;FF機能拡張copy url+改
な~んか調子悪いなあ、と思っていた機能拡張copy URL+だが、 #code user_pref("dom.disable_window_open_feature.minimizable", true); user_pref('copyurlplus.menus.1.label','Create Blockquote'); user_pref('copyurlplus.menus.1.copy','<blockquote cite="%URL%">\n<p>%SEL%</p>\n</blockquote>'); user_pref('copyurlplus.menus.2.label','Pukiref'); user_pref('copyurlplus.menus.2.copy','#ref(%SEL%,CENTER)'); user_pref('copyurlplus.menus.3.label','PukirefF900iT'); user_pref('copyurlplus.menus.3.copy','#ref(http://p.xiaopu.net/albums/dc/F900iT//%SEL%,RIGHT,around,60%)'); user_pref('copyurlplus.menus.4.label','PukirefW32SA'); user_pref('copyurlplus.menus.4.copy','#ref(http://p.xiaopu.net/albums/dc/w32sa//%SEL%,RIGHT,around,60%)'); user_pref('copyurlplus.menus.5.label','Pukiamazon'); user_pref('copyurlplus.menus.5.copy','#amazon(%SEL%)'); user_pref('copyurlplus.menus.6.label','PukiURLLINK'); user_pref('copyurlplus.menus.6.copy','%TITLE%'); user_pref('copyurlplus.menus.7.label','PukiURLLINK+SEL'); user_pref('copyurlplus.menus.7.copy','%SEL%'); user_pref('copyurlplus.menus.8.label','B+LINK'); user_pref('copyurlplus.menus.8.copy','<b><a href="%URL%">%TITLE%</a></b>'); user_pref('copyurlplus.menus.9.label','B+SELECTLINK'); user_pref('copyurlplus.menus.9.copy','<b><a href="%URL%">%SEL%</a></b>'); user_pref('copyurlplus.menus.10.label','wablogTITLELINK'); user_pref('copyurlplus.menus.10.copy','[(%URL%|%TITLE%)]'); }} タイトル中に半角[]を用意していたのが敗因だった模様です。UTF-8保存でダメだったのか?1.5アップデートからの挙動。気をつけよう半角英数字以外。
でも、ダメ。
どうやら選択先がリンクを持っている時に1.5以前では除外していたらしいが、1.5以降は%SEL%と%RLINK%のなかで揺れているらしい。となると、アタッチファイルには必ずリンクが張られているPukiWikiでの利用は...めんどくさいなあ...困った。
本家アップデート先にも同様のコメントがあるみたいだ。
<can't copy %RLINK%
<by ray, December 16, 2005 2:43pm
<1.3.2 under Firefox, when right click on a link text, it will copy nothing!! and I add %RLINK% in my user.js: user_pref("copyurlplus.menus.1.label", "Copy linkURL + Selection (A href)"); user_pref("copyurlplus.menus.1.copy", "%SEL%"); select link text and right click on link still copy nothing!! but it work fine under 1.3.1 + firefox 1.0.7