Top 5 Cordless Stick Vacuums for Hardwood Floors: Our Expert Picks

Welcome to our comprehensive guide on finding the best cordless stick vacuum for hardwood floors! If you’re tired of tangled cords and heavy machines scratching your beautiful wooden surfaces, you’ve come to the right place. Hardwood floors require special care, and a good cordless stick vacuum can make all the difference, offering powerful cleaning without the fuss. We’ve meticulously tested and reviewed several top models to help you make an informed decision and keep your hardwood gleaming effortlessly.

Quick Product Comparison

.modern-product-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 8px 32px rgba(0,0,0,0.1);
font-size: 14px;
}
.modern-product-table thead th {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 10px 8px;
text-align: left;
font-weight: 600;
font-size: 15px;
border: none;
}
.modern-product-table tbody td {
padding: 10px 8px;
border-bottom: 1px solid #f0f0f0;
vertical-align: middle;
}
.modern-product-table tbody tr:last-child td {
border-bottom: none;
}
.product-name {
font-weight: 600;
color: #2d3748;
font-size: 14px;
line-height: 1.4;
max-width: 300px;
}
.product-name a {
color: inherit;
text-decoration: none;
}
.product-name a:hover {
color: #ff6b35 !important;
}
.product-image-cell {
text-align: center;
width: 80px;
}
.product-image-cell img {
width: 60px;
height: 60px;
object-fit: cover;
border-radius: 8px;
border: 2px solid #e2e8f0;
transition: transform 0.2s ease;
}
.product-image-cell img:hover {
transform: scale(1.05);
}
.price-button-cell {
text-align: center;
width: 140px;
}
.price-button {
display: inline-block;
background: linear-gradient(135deg, #ff9900 0%, #ff6b35 100%);
color: white;
padding: 8px 12px;
text-decoration: none !important;
border-radius: 6px;
font-weight: 600;
font-size: 13px;
box-shadow: 0 2px 8px rgba(255,153,0,0.3);
transition: all 0.2s ease;
white-space: nowrap;
}
.price-button:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(255,153,0,0.4);
}
@media (max-width: 768px) {
.modern-product-table {
font-size: 13px;
}
.modern-product-table thead th {
padding: 8px 6px;
font-size: 14px;
}
.modern-product-table tbody td {
padding: 8px 6px;
}
.product-name {
font-size: 13px;
max-width: 200px;
}
.product-image-cell img {
width: 50px;
height: 50px;
}
.price-button {
padding: 6px 10px;
font-size: 12px;
}
}
@media (max-width: 480px) {
.modern-product-table {
font-size: 12px;
}
.modern-product-table thead th {
padding: 6px 4px;
font-size: 13px;
}
.modern-product-table tbody td {
padding: 6px 4px;
}
.product-name {
font-size: 12px;
max-width: 150px;
}
.product-image-cell {
width: 60px;
}
.product-image-cell img {
width: 40px;
height: 40px;
}
.price-button-cell {
width: 120px;
}
.price-button {
padding: 5px 8px;
font-size: 11px;
}
}

<!–

–>

<!–

–>

<!–

–>

<!–

–>

<!–

–>

Product Image Check Price
1. Kenmore DS1030 Cordless Stick Vacuum: Lightweight, 2-in-1 for Hardwood Floors, Pet Hair & Carpet…. Kenmore DS1030 Cordless Stick Vacuum: Lightweight, 2-in-1 for Hardwood ⭐ 4.1/5 Check Price
2. Eureka NEC101 Cordless Stick Vacuum: Lightweight and Rechargeable for Hardwood & Pet Hair…. Eureka NEC101 Cordless Stick Vacuum: Lightweight and Rechargeable for ⭐ 4.1/5 Check Price
3. LEVOIT LVAC-200 Cordless Stick Vacuum: Tangle-Resistant, Lightweight for Hard Floors, Carpet & Pet H… LEVOIT LVAC-200 Cordless Stick Vacuum: Tangle-Resistant, Lightweight f ⭐ 4.3/5 Check Price
4. Cordless Stick Vacuum: Self-Standing, Anti-Tangle with Touch Screen for Hard Floors & Pet Hair…. Cordless Stick Vacuum: Self-Standing, Anti-Tangle with Touch Screen fo ⭐ 4.7/5 Check Price
5. Cordless Stick Vacuum: Self-Standing, Anti-Tangle Brush & OLED Touch Screen for Hardwood, Pet Hair…. Cordless Stick Vacuum: Self-Standing, Anti-Tangle Brush & OLED Touch S ⭐ 4.6/5 Check Price

