Etsy: toggle recommendation carousels
Hides or restores all recommendation carousels on the listing page with one click.
Code to copy
// Toggle all recommendation carousels on the listing page
const ID = 'jz-ety-hide-recs';
const old = document.getElementById(ID);
if (old) { old.remove(); }
else {
const s = document.createElement('style');
s.id = ID;
s.textContent = '[data-appears-component-name*="recommend"],'
+ '[data-appears-component-name*="you_may_also"],'
+ '[data-appears-component-name*="related"],'
+ '[data-appears-component-name*="more_from"],'
+ '[data-appears-component-name*="recently_viewed"]'
+ '{display:none!important}';
document.head.appendChild(s);
}
How to use this example
- Copy the code with the button above.
- Install JustZix (2 minutes) and open the extension on the target page.
- Add a new rule matching that page.
- Paste the code into the rule's JavaScript panel and save — it runs on every page visit.
Rate this example
No ratings yet — be the first.