16
15

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

アマゾンの欲しいものリストの合計を出すブックマーク

Last updated at Posted at 2018-03-24

アマゾンのほしいものリストの合計を出す

調べた限りアマゾンのほしいものリストの合計を出すブックマークはいくつか存在するが、アマゾンの仕様の変更のせいか上手く動かなかった。
なので2018年3月25日現在動くプログラムを示す。

javascript:var total=0,r=document.getElementsByClassName("a-price-whole");for (var i = 0; i < r.length; i++) {total += parseInt(r[i].innerHTML.replace(",", ""));}alert("" + r.length + "点で¥" + total.toLocaleString());

使い方が分からない人向け

  • 適当なページをブックマークする
  • ↑で保存したブックマークを右クリックして編集
  • 名前は適当に”総額”、URLを消して↑に挙げたjavascriptに書き換え保存する

image.png

  • ↑で決めたブックマーク名を欲しいものリストのページクリックする

image.png

こんな感じで総額が出る

16
15
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
15

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?