ミームの死骸を待ちながら

We are built as gene machines and cultured as meme machines, but we have the power to turn against our creators. We, alone on earth, can rebel against the tyranny of the selfish replicators. - Richard Dawkins "Selfish Gene"

We are built as gene machines and cultured as meme machines, but we have the power to turn against our creators.
We, alone on earth, can rebel against the tyranny of the selfish replicators.
- Richard Dawkins "Selfish Gene"

ちょいイジの実行 - Copy URL+のはてな的改造


Firefox の拡張機能をふとした時に手元でチョコチョコいじれるようにしとくと楽しい - IT戦記


id:amachang氏が非常におもしろそうなことをやっていたので、ちょこっと乗っかってみた。

以前からURLを引用するときは、Copy URL+でコピーしてブログ編集画面に貼り付けてからはてな引用記法に直していた。
この手間がイヤで、最初からはてな記法でコピーできないかなと思ってた。

そこにこのエントリ。週末のテンションも手伝い、新しいことに手を出してみた*1


Copy URL+のREADME(一部)


もともとCopy URL+は、自分でコピー形式をカスタマイズできるところが人気の元であるらしい。
以下、READMEを転載。

Copy URL+ is a Mozilla & Firefox extension that extends the built-in
copy to clipboard functions to allow copying of the current document's
addess and its title and/or the current selection.

In addition, users can extend the menu with their OWN entries.

To do so, one must add two lines for each menu to the user.js file 
(the one in the profile folder):
These entries would look like:
user_pref('copyurlplus.menus.1.label', 'Copy URL + Title + Sel (HREF + Tooltip)');
user_pref('copyurlplus.menus.1.copy', '<a href="%URL%" title="%SEL%">%TITLE%</a>');

はうつー

やりかたと記法については、amachang氏の記事と以下のブログを参考にした。

私はMac OSXユーザーなので、上に挙げましたヘルプを参考に~/Library/Application Support/Firefox/Profiles/xxxxxxxx.default/ に『user.js』を作りました。ちなみにエディタはmiです。

(中略)

user_pref('copyurlplus.menus.1.label', 'はてな引用記法');
user_pref('copyurlplus.menus.1.copy', '><blockquote cite="%URL%" title="%TITLE%">%EOL%<p>%EOL%%SEL%%EOL%</p>%EOL%</blockquote><');
user_pref('copyurlplus.menus.2.label', 'はてなpre記法');
user_pref('copyurlplus.menus.2.copy', '>|%EOL%%SEL%%EOL%|<');
user_pref('copyurlplus.menus.3.label', 'はてなスーパーpre記法');
user_pref('copyurlplus.menus.3.copy', '>||%EOL%%SEL%%EOL%||<');
user_pref('copyurlplus.menus.4.label', 'はてなhttp記法');
user_pref('copyurlplus.menus.4.copy', '[%URL%:title]');
user_pref('copyurlplus.menus.5.label', 'はてなhttp記法(任意のタイトル)');
user_pref('copyurlplus.menus.5.copy', '[%URL%:title=%SEL%]');
Firefoxの拡張『Copy URL+』で、はてな記法を簡単に - カイエ


やりかたどころか、この人はやってることまで同じだ。いただき。そのまま新規テキストファイルにコピペして、user.jsと言う名でUni-8で保存。
僕もMacユーザーなので、
ライブラリ>Application Support/Firefox/Profiles/[ランダムな文字列].default下にこれを置いた。そしてFirefox再起動。

…おお、これは!

ちょいイジ化万歳。CopyURL+はちょこちょこイジれる系の最たるものかもしれない。他に、カスタマイズが良い感じのextensionとして何があるだろう?


こんなのもあった

サイトのサムネイル一発生成
(中略)

これをめちゃめちゃ簡単にしてくれる画期的ツールが公開されました!!
Simple API - ウェブサイト・サムネイル化ツール
ホントに簡単にサムネイル画像を生成してくれて表示されたソースをただコピペするだけ。

これだけでももう十分便利なんですがもうちょっとだけ楽にする方法を考えてみました。
Firefoxの拡張Copy URL+でサムネイル貼り付け用のソースを一発コピーするっていうのはどうでしょう??

ウェブサイトサムネイル作成APIとCOPY URL+を連携 | caramel*vanilla


それは素敵すぎる。今度改造してやろう。


タイトルについて。

amachang氏が言ったのは、正しくは「チョコいじ」だった。勝手に新しい言葉作ってしもた

*1:調べてみたら結構な人が普通にやってる改造らしいが、まぁそこは自分でやることに意味があるということで