Amazon 拡大画像

    @@ -5,4 +5,7 @@ * @javascript_url */ -window.open('http://ecx.images-amazon.com/images/P/' + document.getElementById("purchaseSimsData").getAttribute("data-baseAsin") + '.09.MAIN._SCRMZZZZZZ_.jpg'); +(function(){ + var canonicalUrl = document.querySelector('link[rel=canonical]').getAttribute('href'); + window.open('http://ecx.images-amazon.com/images/P/' + canonicalUrl.substr(canonicalUrl.lastIndexOf('/')) + '.09.MAIN._SCRMZZZZZZ_.jpg'); +})();
  • /*
     * @title Amazon 拡大画像
     * @description Amazon.co.jpで商品画像の下に「拡大」と表示されている商品の最大画像にジャンプします。
     * @include http://www.amazon.co.jp/*
     * @javascript_url
     */
    
    (function(){
      var canonicalUrl = document.querySelector('link[rel=canonical]').getAttribute('href');
      window.open('http://ecx.images-amazon.com/images/P/' + canonicalUrl.substr(canonicalUrl.lastIndexOf('/')) + '.09.MAIN._SCRMZZZZZZ_.jpg');
    })();
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2016/07/12 19:57:25 - 2016-07-12
  2. 2016/07/12 19:56:59 - 2016-07-12
  3. 2013/12/08 13:01:25 - 2013-12-08
  4. 2013/11/28 17:20:14 - 2013-11-28