2009-01-16から1日間の記事一覧

iframe内の要素をXPath使って取得

前提条件として、ドメインは一緒。 昨日の失敗は、iframeのdocumentをcontextに指定したところで、document.createExpressionで評価するからdocument違いが起こっていたためです。そこで、importNodeメソッドですよ。 外部ドキュメントからノードのコピーを…

iGoogleの表示領域をちょっとだけ広げるグリモン

// ==UserScript== // @name bowdlerize-igoogle // @namespace http://d.hatena.ne.jp/TakiTake // @include http://www.google.co.jp/ig* // ==/UserScript== document.getElementById('nhdrwrapsizer').style.height = '100px'; テーマの部分が46px縮んで…