Created
January 3, 2026 17:16
-
-
Save marstamyan/96de38d07cadd0c73572e9faeb9058ac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (() => { | |
| const packName = | |
| document.querySelector('.album_reward_name_text')?.innerText.trim(); | |
| const cards = document.querySelectorAll('.album_card'); | |
| const have = []; | |
| const need = []; | |
| cards.forEach(card => { | |
| const numberEl = card.querySelector('.album_card_number'); | |
| if (!numberEl) return; | |
| const number = numberEl.innerText.replace('#', ''); | |
| const isHas = card.classList.contains('al_has'); | |
| const isNo = card.classList.contains('al_no'); | |
| const isBurning = card.classList.contains('album_aiac'); | |
| const counterEl = card.querySelector('.album_card_cntr'); | |
| const count = counterEl ? Number(counterEl.innerText) : 0; | |
| if (isNo && !isBurning) { | |
| need.push(number); | |
| return; | |
| } | |
| if (isHas) { | |
| have.push(count >= 2 ? `${number}(${count})` : number); | |
| } | |
| }); | |
| const text = | |
| `${packName} Have: ${have.join('_')} | |
| ${packName} Need: ${need.join('_')}`; | |
| copy(text); | |
| console.log('✅ Copied to clipboard:\n' + text); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment