2.0b16 で YouTube の flv キャッシュをファイルからではなく WebDataSource から取ってくることで Flash 9 に対応させたわけですが、よく考えたらこの方法は YouTube に限らず、あらゆる Flash コンテンツに適用できるのではないか。そこで URL の制限をなくしてすべての Flash で flv を探すようにしてみたところ、とりあえずうまく機能しています。しかも YouTube のような動画配信サイトだけではなく、企業サイトのデモムービーなんかも難なく取り出すことができました。 flv をそのまま再生できる QuickTime コーデック Perian と併用すれば、最強の flv コレクション環境になりそうです。
AppleScript と JavaScript のコンビネーションで Document Object Model をいじれば、他人が作成したWebサイトでもかなり自由にプログラムで操作できますよね。そのページ内のエレメントとにらめっこしながら AppleScriptの中に JavaScriptの functionを書いてしまうんです。私は以前にそうやって、あるサイトで提供しているサービスへ自動アクセスするプログラムを書いたのですが、少々視点を変えて・・・そのページ自体に自作の JavaScript をロードできないものか? と考えたんです。つまり、一度そのページに対して AppleScriptを実行したら、もともとそのページにロードされている JavaScriptのように振る舞ってもらえないだろうか? と。 何をしたいか? と言うと・・・ Webに表示されている文章の単語をダブルクリック
▼Safariの標準CSSは、Safariをコントロール+クリックし、「パッケージの内容を表示」を選択し、パッケージを開いた先にある「html4.css」です。 システム/ライブラリ/Frameworks/WebCore.framework/Frameworks/WebCore.Framework/Resources/html4.css ファイルの作り方 ▼フォントサイズや広告消しのカスタマイズに使われたりするファイルです。 作成方法は以下の手順で行って下さい。 1.テキストエディタで開き必要な文章を記述する。フォーマット>標準テキストに直す 2.別名で保存>UTF-8を選択する。 3.ファイル名は半角英数好きな文字列.cssにして好きな場所に保存。 4.SafariのpreferenceからAppearanceアイコンをクリック、一番下の Style Sheet:のところのプルダウンメニ
SafariでXMLHttpRequestのresponseTextが文字化けするという話。 http://blog.33rpm.jp/garbled-on-safari.html 最近のバージョンだとcontent-typeがちゃんとしてれば化けなかったような記憶があるけど、まあともかくとして、Safariで文字化けするのはJavaScript側だけで対処することができたりする。 http://kawa.at.webry.info/200511/article_9.html これ読んでほんとかよ、って感じだったんだけど案外役に立った。livedoor Readerで使われてたり。 実際に使われてるコードはこんなの。 if(browser.isKHTML){ ajax.filter.add(function(t){ var esc = escape(t); return(esc.index
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く