{"id":684,"date":"2006-01-24T18:02:19","date_gmt":"2006-01-24T23:02:19","guid":{"rendered":"https:\/\/flaminggeeks.com\/k\/blog\/?p=684"},"modified":"2006-01-24T22:45:36","modified_gmt":"2006-01-25T03:45:36","slug":"amazonlibrary-link","status":"publish","type":"post","link":"https:\/\/flaminggeeks.com\/k\/blog\/2006\/01\/24\/amazonlibrary-link\/","title":{"rendered":"Amazon\/Library Link"},"content":{"rendered":"<p>A couple of weeks ago, I ended up looking at the <a href=\"http:\/\/vielmetti.typepad.com\/superpatron\/\">SuperPatron blog<\/a> after someone posted about it on one of my mailing lists.  There, I found mention of <a href=\"http:\/\/www.mundell.org\/2005\/07\/07\/seattle-public-library-greasemonkey-script-part-2\/\">a script<\/a> that would modify Amazon pages to display whether or not the book you were looking at was available at your local library.<\/p>\n<p>Isn&#8217;t that a great idea? I think it&#8217;s absolutely brilliant.  A great check on impulse buying.<\/p>\n<p>I made note of it at the time, intending to go back at some point and modify the script to work with the Nashua library.   I finally worked on it a bit today, and <a href=\"stuff\/amazonnpl.user.js\">it now works<\/a> for the combination of Greasemonkey\/Firefox 1.5 for Nashua.  Unfortunately for me, Firefox makes me want to tear my hair out, and I don&#8217;t use it.  Theoretically, I should also be able to get the script to work for Opera, but the implementation of user js is just different enough that it&#8217;s proven trickier than I expected to get it going.<\/p>\n<p>Update: Well, I now  have a much better handle on user js scripts.  The root of the problem appears to be the fact that Greasemonkey has broken a security &#8220;rule&#8221; by allowing scripts to execute calls not just to the current domain, but to other domains at the same time.  So GM_Xmlhttprequest and the standard xmlhttprequest have an incompatibility.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A couple of weeks ago, I ended up looking at the SuperPatron blog after someone posted about it on one of my mailing lists. There, I found mention of a script that would modify Amazon pages to display whether or not the book you were looking at was available at your local library. Isn&#8217;t that [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,10,16],"tags":[],"_links":{"self":[{"href":"https:\/\/flaminggeeks.com\/k\/blog\/wp-json\/wp\/v2\/posts\/684"}],"collection":[{"href":"https:\/\/flaminggeeks.com\/k\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/flaminggeeks.com\/k\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/flaminggeeks.com\/k\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/flaminggeeks.com\/k\/blog\/wp-json\/wp\/v2\/comments?post=684"}],"version-history":[{"count":0,"href":"https:\/\/flaminggeeks.com\/k\/blog\/wp-json\/wp\/v2\/posts\/684\/revisions"}],"wp:attachment":[{"href":"https:\/\/flaminggeeks.com\/k\/blog\/wp-json\/wp\/v2\/media?parent=684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/flaminggeeks.com\/k\/blog\/wp-json\/wp\/v2\/categories?post=684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/flaminggeeks.com\/k\/blog\/wp-json\/wp\/v2\/tags?post=684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}