Snapshot of the working tree exactly as it stood, no edits. This is the predecessor
PRICEGOD was rewritten from ("kept intact, untouched" per pricegod/README.md), and it
is still the only place the DYMO scale is actually implemented —
rfid-daemon/index.js:1068-1265: HID discovery, parseScaleReport, one-shot read, and a
streaming /weight + /scale/start|stop session whose JSON shape PRICEGOD's daemon.js
already speaks.
Preserved verbatim on purpose (hence -og), including the known bug: DYMO_PIDS at
index.js:1082 is [0x8003, 0x8004], so it cannot see the bench M25 (0x8009). Fix that
in whatever daemon inherits the scale, not here.
node_modules stays ignored (22M of the 24M tree). No credentials in the import: the
two PEM markers in utils.js/sheets.js only strip headers off a key read from settings,
and mrpadmin / johnking are an SSH and a Postgres username, both key/trust auth.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
37 lines
1.6 KiB
JavaScript
37 lines
1.6 KiB
JavaScript
const SELECTORS = {
|
|
collectionBox: 'div.box_PFmyl.collection_DQxgF',
|
|
boxSelectors: {
|
|
mediaCondition: '.field_nm6Jt:nth-of-type(1) .dvalue_fevTQ',
|
|
sleeveCondition: '.field_nm6Jt:nth-of-type(2) .dvalue_fevTQ',
|
|
price: '.field_nm6Jt:nth-of-type(4) .markup_Cngxi',
|
|
comment: '.field_nm6Jt:nth-of-type(3) .markup_Cngxi',
|
|
collectionFolder: '.field_nm6Jt:nth-of-type(6) .dvalue_fevTQ'
|
|
},
|
|
appleMusic: '#audio-iframe',
|
|
marketStats: {
|
|
have: '#release-stats .items_PQSxS li:nth-child(1) a',
|
|
want: '#release-stats .items_PQSxS li:nth-child(2) a',
|
|
lastSold: '#release-stats .items_PQSxS li:nth-child(5) a time',
|
|
lowPrice: '#release-stats .items_PQSxS li:nth-child(6) span',
|
|
medianPrice: '#release-stats .items_PQSxS li:nth-child(7) span',
|
|
highPrice: '#release-stats .items_PQSxS li:nth-child(8) span',
|
|
artistElement: 'h1.title_Brnd1 a',
|
|
labelElement: ".info_LD8Ql a[href*='/label/']",
|
|
imageElement: '.thumbnail_cgf1w img'
|
|
},
|
|
reviews: {
|
|
container: '#reviews',
|
|
loadMoreButton: '#release-reviews > div > button',
|
|
seeRepliesButton: 'button',
|
|
reviewItem: '.review_luKwE:not(.replies_r6FWL .review_luKwE)',
|
|
replyItem: '.review_luKwE',
|
|
username: '.username_N7O6q',
|
|
profileUrl: '.username_N7O6q',
|
|
avatar: '.pic_Z6wyD img',
|
|
date: 'time.created_EKCAa',
|
|
rating: '.rating_pea6E',
|
|
text: '.markup_Cngxi',
|
|
helpfulButton: '.button_PgYDF.link_ijVx7.button_YXKHZ',
|
|
repliesContainer: '.replies_r6FWL'
|
|
}
|
|
}; |