GooglePlayLink

    @@ -45,7 +45,7 @@ var qrcode = "http://chart.apis.google.com/chart?chs=150x150&cht=qr&chld=l0&chl=market://details?id=" + pname; //出力用文字列整形 - var str = "<div style='margin:20px 0; padding:15px 10px; border:1px solid #aaa; border-radius:10px;'><div style='margin-left:85px; overflow:visible; line-height:1.4;'><a href=" + url + " target='_blank' style='text-decoration:none;'><img src=" + icon + " style='margin-left:-85px;float:left;width:75px;height:75px;border:none; -webkit-box-shadow: 3px 3px 10px #333; -moz-box-shadow: 3px 3px 5px #333; -ms-box-shadow: 3px 3px 5px #333; -o-box-shadow: 3px 3px 5px #333; box-shadow: 3px 3px 5px #333;'><strong style='font-size:1.2em; font-weight:bold;'>" + appname + "</strong></a><br/>" + var str = "<div style='margin:20px 0; padding:15px 10px; border:1px solid #aaa; border-radius:10px;'><div style='margin-left:85px; overflow:visible; line-height:1.4;'><a href=" + url + " target='_blank' style='text-decoration:none;'><img src=" + icon + " style='margin-left:-85px;float:left;width:75px;height:75px;border:none;'><strong style='font-size:1.2em; font-weight:bold;'>" + appname + "</strong></a><br/>" + "<span style='font-size:0.9em;'>by " + supplier +"<br/>" +"</span>" + "<span style='font-size:0.7em; color:#FF8C00;'>" + "価格:"+ price+" " + "平均評価:" + star + "("+ review + " 件)" +"</span>"
  • /*
     * @title GooglePlayLink
     * @description gPLAYHtmlを自分仕様にカスタマイズしました。
     * @include https://market.android.com
     * @include http://market.android.com
     * @license MIT License
     * @require jquery
     */
    (function(){
    	
    	var url = document.location.href;
    	if(url.search(/details/) != -1)
    	{
    		//パッケージ名取得(未使用)
    		url.match(/play.google.com.*?id=([a-zA-Z0-9_\-\.!~\*\|]+)/);
    		var pname = RegExp.$1;
    		
    		//アプリ名
    		var appname =  $(".document-title").html();
    		var appname = appname.replace(/<.+?>/g,"");
    
    		//概要(未使用)
    		//var description = $(".doc-overview .doc-description").html();
    
    		//サプライヤー
    		var supplier = $(".document-subtitle").html();
    
    		//値段
    		var price = $("meta[itemprop=price]").attr("content");
    
    		//アイコンURL
    		var icon = $(".cover-container img").attr("src");
    
    		//評価件数、平均評価
    		var review = $(".reviews-num").html();
    
    		if(review!=null){
    			var star = $(".score").html();
    		}else{
    			var review="0"
    			var star="まだ評価はありません"
    		}
    
    		//QRコードURL(未使用 アプリのみ使用可能)
    		var qrcode = "http://chart.apis.google.com/chart?chs=150x150&cht=qr&chld=l0&chl=market://details?id=" + pname;
    
    		//出力用文字列整形
    		var str = "<div style='margin:20px 0; padding:15px 10px; border:1px solid #aaa; border-radius:10px;'><div style='margin-left:85px; overflow:visible; line-height:1.4;'><a href=" + url + " target='_blank' style='text-decoration:none;'><img src=" + icon + " style='margin-left:-85px;float:left;width:75px;height:75px;border:none;'><strong style='font-size:1.2em; font-weight:bold;'>" + appname + "</strong></a><br/>"
    		 			 + "<span style='font-size:0.9em;'>by " + supplier +"<br/>" +"</span>"
    		 			 + "<span style='font-size:0.7em; color:#FF8C00;'>" + "価格:"+ price+" "
    		 			 + "平均評価:" + star + "("+ review + " 件)" +"</span>"
    		 			 +  "</div></div>";
    		window.prompt("これを貼付ける",str);
    	}
    	
    })();
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2014/04/09 12:59:23 - 2014-04-09
  2. 2014/04/09 12:35:39 - 2014-04-09
  3. 2014/04/09 12:24:37 - 2014-04-09
  4. 2014/04/09 11:37:34 - 2014-04-09
  5. 2014/04/09 11:36:21 - 2014-04-09
  6. 2014/04/09 10:17:27 - 2014-04-09
  7. 2014/04/09 10:11:33 - 2014-04-09
  8. 2014/04/09 10:08:11 - 2014-04-09
  9. 2014/04/09 10:04:09 - 2014-04-09
  10. 2014/04/09 10:02:09 - 2014-04-09
  11. 2014/04/09 09:56:15 - 2014-04-09