// ==UserScript==
// @name          Smart Amazon Recommendation
// @namespace     http://blog.fkoji.com/
// @description	  Make Amazon recommendation smart with Google search
// @include       http://*.google.*/search*q=*
// ==/UserScript==

(function() {
 var links = document.evaluate('//a[@class="l"]', document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
 if (!links.snapshotLength) return;
 for (var i = 0; i < links.snapshotLength; i++) {
  var link = links.snapshotItem(i);
  if (link.href.match(/^http:\/\/www\.amazon\.co\.jp/)) {
   GM_xmlhttpRequest({method: "GET", url: link.href, onload: function(r){}});
  }
 }
})();

