今日は雨で出かけるのが面倒になったので、前から作ろうと思っていた都内の図書館+αをまとめて蔵書検索する Greasemonkey スクリプトを書いた。やりたいことの半分くらいしかできなかったけど…。 こんな感じで検索対象を定義する。予想外に複雑になってしまった。 itabashi: { name: '\u677f\u6a4b', keys: {isbn10: true, isbn10h: true, isbn13: true, isbn13h: true}, enc: 'shift-jis', url: 'http://www.lib.city.itabashi.tokyo.jp', context: 'ITWLIB/servlet', func: patternB, args: { regexps: { enabled: /\<TD\s*><STRONG>.*\u5728\u5eab.*