// ==UserScript==
// @name Amazon2ToyonakaCityLibrary
// @namespace http://www.osa-p.net
// @description Amazon to Toyonaka City Library book info
// @include http://www.amazon.co.jp/*
// @copyright 2009, OSA
// @version 2.1 (2009/04/10)
// @homepage http://www.osa-p.net/
// @author OSA
// @licence MIT License
// ==/UserScript==
( function(){
function conf() {
this.base_url = 'https://www.lib.toyonaka.osaka.jp';
this.button_border_radius = GM_getValue("ButtonBorderRadius", 1);
GM_setValue("ButtonBorderRadius", this.button_border_radius);
this.getButtonBorderRadius = function() {
return this.button_border_radius;
}
}
function trim( str ){
return String(str).replace(/^[ \u3000]*/gim, "").replace(/[ \u3000]*$/gim, "");
}
function bookInfoReader ( isbn, date, button ) {
var isbn13 = isbn;
var public_date = date;
var put_area = button;
var query_url = 'http://www.osa-p.net/_process/toyonaka_city_library_get_info.php'
+ '?isbn=' + isbn13
+ '&public_date=' + public_date;
GM_xmlhttpRequest({
method:"get"
,url:query_url
,onload:function(res){
var str = [
put_area.innerHTML
, '
\u307e\u305f\u306f
'
, '