2008-08-08
フィードをオートディスカバリーする XPath
こんな感じ
document.evaluate('/html/head/link[contains(concat(" ", @rel, " "), " alternate ") and (@type = "application/x.atom+xml" or @type = "application/atom+xml" or @type = "application/xml" or @type = "text/xml" or @type = "application/rss+xml" or @type = "application/rdf+xml")]', document, null, 7, null)
ブックマークレットにしてみる
javascript:var ___r=document.evaluate('/html/head/link[contains(concat(" ", @rel, " "), " alternate ") and (@type = "application/x.atom+xml" or @type = "application/atom+xml" or @type = "application/xml" or @type = "text/xml" or @type = "application/rss+xml" or @type = "application/rdf+xml")]',document,null,7,null);for(var ___t=[],___i=0;___i<___r.snapshotLength;___i++)___t.push(___r.snapshotItem(___i).href);alert(___t.join('\n'));
でも、この辺あまり詳しくないんです><
あまり、自身ないっす
トラックバック - http://d.hatena.ne.jp/amachang/20080808/1218171377
リンク元
- 297 http://reader.livedoor.com/reader/
- 279 http://blog.livedoor.jp/dankogai/archives/51092934.html
- 118 http://www.google.co.jp/search?sourceid=navclient&hl=ja&ie=UTF-8&rlz=1T4GGLG_ja___JP262&q=javascript+デバッグ
- 99 http://www.google.co.jp/search?hl=ja&client=firefox-a&rls=org.mozilla:ja:official&q=amachang&btnG=検索&lr=lang_ja
- 73 http://www.google.com/reader/view/
- 68 http://www.google.co.jp/reader/view/
- 65 http://d.hatena.ne.jp/
- 46 http://www.google.co.jp/search?q=it戦記&lr=lang_ja&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:ja:official&client=firefox-a
- 44 http://b.hatena.ne.jp/
- 44 http://b.hatena.ne.jp/entrylist?sort=hot