Our Top 5 Best Cordless Stick Vacuum For Hardwood Floors Reviews – Expert Tested & Recommended

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

🏆 Best Choice

1. Kenmore DS1030 Cordless Stick Vacuum: Lightweight, 2-in-1 for Hardwood Floors, Pet Hair & Carpet.

Kenmore DS1030 Cordless Stick Vacuum: Lightweight, 2-in-1 for Hardwood

The Kenmore DS1030 Cordless Stick Vacuum is a fantastic option for anyone with hardwood floors, especially if you have pets. This lightweight, 2-in-1 vacuum offers powerful cleaning without the hassle of cords, making daily tidying a breeze. Its specialized features are designed to protect your floors while efficiently removing dirt and pet hair.

Key Features That Stand Out

  • Lightweight & Cordless Design: Weighing in lightly, this 24V vacuum offers freedom of movement across all your hardwood surfaces.
  • Easycut Nozzle: Say goodbye to tangled hair on the brush roll; a simple button push releases debris, saving you time and effort.
  • 2-in-1 Versatility: Easily converts into a handheld unit for tackling smaller messes, upholstery, or even your car’s interior.
  • Dual Speed Settings: Choose between two power modes for optimal cleaning on both delicate hardwood and low-pile carpets.
  • Up to 45 Minutes Run Time: Enjoy extended cleaning sessions on a single charge, perfect for larger homes or multiple rooms.

Why We Recommend It

We highly recommend the Kenmore DS1030 for its thoughtful design catering specifically to hardwood floors and pet owners. The Easycut Nozzle is a game-changer for anyone dealing with pet hair, preventing frustrating tangles. Its lightweight nature and cordless convenience mean you’ll be more likely to grab it for quick cleanups, keeping your floors consistently spotless without scratching or damage.

Best For

This vacuum is ideal for homeowners with a mix of hardwood and some carpeted areas, especially those with pets. Its portability also makes it great for seniors or anyone needing an easy-to-maneuver cleaning solution.

Pros and Cons

Pros:
  • Excellent for pet hair with its anti-tangle Easycut Nozzle.
  • Very lightweight and easy to maneuver, reducing strain during cleaning.
  • Versatile 2-in-1 design allows for detailed cleaning.
  • Decent battery life for typical household cleaning tasks.
Cons:
  • Dust bin capacity might be small for very large homes.
  • Not designed for deep-pile carpets, best suited for bare floors and low-pile rugs.

Customer Reviews

Customer Review: “Great quality product. Easy to use; lightweight….good suction, good battery life…..no cords to trip over (I’m a senior living alone and vacumn cords are easy to tangle and trip over). Great to have handheld vac too to take to car or for small pieces of upholstered furniture or indoor windowsills”

Customer Review: “Lightweight, cleans well, great suction, perfect on stairs, you can use small vacuum on furniture/auto/hard to get to areas. Works great on area rugs and anywhere you need a quick and easy clean yet can handle larger areas as well. I highly recommend this product.”

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

⭐ Editor’s Choice

2. Eureka NEC101 Cordless Stick Vacuum: Lightweight and Rechargeable for Hardwood & Pet Hair.

Eureka NEC101 Cordless Stick Vacuum: Lightweight and Rechargeable for

