@FF14_Lomone님의 트윗 링크
@FF14_Lemone님의 에버노트 원문 링크
저는 전공자라 에버노트만 보고 어떻게 하는지 알았지만 비전공자는 헤멜 거 같더군요.. 역시나 트위터에 검색해보니 어떻게 보는지 설명하는 트윗만 몇십개입니다. 지인분들께 이 링크 하나 던져주시면 설명 끝입니다.
파판14 공홈 크리스탈샵 상품 구매내역 페이지 링크를 클릭해서 들어갑시다.
내 상품 구매내역을 보는 것이기 때문에 로그인이 필요합니다.
개발자 도구는 개발자들이 웹페이지 개발할 때 쓰는 아주 유용한 도구입니다.
개발자 도구 여는 단축키는 다음과 같습니다. 아래 단축키를 참고해서 열어줍시다.
윈도우: f12
또는 Ctrl+Shift+I
맥: Cmd+Alt+I
(크롬 기준으로) 오른쪽 위에 점 3개 버튼 -> 도구 더보기 -> 개발자 도구
로도 가능합니다.
잘 따라오셨다면 이런 모양의 창이 페이지 왼쪽, 오른쪽, 아래나 팝업으로 생겼을 겁니다.
(오른쪽에 생기면 아래와 같은 모양입니다.)
개발자 도구 맨 아래에 Console 영역이 보이시나요?
노란색 경고문같이 생긴 것 밑에 >
표시를 주목해 주세요.
@FF14_Lemone
님이 작성하신 코드를 2021-07-21 11시에 가져왔습니다.
최신 코드가 아닐 수 있습니다.
확실한 내용은 @FF14_Lemone님의 에버노트 원문 링크를 참고해 주세요.
에버노트 원문 링크의 코드에 오류가 있어, 48번째 줄의
startyear
의 초기값을2020
에서new Date().getFullYear()
로 수정하여 해결하였습니다.
크리스탈샵에 새로 추가된 탈것, 의상 관련 키워드를 추가하였습니다.
(2022.11.02)
아래 코드를 처음부터 끝까지 드래그해서 복사해 주세요!
function SearchEx() {
$('.mylist[name=U]').trigger('click');
$('.period_box').hide();
var type = 'U';
var $ul = $('.mylist_thead');
var $uls = $('.mylist_tbody');
var $p = $('.myc_t_info');
var totalValance = 0;
var hwanjang_Value = 0;
var daily_Value = 0;
var action_Value = 0;
var time_Value = 0;
var sebasuchan_Value = 0;
var riding_Value = 0;
var dress_Value = 0;
var hwanjang_drug = 0;
var action = 0;
var sebasuchan = 0;
var daily = 0;
var time = 0;
var riding = 0;
var dress = 0;
$ul.empty();
$uls.empty();
$p.empty();
$('.main_table').show();
$('.main_table.row').hide();
var strp = '';
strp += '<em>오픈 이후</em>부터 현재까지 구매한 <em>아이템, 의상, 부가서비스 내역</em>을 조회합니다.';
$p.append(strp);
var str = '';
str += '<tr>';
str += '<th>구매 날짜</th>';
str += '<th>상품명</th>';
str += '<th>금액</th>';
str += '<th>상태</th>';
str += '</tr>';
$ul.append(str);
for (startyear = new Date().getFullYear(); startyear > 2014; startyear--) {
for (startmonth = 12; startmonth > 0; startmonth--) {
$.ajax({
url: '/shop/MyShop/MyListAction',
async: false,
type: 'post',
data: {
StartMonth: startmonth,
StartYear: startyear,
Type: type
},
success: function (res) {
if (res.ShopList != undefined && res.ShopList != null && res.ShopList.length > 0) {
var strs = '';
for (i = 0; i < res.ShopList.length; i++) {
var iname = res.ShopList[i].itemName;
if (iname.indexOf('환상약 5') > -1) hwanjang_drug += 5;
else if (iname.indexOf('환상약 3') > -1) hwanjang_drug += 3;
else if (iname.indexOf('환상약') > -1) hwanjang_drug += 1;
else if (iname.indexOf('사랑의 묘약') > -1) hwanjang_drug += 1;
else if (iname.indexOf('연기') > -1) action += 1;
else if (iname.indexOf('30일 이용권') > -1) daily += 1;
else if (iname.indexOf('90일 이용권') > -1) daily += 1;
else if (iname.indexOf('5시간 이용권') > -1) time += 1;
else if (iname.indexOf('30시간 이용권') > -1) time += 1;
else if (iname.indexOf('고용권') > -1) sebasuchan += 1;
else if (iname.indexOf('피리') > -1) riding += 1;
else if (iname.indexOf('나팔') > -1) riding += 1;
else if (iname.indexOf('열쇠') > -1) riding += 1;
else if (iname.indexOf('마도 아머') > -1) riding += 1;
else if (iname.indexOf('두운의 서') > -1) riding += 1;
else if (iname.indexOf('빗자루') > -1) riding += 1;
else if (iname.indexOf('양탄자') > -1) riding += 1;
else if (iname.indexOf('원조 뚱보초코보') > -1) riding += 1;
else if (iname.indexOf('호루라기') > -1) riding += 1;
else if (iname.indexOf('공명기') > -1) riding += 1;
else if (iname.indexOf('비행 의자') > -1) riding += 1;
else if (iname.indexOf('의상') > -1) dress += 1;
else if (iname.indexOf('앞치마') > -1) dress += 1;
else if (iname.indexOf('가인 세트') > -1) dress += 1;
else if (iname.indexOf('공자 세트') > -1) dress += 1;
else if (iname.indexOf('제작자 세트') > -1) dress += 1;
else if (iname.indexOf('채집가 세트') > -1) dress += 1;
else if (iname.indexOf('성부군 세트') > -1) dress += 1;
else if (iname.indexOf('실내화') > -1) dress += 1;
else if (iname.indexOf('노라 세트') > -1) dress += 1;
else if (iname.indexOf('점퍼') > -1) dress += 1;
else if (iname.indexOf('의복 세트') > -1) dress += 1;
else if (iname.indexOf('무관 세트') > -1) dress += 1;
else if (iname.indexOf('여관 세트') > -1) dress += 1;
else if (iname.indexOf('조끼') > -1) dress += 1;
else if (iname.indexOf('반바지') > -1) dress += 1;
else if (iname.indexOf('원피스') > -1) dress += 1;
else if (iname.indexOf('하의') > -1) dress += 1;
else if (iname.indexOf('수영복') > -1) dress += 1;
else if (iname.indexOf('유카타') > -1) dress += 1;
else if (iname.indexOf('별빛 축제 세트') > -1) dress += 1;
else if (iname.indexOf('영혼') > -1) dress += 1;
else if (iname.indexOf('양파기사 세트') > -1) dress += 1;
else if (iname.indexOf('신발') > -1) dress += 1;
else if (iname.indexOf('별빛 로브') > -1) dress += 1;
else if (iname.indexOf('가인 패키지') > -1) dress += 1;
else if (iname.indexOf('교복') > -1) dress += 1;
else if (iname.indexOf('얼굴 치장 카탈로그') > -1) dress += 1;
else if (iname.indexOf('정장') > -1) dress += 1;
else if (iname.indexOf('겉옷') > -1) dress += 1;
else if (iname.indexOf('버선') > -1) dress += 1;
if (iname.indexOf('환상약') > -1) strs += "<tr style='background:#FEC;'>";
else if (iname.indexOf('사랑의 묘약') > -1) strs += "<tr style='background:#FEC;'>";
else if (iname.indexOf('연기') > -1) strs += "<tr style='background:#FFFFD7;'>";
else if (iname.indexOf('고용권') > -1) strs += "<tr style='background:#EBF7FF;'>";
else if (iname.indexOf('일 이용권') > -1) strs += "<tr style='background:#FFEAEA;'>";
else if (iname.indexOf('시간 이용권') > -1) strs += "<tr style='background:#FAEBFF;'>";
else if (iname.indexOf('피리') > -1) strs += "<tr style='background:#E1E6FF;'>";
else if (iname.indexOf('나팔') > -1) strs += "<tr style='background:#E1E6FF;'>";
else if (iname.indexOf('열쇠') > -1) strs += "<tr style='background:#E1E6FF;'>";
else if (iname.indexOf('마도 아머') > -1) strs += "<tr style='background:#E1E6FF;'>";
else if (iname.indexOf('두운의 서') > -1) strs += "<tr style='background:#E1E6FF;'>";
else if (iname.indexOf('빗자루') > -1) strs += "<tr style='background:#E1E6FF;'>";
else if (iname.indexOf('양탄자') > -1) strs += "<tr style='background:#E1E6FF;'>";
else if (iname.indexOf('원조 뚱보초코보') > -1) strs += "<tr style='background:#E1E6FF;'>";
else if (iname.indexOf('호루라기') > -1) strs += "<tr style='background:#E1E6FF;'>";
else if (iname.indexOf('공명기') > -1) strs += "<tr style='background:#E1E6FF;'>";
else if (iname.indexOf('비행 의자') > -1) strs += "<tr style='background:#E1E6FF;'>";
else if (iname.indexOf('의상') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('앞치마') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('가인 세트') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('공자 세트') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('제작자 세트') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('채집가 세트') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('성부군 세트') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('실내화') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('노라 세트') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('점퍼') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('의복 세트') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('무관 세트') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('여관 세트') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('조끼') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('반바지') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('원피스') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('하의') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('수영복') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('유카타') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('별빛 축제 세트') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('영혼') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('양파기사 세트') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('신발') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('별빛 로브') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('가인 패키지') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('교복') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('얼굴 치장 카탈로그') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('정장') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('겉옷') > -1) strs += "<tr style='background:#E1EDD1;'>";
else if (iname.indexOf('버선') > -1) strs += "<tr style='background:#E1EDD1;'>";
else strs += '<tr>';
strs += "<td align='center' class='col1'>" + res.ShopList[i].resultDate + '</td>';
strs += "<td align='center' class='col1'>" + res.ShopList[i].itemName + '</td>';
strs += "<td align='center' class='col3'>" + res.ShopList[i].paidCash + '</td>';
if (res.ShopList[i].historyDesc != '') {
strs += "<td align='center' class='cou_val'>" + res.ShopList[i].historyDesc + '</td>';
if ((res.ShopList[i].historyDesc == '-', '선물', '구매')) {
totalValance += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
var iname = res.ShopList[i].itemName;
if (iname.indexOf('환상약 5') > -1) hwanjang_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('환상약 3') > -1) hwanjang_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('환상약') > -1) hwanjang_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('사랑의 묘약') > -1) hwanjang_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('30일 이용권') > -1) daily_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('90일 이용권') > -1) daily_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('연기') > -1) action_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('5시간 이용권') > -1) time_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('30시간 이용권') > -1) time_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('고용권') > -1) sebasuchan_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('피리') > -1) riding_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('나팔') > -1) riding_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('열쇠') > -1) riding_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('마도 아머') > -1) riding_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('두운의 서') > -1) riding_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('빗자루') > -1) riding_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('양탄자') > -1) riding_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('원조 뚱보초코보') > -1) riding_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('호루라기') > -1) riding_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('공명기') > -1) riding_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('비행 의자') > -1) riding_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('의상') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('앞치마') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('가인 세트') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('공자 세트') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('제작자 세트') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('채집가 세트') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('성부군 세트') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('실내화') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('노라 세트') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('점퍼') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('의복 세트') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('무관 세트') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('여관 세트') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('조끼') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('반바지') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('원피스') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('하의') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('수영복') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('유카타') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('별빛 축제 세트') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('영혼') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('양파기사 세트') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('신발') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('별빛 로브') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('가인 패키지') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('교복') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('얼굴 치장 카탈로그') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('정장') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('겉옷') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
else if (iname.indexOf('버선') > -1) dress_Value += parseInt(res.ShopList[i].paidCash.replace(/,/, ''));
}
} else {
strs += "<td align='center' class='col4'>성공</td>";
}
strs += '</tr>';
}
$uls.append(strs);
} else {
// do nothing
}
},
error: function (xhr, textStatus, errorThrown) {
alert(xhr.responseText);
}
});
}
}
var strs = '';
strs += '<tr>';
strs += "<td align='center' class='col1'><b>합계</b></td>";
strs += "<td align='center' class='col1'>-</td>";
strs += "<td align='center' class='col3'>" + totalValance.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') + '</td>';
strs += "<td align='center' class='cou_val'>-</td></tr>";
strs += '<tr>';
strs += "<td align='center' class='col1'><b>정액제 결제 횟수</b></td>";
strs += "<td align='center' class='col3'>" + daily.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') + '</td>';
strs += "<td align='center' class='col3'>" + daily_Value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') + '</td>';
strs += "<td align='center' class='cou_val'>-</td></tr>";
strs += '<tr>';
strs += "<td align='center' class='col1'><b>정량제 결제 횟수</b></td>";
strs += "<td align='center' class='col3'>" + time.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') + '</td>';
strs += "<td align='center' class='col3'>" + time_Value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') + '</td>';
strs += "<td align='center' class='cou_val'>-</td></tr>";
strs += '<tr>';
strs += "<td align='center' class='col1'><b>환상약 합계</b></td>";
strs += "<td align='center' class='col3'>" + hwanjang_drug.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') + '</td>';
strs += "<td align='center' class='col3'>" + hwanjang_Value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') + '</td>';
strs += "<td align='center' class='cou_val'>-</td></tr>";
strs += '<tr>';
strs += "<td align='center' class='col1'><b>연기 교본 합계</b></td>";
strs += "<td align='center' class='col3'>" + action.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') + '</td>';
strs += "<td align='center' class='col3'>" + action_Value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') + '</td>';
strs += "<td align='center' class='cou_val'>-</td></tr>";
strs += '<tr>';
strs += "<td align='center' class='col1'><b>집사 고용 횟수</b></td>";
strs += "<td align='center' class='col3'>" + sebasuchan.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') + '</td>';
strs += "<td align='center' class='col3'>" + sebasuchan_Value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') + '</td>';
strs += "<td align='center' class='cou_val'>-</td></tr>";
strs += '<tr>';
strs += "<td align='center' class='col1'><b>탈것 합계</b></td>";
strs += "<td align='center' class='col3'>" + riding.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') + '</td>';
strs += "<td align='center' class='col3'>" + riding_Value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') + '</td>';
strs += "<td align='center' class='cou_val'>-</td></tr>";
strs += '<tr>';
strs += "<td align='center' class='col1'><b>의상 합계</b></td>";
strs += "<td align='center' class='col3'>" + dress.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') + '</td>';
strs += "<td align='center' class='col3'>" + dress_Value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') + '</td>';
strs += "<td align='center' class='cou_val'>-</td></tr>";
$uls.append(strs);
}
SearchEx();
그리고 아까 봐뒀던 >
부분에 코드를 붙여넣기하고, 엔터
키를 눌러서 코드를 적용합시다.
코드가 적용되느라 홈페이지가 몇초동안 멈춥니다. 기다렸다가 개발자 도구를 끄시면 됩니다.