Contents
AutoPagerizeのルールを作る 失敗編
Google Image Serachの検索結果はJavaScriptで動的に生成しているため、 SITEINFOでは簡単には指定できない。下記に失敗記録として残しておく。
■失敗記録
- Google Image Serachに対応させてみよう.
- http://swdyh.infogami.com/autopagerize
- 右下のeditをおす
- Google, Google Scholarがすでにあるので,ここを見て参考にする.
### Google
<textarea class="autopagerize_data" readonly="readonly">
url: http://www.google.\*/search\*
nextLink: id("navbar")/table/tbody/tr/td[last()]/a
insertBefore: id("res")/*[last()-1]
pageElement: id("res")/div[child::div[@class="g"]]
</textarea>
### [Google Scholar](http://scholar.google.com/scholar)
<textarea class="autopagerize_data" readonly="readonly">
url: http://scholar.google.com/scholar
nextLink: //div[@class="n"]/table/tbody/tr/td[last()]/a
insertBefore: //div[@class="n"]
pageElement: //div[1]
remainHeight: 800
</textarea>
- GoogleとGoogle Imageの検索結果ページを保存して,穴の開くまで見てみる.
- id=resのところにborderをつけてみるなどして,構造を確かめてみる.
- 下記のようなルールでうまくいくんじゃないだろうか.
### [Google Image Search](http://images.google.co.jp/)
<textarea class="autopagerize_data" readonly="readonly">
url: http://images.google.\*/images\*
nextLink: id("navbar")/table/tbody/tr/td[last()]/a
insertBefore: id("ImgContent")/*[last()-1]
pageElement: id("ImgContent")
</textarea>
- http://swdyh.infogami.com/autopagerize さっそくルールを追加する
- 「Save and View」
- 見てみる
- 全然AutoPagerizeされない.
- 現在のversionを確認する→右上のアイコンにちかづくと表示される.
- 右下のサルを右クリック→ユーザスクリプトコマンド→AutoPagerize - clear cache
- やってみたけどだめだ.うまく動きませんでした….
Last modified: 2007-08-10