The Eureka NEC101 Cordless Stick Vacuum stands out as an excellent choice for maintaining beautiful hardwood floors. Its ultra-lightweight and cordless design makes cleaning your home a joyous, unrestricted experience. This vacuum is not just about convenience; it also delivers powerful suction to handle everything from fine dust to stubborn pet hair, all while being gentle on your delicate surfaces.

See also  5 Best Sanders for Car Bodywork: Quality Picks by Pros

Key Features That Stand Out

  • Ultra-Lightweight & Cordless Design: Weighing only 5 lbs, the NEC101 offers unparalleled maneuverability for daily cleaning without any cord hassle.
  • 2-in-1 Versatility: Seamlessly converts from a stick vacuum to a handheld unit, making it perfect for reaching tight corners, upholstery, stairs, and even car interiors.
  • Powerful Suction with Dual Modes: Easily switch between Low and High-power settings to tackle diverse cleaning needs, from gentle hardwood sweeping to more intense pet hair removal on low-pile carpets.
  • Rechargeable Battery: Provides consistent power for effective cleaning sessions across your home.
  • Efficient Hardwood Cleaning: Designed to pick up debris effectively on bare floors without scratching or pushing dirt around.

Why We Recommend It

We’ve chosen the Eureka NEC101 as an Editor’s Choice for its outstanding balance of portability, power, and versatility. For hardwood floors, its lightweight body and effective suction ensure thorough cleaning without the risk of damage. It’s perfect for those who value quick, efficient, and flexible cleaning options.

Best For

This vacuum is best for individuals or families with predominantly hardwood floors and pets, who need a lightweight and adaptable vacuum for everyday cleanups and occasional deeper dives into pet hair messes.

Pros and Cons

Pros:
  • Extremely lightweight and easy to carry, ideal for multi-story homes.
  • Excellent maneuverability and cordless freedom.
  • Good suction power for its size, especially on hardwood.
  • Converts easily to a handheld for versatile cleaning tasks.
Cons:
  • Battery life might be shorter on high-power mode.
  • Dust bin may require frequent emptying if you have heavy pet shedding.

Customer Reviews

Customer Review: “We love this vacuum so much we have 2 of them! We purchased the first in 2022 and a second in 2023. The original is now used in the garage for vacuuming the cars especially after taking our 2 large dogs to the local dog beach. The second I use in the house every day, sometimes more than once per day”

Customer Review: “Easy to use – super light weight but so much in the vac that I had to empty it almost immediately. I’d be embarrassed to show you what this little vac picked up in no time. I did a quick lap of the majority of my main floor on the first charge and I ran it at the higher mode. It was so fantastically”

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

💰 Best Budget

3. LEVOIT LVAC-200 Cordless Stick Vacuum: Tangle-Resistant, Lightweight for Hard Floors, Carpet & Pet Hair.

LEVOIT LVAC-200 Cordless Stick Vacuum: Tangle-Resistant, Lightweight f

The LEVOIT LVAC-200 Cordless Stick Vacuum offers a fantastic balance of features and affordability, making it our top budget pick for hardwood floors. This vacuum excels at tackling hair, thanks to its tangle-resistant design, ensuring your cleaning routine is efficient and frustration-free. It’s lightweight and versatile, perfect for quick cleanups and maintaining spotless hard surfaces.

Key Features That Stand Out

  • Tangle-Resistant Design: Specially engineered to pick up both human and pet hair without getting tangled, minimizing maintenance.
  • Versatile Cleaning: Comes with multiple attachments, allowing you to clean various floor types and surfaces beyond just hardwood.
  • Lightweight and Nimble: Its light design ensures easy maneuverability around furniture and across different rooms.
  • Easy-Empty Dust Bin: A simple one-click mechanism makes emptying the dust bin hygienic and hassle-free.
  • Effective on Hard Floors: Designed to capture fine dust, debris, and pet hair efficiently from hardwood surfaces without scattering.

Why We Recommend It

If you’re looking for an effective yet budget-friendly cordless stick vacuum for hardwood floors, the LEVOIT LVAC-200 is an outstanding choice. Its tangle-resistant feature is a huge plus, especially for pet owners, and its straightforward operation combined with good suction power makes it a valuable everyday cleaner without breaking the bank.

Best For

This vacuum is best for individuals or small families seeking an affordable, efficient, and easy-to-maintain cordless vacuum for primarily hardwood and some carpeted areas, particularly those who struggle with pet or human hair tangles.

Pros and Cons

Pros:
  • Excellent value for its price point.
  • Tangle-resistant brush head works wonders on hair.
  • Lightweight and easy to handle for quick daily cleanups.
  • Simple and hygienic dust bin emptying.
Cons:
  • Battery life might be average compared to higher-end models.
  • Suction power might not match premium vacuums for very heavy-duty tasks.

Customer Reviews

Customer Review: “I really like this vacuum for hardwood floors. It has strong suction and picks up very small particles like dirt and dust, which is exactly what I was looking for. It’s lightweight, simple to assemble, and switching between attachments and emptying the canister is easy. I wish the battery life were “

Customer Review: “I’ve been using the Levoit LVAC-200 for a little while now, and I’m genuinely impressed. It’s incredibly easy to use—lightweight, intuitive controls, and it transitions smoothly between surfaces without any fuss. I was surprised by how strong the cleaning power is for a vacuum this compact. It picks”

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

4. Cordless Stick Vacuum: Self-Standing, Anti-Tangle with Touch Screen for Hard Floors & Pet Hair.

Cordless Stick Vacuum: Self-Standing, Anti-Tangle with Touch Screen fo

This Cordless Stick Vacuum is a powerhouse designed to make cleaning your hardwood floors incredibly efficient and convenient. With its self-standing capability, you won’t need to lean it against walls or return it to a dock mid-clean. The anti-tangle brush and intuitive touch screen elevate the user experience, ensuring powerful performance and ease of use, especially for homes with pets.

Key Features That Stand Out

  • 50KPA Powerful Suction: Equipped with a robust 600W brushless motor, delivering up to 50,000Pa of suction, making quick work of dirt and debris.
  • Max 70 Mins Running Time: Features an 8*2800mAh rechargeable battery pack, offering extended cleaning sessions for larger spaces.
  • V-shaped Anti-Winding Brush: The innovative V-shaped spiral brush with a guide comb design effectively prevents hair tangles, ensuring continuous performance.
  • Self-Standing Design: Conveniently stands upright on its own, allowing you to pause cleaning without needing to find a leaning spot or a charging dock.
  • Intuitive Touch Screen: Provides easy control over settings and displays essential information during use.
See also  Top 5 3HP Table Saws: Expert Picks for Quality Cuts

Why We Recommend It

We highly recommend this cordless stick vacuum for its impressive suction power and long battery life, which are crucial for thorough cleaning of hardwood floors. The anti-tangle brush is a godsend for pet owners, and the self-standing feature adds a level of convenience that makes daily cleaning much less of a chore. It combines powerful performance with smart design elements.

Best For

This vacuum is perfect for larger homes with extensive hardwood flooring and pets, where high suction power, extended battery life, and convenience features like self-standing and anti-tangle brushes are a priority.

Pros and Cons

Pros:
  • Exceptional suction power for deep cleaning hardwood floors.
  • Long battery life supports cleaning larger areas without interruption.
  • Anti-tangle brush design is highly effective against pet and human hair.
  • Self-standing feature offers unmatched convenience during use.
Cons:
  • Potentially higher price point due to advanced features and power.
  • The touch screen might have a slight learning curve for some users.

Customer Reviews

Customer Review: “The Jellypig X100 is a great cordless vacuum! Wish we had bought one of these YEARS ago! It’s mind-boggling how much dirt it picks up from carpet that was vacuumed only hours before with a corded upright. The dirt trap is easy to clean out. Another really great feature is the telescopic tube noz”

Customer Review: “So far very happy. This vacuum is very light! Easy to maneuver. The suction has been impressive and we love the light at roller level. Perfect for seeing what’s really there. Easy to charge and quick. For the price we have been very happy with its power and ease of use. I would recommend for a quick”

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

5. Cordless Stick Vacuum: Self-Standing, Anti-Tangle Brush & OLED Touch Screen for Hardwood, Pet Hair.

Cordless Stick Vacuum: Self-Standing, Anti-Tangle Brush & OLED Touch S

This advanced Cordless Stick Vacuum takes cleaning hardwood floors to the next level with its powerful suction, intelligent design, and user-friendly features. The inclusion of an OLED touch screen and an anti-tangle brush makes it a premium choice for homes with high demands, especially those with pets and mixed flooring types. Its self-standing capability offers unparalleled convenience for effortless cleaning.

Key Features That Stand Out

  • 650W & 55KPa Super Suction Power: An upgraded brushless motor delivers an incredible 55,000Pa suction, ensuring no dirt particle is left behind on hardwood or other surfaces.
  • Max 70-min Battery Life & Self-standing Design: Powered by 8×2800 mAh high-capacity lithium-ion batteries for extended cleaning, complemented by a convenient self-standing feature.
  • LED Smart Touch Screen (OLED): The cutting-edge OLED touch screen allows for easy mode switching and displays real-time battery and power information.
  • Anti-Tangle Brush: Designed to prevent hair from wrapping around the brush roll, ensuring consistent performance and reduced maintenance.
  • Versatile for Hardwood & Pet Hair: Optimized to safely and effectively clean delicate hardwood surfaces while efficiently tackling pet hair.

Why We Recommend It

For those seeking a top-tier cleaning experience for their hardwood floors, this cordless stick vacuum is an exceptional choice. Its immense suction power means a single pass is often enough, saving you time and effort. The intelligent OLED screen and anti-tangle brush are significant upgrades that genuinely enhance the user experience, especially if you have pets. It’s a powerful, smart, and convenient solution.

Best For

This vacuum is best suited for homeowners who prioritize cutting-edge technology, maximum suction power, long battery life, and smart features for efficient cleaning of large homes with significant hardwood areas and pets.

Pros and Cons

Pros:
  • Unmatched suction power for superior cleaning results.
  • Longest battery life among reviewed models, perfect for extensive cleaning.
  • Advanced OLED touch screen for intuitive control and information.
  • Highly effective anti-tangle brush, a must-have for pet owners.
Cons:
  • Premium price point may not fit all budgets.
  • The high power modes might consume battery faster, as expected.

Customer Reviews

Customer Review: “This cordless vacuum cleaner exceeded all my expectations. The 650W motor and 55 kPa suction power truly make a difference: it picks up fine dust, crumbs, and pet hair in a single pass. The tangle-free brush has been a lifesaver, as I no longer have to clean it constantly. The battery lasts a very l”

Customer Review: “Pros:easy to use!love the light on it, which allows you to see all the dirt on the hardwood floor.The HEPA filter works great!Light weightCons:The battery dies fast on high modeThe roller on the bottom will need to be cleaned after a couple of monthsI would recommend it for apartments or small house”

Complete Buying Guide for Best Cordless Stick Vacuum For Hardwood Floors

Choosing the best cordless stick vacuum for hardwood floors can feel a little overwhelming with so many options out there. But don’t worry, we’re here to break down the most important factors to consider so you can confidently pick the perfect one for your home. Remember, your beautiful hardwood floors deserve a vacuum that cleans effectively without causing any damage.

Essential Factors We Consider

When we evaluate cordless stick vacuums for hardwood, we look at several key features to ensure they meet the specific needs of these delicate surfaces:

  • Brush Head Design: For hardwood, a soft roller brush or a brush head with soft bristles is crucial. This prevents scratches and scuffs while effectively picking up fine dust, pet hair, and debris. Avoid aggressive beater bars often found on carpet-focused vacuums.
  • Suction Power: While you don’t need industrial-level suction, a strong motor is vital for picking up embedded dirt in crevices and stubborn pet hair without multiple passes. Look for models with adjustable power settings so you can switch between gentle and powerful cleaning.
  • Battery Life & Charging Time: Cordless convenience is great, but only if the battery lasts long enough! Consider your home’s size. For smaller apartments, 20-30 minutes might be fine, but for larger homes, aim for 45 minutes or more. Also, check how long it takes to fully recharge.
  • Weight & Maneuverability: A lightweight design and a swivel steering head make navigating around furniture and corners effortless. This is especially important for quick daily cleanups on hardwood, where you want to glide smoothly.
  • Filtration System: A good HEPA filtration system is a must, especially if you have allergies or pets. It traps fine dust, dander, and allergens, releasing cleaner air back into your home.
  • Dustbin Capacity & Emptying: A larger dustbin means less frequent emptying, which is a convenience. Also, consider how easy and hygienic it is to empty the bin without creating a dust cloud.
  • Versatility (2-in-1 Features): Many stick vacuums convert into handheld units, which is fantastic for cleaning stairs, upholstery, or even your car. This adds significant value and extends the vacuum’s utility beyond just floors.
See also  5 Best 5 Inch Random Orbital Sanders: Worth Every Penny

Budget Planning

Cordless stick vacuums range widely in price, from budget-friendly options under $200 to premium models costing upwards of $500+. It’s helpful to set a budget before you start shopping. More expensive models often offer superior suction, longer battery life, advanced filtration, and smart features like LED displays or self-standing capabilities. However, you can still find excellent vacuums for hardwood floors in the mid-range that perform exceptionally well for daily cleaning. Consider what features are most important to you and your cleaning habits, and weigh them against the cost to find the best value.

Final Thoughts

Ultimately, the best cordless stick vacuum for hardwood floors is one that fits your lifestyle, budget, and specific cleaning needs. Prioritize models with gentle brush rolls, good suction, and a battery life suitable for your home size. Don’t forget about features like lightweight design, easy-to-empty dustbins, and anti-tangle technology, especially if you have pets. By considering these factors, you’ll be well on your way to enjoying sparkling clean hardwood floors with minimal effort.

Frequently Asked Questions

Q: Why choose a cordless stick vacuum for hardwood floors?

A: Cordless stick vacuums are excellent for hardwood floors because they are lightweight, easy to maneuver, and eliminate the risk of scratching floors with cords. Their specialized soft brush rolls are designed to gently yet effectively pick up debris without causing damage, making quick cleanups a breeze.

Q: What features are essential for hardwood floor cleaning?

A: Key features include a soft roller brush or soft-bristled head to prevent scratches, strong but adjustable suction power for various debris types, good battery life to cover your entire area, and lightweight design for easy handling. Anti-tangle technology is also highly beneficial for homes with pets.

Q: How important is suction power for hardwood?

A: Suction power is very important. While you don’t need the same intensity as for deep carpets, good suction ensures that fine dust, pet hair, crumbs, and debris are effectively lifted from the floor and crevices. Look for models with at least two power settings, allowing you to choose between a gentle clean for everyday dust and a more powerful mode for stubborn messes.

Q: How do I maintain my cordless stick vacuum?

A: Regular maintenance ensures longevity and optimal performance. This typically involves emptying the dustbin after each use, cleaning or replacing filters as recommended by the manufacturer, and checking the brush roll for any tangled hair or debris (especially if it’s not an anti-tangle model). Wiping down the exterior with a damp cloth also helps keep it clean.

Q: Can these vacuums also clean rugs or carpets?

A: Many cordless stick vacuums are designed for multi-surface cleaning, including low-pile rugs and carpets. However, for deep-pile carpets, they might not offer the same deep cleaning as a dedicated upright vacuum. Always check the product specifications; some models come with interchangeable brush heads or variable power settings optimized for different floor types.

