Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation. For the best experience please use the latest Chrome, Safari or Firefox browser.
Javacsript source highlighter. Automatically deminify, beautify, and syntax highlight javascript source code. Firefox 専用 — 今すぐ Firefox をダウンロード
Firefoxのソースコードを追っているうちに、たまたま1年遅れで IT戦記 - JavaScript を学ぶ際に一番重要なのに、誤解されがちな setTimeout 系の概念 の裏側がどうなっているかがわかったので、その話を。 タイマーの管理方法 そもそもjavascriptからsetTimeoutを呼ぶと、どういう仕組みで指定した時間後に渡した関数が呼び出されるようになっているのでしょう。Linuxであればsleepのように一定時間後にawakeするという処理は、タイマーリストによって管理されています。カーネルの中にN jiffies(LinuxのOS内時間の単位はjiffyと呼ぶそうです)経過後に実行することリストがあって、カーネルが4msごとに毎回タイマーリストをチェックしてやることがあったときにはそれを実行しています。 FirefoxもLinuxと同じようにタイマーリストみたいな
JavaScript : What is it really? AND Some new features in ES6
改訂:2002年11月15日 リッチテキスト編集コントロールです。(訳注;以下の URI もご参照下さい:Rich-Text Editing in Mozilla 1.3) リッチテキスト編集を可能にする: ある文書があるとき、"designMode" 属性を加えて、それを "on" にして、編集可能な文書を手に入れることができます。 例えば、Javascript では、"edit" の id をもった iframe(インラインフレーム)があれば、次のようにしてその contentDocument を手に入れ、designMode を "on" に指定することができます:
Venkman という便利なデバッガがある. 詳細については no title を参照していただくとして, 早速本題に便器. KeySnail や Vimperator のプラグインは, mozIJSSubScriptLoader の loadSubScript というメソッドを使ってロードされている. このメソッドを用いて file:///hoge/huga.js といったローカルファイルをロードすると, その URI が 読み込み元スクリプト -> file:///hoge/huga.js に書き換えられてしまう. Venkman はこの "xxx -> yyy" 形式の URI に対応していないため, loadSubScript を使ってロードしたスクリプトをデバッグしようとすると, もれなくエラーを吐く. ファイルが読み込めないのではデバッグが出来ないに等しいので, これはかなり面
Execute JS is Firefox-Extension which provides an enhanced JavaScript-Console, where you can comfortably enter and execute arbitrary JavaScript-Code and modify functions. Detailed info are available under: http://ejs.rudolf-noe.de These are the features of Execute JS: * Execute arbitrary (multiline) JavaScript Code in every open window * Evaluting the properties of an object * Modifying functions
LiveConnect は、JavaScript から Java クラスなどのメソッドを呼べる機能を既存の Java の機能を利用して提供するアプリケーション作成用のインターフェースの名称です。 https://developer.mozilla.org/ja/LiveConnect 他の参考リンク https://developer.mozilla.org/ja/Core_JavaScript_1.5_Guide/LiveConnect_Overview/JavaScript_to_Java_Communication http://java.sun.com/javase/ja/6/webnotes/6u10/plugin2/liveconnect/ というわけで JavaScript から Java の機能を使用することができます。 これには 2 種類の方法があって、 特別な Live
2ちゃんねるなどでリンク避けとして"ttp://..."を使うことがあります。 今回の拡張では、ttpプロトコルを定義して、"http://..."と同様に扱えるようにしましょう。 ttpプロトコルを扱うXPCOMコンポーネントのクラスを登録します。 そのクラスのnewURI関数で、URIの部品を受け取って、nsIURIのインスタンスを返します。(注) そのクラスのnewChannel関数で、↑で作ったnsIURIのインスタンスを受け取って、ttpプロトコルのためのnsIChannelのインスタンスを返します。ここではhttpプロトコルのnewChannel関数に処理を丸投げするので簡単です。 (注)"ここではhttpプロトコルのnewURI関数に処理を丸投げするので簡単です"・・・だと芸がないですもんね。 拡張のcomponentsディレクトリ以下に、jsファイルを置けば自動で認識してく
Latest topics > addTab, loadOneTabの引数がFirefox 3.6で変わる? 宣伝。日経LinuxにてLinuxの基礎?を紹介する漫画「シス管系女子」を連載させていただいています。 以下の特設サイトにて、単行本まんがでわかるLinux シス管系女子の試し読みが可能! « 恋活遊園地に行ってきた。 Main GARDEN PARTY お茶会 2009 Autumn » addTab, loadOneTabの引数がFirefox 3.6で変わる? - Sep 16, 2009 trunk gBrowserのloadOneTabとaddTabの引数が変わった - alice0775のファイル置き場 - Yahoo!ジオシティーズを見て初めて知ったけど、TrunkでgBrowser.addTab()とgBrowser.loadOneTab()の仕様が変わったようだ。
HTML5で定義されている、classNameやrelを操作するための新しいAPIがFirefoxのナイトリーに入った。 var p = document.createElement("p"); p.classList.add("foo"); console.assert(p.className == "foo"); p.classList.add("bar"); console.assert(p.className = "foo bar"); console.assert(p.classList.item(0) == "foo"); console.assert(p.classList.item(1) == "bar"); console.assert(p.classList.item(2) == null); p.classList.remove("foo"); console.ass
Latest topics > バイナリをBase64エンコードする 宣伝。日経LinuxにてLinuxの基礎?を紹介する漫画「シス管系女子」を連載させていただいています。 以下の特設サイトにて、単行本まんがでわかるLinux シス管系女子の試し読みが可能! « Vista-aeroとツリー型タブの共存(Vista-aero theme with Tree Style Tab) Main ウィンドウにフォーカスするとタブの色が変わる(Colors of tabs is changed when the window is focused/unfocused!) » バイナリをBase64エンコードする - Jul 07, 2009 var file = Cc['@mozilla.org/file/local;1'] .createInstance(Ci.nsILocalFile); fil
19:29そういえばはてなのサービス間移動のために javascript:location='http://%s.hatena.ne.jp/'+location.pathname.split(%22/%22)[1]+'/'; っていうブックマークレットをキーワード h で登録してて使ってる。例えばハイクのページ (h.hatena.ne.jp/cho45/...) からその人のダイアリー (`h d`) とか fotolife (`h f`) とかを巡回してストーキングするのに便利 あとはてダに飛ぶキーワードは id ってつけてる `id cho45` でここhttp://d.hatena.ne.jp/./kiyohero/20081209/1228815261
2008-11-17 近況 Firefox Developers Conference の LT に混ぜてもらいました. (資料はこれ.) まわりが「何か作ったぜ」という話をしているなか, 私は例のごとく他人のふんどしで相撲を.... なにか作る話はいいよなあ. 買い物の串刺し検索をする ShoppingFinder や YouTube をニコニコ動画化する Ghostlogue は, サービスもセットになっていて面白かった. ブラウザもシェアが増えるとアドオン市場というものが生まれうるのだなー. あとは配られたビラで Movie Download Helper を知った. よくわからない単体ツールを探しまわった苦労は一体なんだったのかと... 私の話は "TraceMonkey にも V8 の hidden classs みたいな仕組みがあってプロパティアクセスが速くなるよ" という話.
サンプルコード (HTML) 2つの div 要素を配置し、一方をドラッグ元、もう一方をドロップ先とする。 ドラッグ元となる div 要素には、「draggable=”true”」属性をセットしなければならない。ただし、リンク(a 要素)や画像 (img 要素)などは、「draggable=”true”」を指定しなくても自動的にドラッグ可能となる。 ドラッグ元の要素には ondragstart, ondrag, ondragend の3つのイベントハンドラを追加し、ドロップ先の要素には ondragenter, ondragover, ondragleave, ondrop の4つのイベントハンドラを追加する。ただし、必要最低限のドラッグ&ドロップを実装するのであれば、 ondrag, ondragend, ondragleave は省略しても問題ない。 <html> <head> <ti
Simple Mail を参考に. responseのチェックもしてないし, error処理も書いてないけど要はこの流れでできるということで. 使うときには, error処理とかも書かないと. 命令先は, Gmailのsmtpサーバーで. socketつないで, inputStreamを読みながら, outputstreamに命令を書き出してけばいける. まんまterminalと同じ感じ? /* * SMTP Send Mail Sample */ var Cc = Components.classes; var Ci = Components.interfaces; var SocketService = Cc["@mozilla.org/network/socket-transport-service;1"].getService(Ci.nsISocketTransportServic
簡単に言うと、下のようなコードをWebページ側が仕込んでいると、ユーザーが気づかないうちにクリップボードを書き替えられてしまう。 <script> window.addEventListener("load",function(){ alert("クリップボード置き替えのテスト"); window._FirebugCommandLine.copy("クリップボードが置き替えられてしまう"); },false); </script> これは、FirebugがWebページ側に特権を昇格されてしまわないように、拡張機能と、コンソールのやり取りをイベントで間接的に行なうようにしたことに起因する問題。 以下、いろいろ調べて分かったことのメモ。 例えば、 console.log("foo"); というコードが実行されてから、実際にconsoleに表示されるまでを辿ってみる。 まず、 console.l
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く