LoginSignup
2
0

More than 5 years have passed since last update.

ヤフオク 出品者用 ブックマークレット「受取連絡待ち」足し算

Last updated at Posted at 2018-06-03

まぁ、なんていうか。

本当に作ろうとしていたものは、別のものなんですが、その途中で できたものです。

ヤフオクは2018年3月から、落札者さんが「受取連絡」しないと、出品者に入金されないようになりました。(カテゴリにもよる)

そのため、ヤフオクの売上金管理に、ずら~っと「受取連絡待ち」が並ぶようになりました。

それの合計額を表示するだけのブックマークレットです。

「俺 受け取ってない金額いくらあるんだろう?」それを知るためだけのものです。

単純に class=suspend (オレンジ色の文字)になっているものを足し算しているだけなので、「ヤフー審査中」も合計に含んでしまいます。


javascript:void(function(){

var t=0,s;
var arrs=document.getElementsByClassName("suspend");

for(i=0; i<arrs.length; i++){
    s = arrs[i].innerHTML.replace(/[^0-9]/g, '');
    t = t + parseInt(s);
}

alert("合計額:"+t);

}())

動作確認環境

Windows 10
Google Chrome 67

2
0
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
2
0