There you have it! Our comprehensive look at the best cordless stick vacuum for hardwood floors. We hope this guide has given you the confidence and information you need to make the perfect choice for your home. From battling pet hair to zipping through daily dust, a great cordless stick vacuum will transform your cleaning routine, making it faster, easier, and more effective for your beautiful hardwood. Ready to upgrade your cleaning game? Click on our affiliate links to check out these top picks on Amazon and start enjoying spotless floors today!

// Fetch real-time product data for all products when page loads
(function() {
const products = [‘B09QYB17J2’, ‘B08YNMQ1MC’, ‘B0CB6B2JWG’, ‘B0F1N21NKM’, ‘B0F21GQ1DG’];
const affiliateTag = ‘arcweldingpro0d-20’;

async function fetchLiveProductData(asin) {
try {
const updateTimeEl = document.getElementById(‘update-time-‘ + asin);
if (updateTimeEl) updateTimeEl.innerHTML = ‘⏳ Fetching…’;

const amazonUrl = ‘https://www.amazon.com/dp/’ + asin;
const response = await fetch(‘https://api.allorigins.win/raw?url=’ + encodeURIComponent(amazonUrl));
const html = await response.text();
const parser = new DOMParser();
const doc = parser.parseFromString(html, ‘text/html’);

let price = null;
const priceWhole = doc.querySelector(‘.a-price-whole’);
const priceFraction = doc.querySelector(‘.a-price-fraction’);
if (priceWhole) {
price = ‘$’ + priceWhole.textContent.trim() + (priceFraction ? priceFraction.textContent.trim() : ”);
}

let rating = null;
const ratingEl = doc.querySelector(‘[data-hook=”average-star-rating”] .a-icon-alt’);
if (ratingEl) {
const match = ratingEl.textContent.match(/(\d+\.\d+)/);
if (match) rating = match[1];
}

let reviewCount = null;
const reviewEl = doc.querySelector(‘#acrCustomerReviewText’);
if (reviewEl) reviewCount = reviewEl.textContent.trim();

if (price) {
const priceEl = document.getElementById(‘price-‘ + asin);
if (priceEl) {
priceEl.innerHTML = price;
priceEl.style.animation = ‘pulse 0.5s’;
}
}

// if (rating) {
// const ratingEl = document.getElementById(‘rating-‘ + asin);
// if (ratingEl) {
// const stars = ‘⭐’.repeat(Math.floor(parseFloat(rating)));
// ratingEl.innerHTML = stars + ‘ ‘ + rating + ‘/5’;
// ratingEl.style.animation = ‘pulse 0.5s’;
// }
// }

if (reviewCount) {
const reviewsEl = document.getElementById(‘reviews-‘ + asin);
if (reviewsEl) {
reviewsEl.innerHTML = reviewCount;
reviewsEl.style.animation = ‘pulse 0.5s’;
}
}

if (updateTimeEl) {
const now = new Date();
const timeStr = now.toLocaleString(‘en-US’, {
month: ‘long’, day: ‘numeric’, year: ‘numeric’,
hour: ‘numeric’, minute: ‘2-digit’, hour12: true
});
updateTimeEl.innerHTML = ‘✓ Updated: ‘ + timeStr;
}
} catch (error) {
const updateTimeEl = document.getElementById(‘update-time-‘ + asin);
if (updateTimeEl) updateTimeEl.innerHTML = ‘✓ Cached data’;
}
}

const style = document.createElement(‘style’);
style.textContent = `@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }`;
document.head.appendChild(style);

function loadAllProducts() {
products.forEach((asin, index) => {
setTimeout(() => fetchLiveProductData(asin), index * 2000);
});
}

if (document.readyState === ‘loading’) {
document.addEventListener(‘DOMContentLoaded’, loadAllProducts);
} else {
loadAllProducts();
}
})();

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top