Amazon関連フィルタ Edit

目次 Edit

別ページにあるフィルタ

購入ボタン付近に、購入でキャッシュバックがあるサイトへのリンクを追加 [2013-09-14] Edit

こんな感じになる
ポイントサイト経由で入札すべし!.png

JACCSモールは0.5%還元なのよね もっといいところがあったらおせーて

[Patterns]
Name = "Amazon: ポイントサイト経由で入札すべし! [2013-09-14]"
Active = TRUE
URL = "www.amazon.(co.jp|com|co.uk|ca|de|fr)/?$TYPE(htm)"
Limit = 128
Match = "(^(^<span\s[^>]++id=$AV(addToCartSpan)))"
        "|"
        "(^(^</body>))"
        "$SET(1=position:fixed; right:10px; top:170px; z-index:9999;)"
Replace = "$STOP()"
          "<a style="\1margin:2px; padding:2px; font-weight:bold; background-color:#fcc; color:red""
          " href="http://www.jaccsmall.com/shop/768/?utm_source=t_bn&utm_medium=5">0.5%&#x9084;&#x5143;<br />"
          "<small>&#xff08;&#x5238;&#x4e0d;&#x53ef;&#x3001;&#x5f8c;&#x304b;&#x3089;&#x30ab;&#x30fc;&#x30c8;&#x306b;&#x5165;&#x308c;&#x308b;&#x3053;&#x3068;&#xff09;</small></a>"

Amazonレビューに参考になった割合ごとの色をつける Edit

概要
こんな感じに百分率とそれにあった色を表示します。
amazon reviwe rate.png

評価者が20人以上の場合太字にします。

色はこの10段階 __________
気に入らない場合、適当なもの(濃淡やROYGBなど)に書き換えてください。
テスト用リンク
http://www.amazon.co.jp/product-reviews/B00006ITSR/ref=cm_cr_dp_all_helpful?ie=UTF8&coliid=&showViewpoints=1&colid=&sortBy=bySubmissionDateDescending
[Patterns]
Name = "Amazon: review rate [2011-02-22]"
Active = TRUE
URL = "www.amazon.(co.jp|com|co.uk|ca|de|fr)/?$TYPE(htm)"
Limit = 64
Match = "("
"([0-9,]+)\0 [%90]l[%92][%86][%81]A([0-9,]+)\1[%90]l"
"|([0-9,]+)\1 of ([0-9,]+)\0(^(^ people found the following review helpful))"
"|([0-9,]+)\1 von ([0-9,]+)\0(^(^ Kunden fanden die folgende Rezension hilfreich))"
"|([0-9,]+)\1 internaute sur (\&nbsp;|) ([0-9,]+)\0(^(^ a trouv\&eacute; ce commentaire utile))"
")\2"
Replace = "\2<script type="text/javascript">"
"var prx_amazon_review_all = '\0'.replace(/,/g, '')-0;"
"var prx_amazon_review_part = '\1'.replace(/,/g, '')-0;"
"switch (Math.round(Math.floor(prx_amazon_review_part / prx_amazon_review_all * 100)/10)) {"
"case 10:"
"case 9: var bg = '#ffec4e';break;"
"case 8: bg = '#ffb301';break;"
"case 7: bg = '#f88000;color:white';break;"
"case 6: bg = '#ea5207;color:white';break;"
"case 5: bg = '#de3244;color:white';break;"
"case 4: bg = '#ba0093;color:white';break;"
"case 3: bg = '#7a009b;color:white';break;"
"case 2: bg = '#2a008b;color:white';break;"
"case 1:"
"case 0: bg = '#000059;color:white';"
"}"
"document.write(' <span style="background-color:'+bg+(prx_amazon_review_all >= 20 ? ';font-weight:bold' : '')+'">('+Math.floor(prx_amazon_review_part / prx_amazon_review_all * 10000)/100+'%)</span> ')"
"</script>"


添付ファイル: fileamazon reviwe rate.png 290件 [詳細] fileポイントサイト経由で入札すべし!.png 220件 [詳細]

複製名前変更