Atos
javascript:(function(){let seenIds=new Set();let consoleUI=[];function logToConsole(data){console.table(data);console.log(Найдено товаров: ${data.length});}function addIdColumnToPage(table){const headerRow=table.querySelector('thead tr');if(headerRow){const idHeader=document.createElement('th');idHeader.textContent='ID';headerRow.appendChild(idHeader);}}function extractNumericValue(str){const value=parseFloat(str.replace(/[\d.-]/g,'').trim());return isNaN(value)?0:value;}const table=document.querySelector('.overflow-scroll.custom-scrollbar table');if(!table){console.error('Таблица не найдена на странице');return;}addIdColumnToPage(table);const tableRows=table.querySelectorAll('tbody tr');tableRows.forEach(el=>{let price=0;let btc=0;let weight='';let link=el.querySelector('a');let productId=link?link.href.split('/').pop():'Нет ID';const numericProductId=productId.replace(/\D/g,'');if(numericProductId.length<8!numericProductIdseenIds.has(numericProductId)){return;}seenIds.add(numericProductId);const priceCell=el.querySelector('td:nth-child(4)');if(priceCell){const priceText=priceCell.querySelector('span');if(priceText){price=extractNumericValue(priceText.textContent);}const btcText=priceCell.querySelector('.text-xs.text-default-150');if(btcText){btc=extractNumericValue(btcText.textContent);}}const weightCell=el.querySelector('td:nth-child(2)');if(weightCell){weight=weightCell.textContent.trim();}consoleUI.push({id:numericProductId,weight:weight'Не указано',rub:price0,BTC:btc||0,url:link?link.href:'Нет ссылки'});const newCell=document.createElement('td');newCell.textContent=numericProductId;el.appendChild(newCell);});logToConsole(consoleUI);})();