Google Play でお買い物

  • /*
     * @title Google Play でお買い物
     * @description 携帯で決済したい時に使うものです。移動用の QR コードが出ます。ドメイン変更の追従ついでにここにも置いときます。
     * @include http://play.google.com/*
     * @license MIT License
     */
    
    (function() {
    
    	// 今んとこアプリだけ
    	if (location.href.match(/play\.google\.com\/store\/apps\/details.*[&\?]id=([^#&]+)/)) {
    
    		var i = document.createElement('img');
    		i.setAttribute('src', 'http://chart.apis.google.com/chart?cht=qr&chs=124x124&chl=market://details?id=' + RegExp.$1);
    		i.style.display = 'block';
    		document.getElementsByTagName('h1')[0].appendChild(i);
    
    	}
    
    })();
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2012/03/29 15:07:28 - 2012-03-29
  2. 2012/03/29 14:55:04 - 2012-03-29