/* * @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 = "