HIMAZINE.ORG » Re: lolifox + keyconfig - ワンキーでタイトルとURLをコピー

Re: lolifox + keyconfig - ワンキーでタイトルとURLをコピー

IMEで日本語入力の状態だった時にワンキーの奴反応してなかったっぽい。多分。
あと、間違って2バイト文字をキー割り当てに突っ込んじゃったけど、その時イカれたのもあるかも。
%AppData%\altimit-dev\lolifox (WindowsXPでデフォルトなら多分ココ)
(Firefoxだったら %AppData%\Mozilla\Firefox)
にあるprefs.jsに設定の記述があった。変になったら該当行消せばいいと思う。

無駄に手こずったので、
以下リンクコピー用設定、自分用まとめ。

Aキーあたりに
var w = window._content;
var d = w.document;
var txt = d.title + '\r\n' + '<a href="' + d.location.href + '" title="' + d.title + '"<' + d.location.href + '</a>\r\n';
const CLIPBOARD = Components.classes["@mozilla.org/widget/clipboardhelper;1"].getService(Components.interfaces.nsIClipboardHelper);
CLIPBOARD.copyString(txt);
alert('現在閲覧しているページのタイトルとURLが\n<a>タグ形式(title属性付き)でクリップボードの中に入ってしまった可能性があります。');


Shift-Aあたりに
var w = window._content;
var d = w.document;
var txt = '<a href="' + d.location.href + '"<' + d.title + '</a>\r\n';
const CLIPBOARD = Components.classes["@mozilla.org/widget/clipboardhelper;1"].getService(Components.interfaces.nsIClipboardHelper);
CLIPBOARD.copyString(txt);
alert('現在閲覧しているページのタイトルとURLが\n<a>タグ形式でクリップボードの中に入ってしまった可能性があります。');


Cキーあたりに
var w = window._content;
var d = w.document;
var txt = d.title + '\r\n' + d.location.href + '\r\n';
const CLIPBOARD = Components.classes["@mozilla.org/widget/clipboardhelper;1"].getService(Components.interfaces.nsIClipboardHelper);
CLIPBOARD.copyString(txt);
alert('現在閲覧しているページのタイトルとURLが\nクリップボードの中に入ってしまった可能性があります。');


Wキーあたりに
var w = window._content;
var d = w.document;
var txt = '-[[' + d.title + ':' + d.location.href + ']]\r\n';
const CLIPBOARD = Components.classes["@mozilla.org/widget/clipboardhelper;1"].getService(Components.interfaces.nsIClipboardHelper);
CLIPBOARD.copyString(txt);
alert('現在閲覧しているページのタイトルとURLが\nPukiwiki形式でクリップボードの中に入ってしまった可能性があります。');

45 Comments

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <code> <em> <strong>