From 10bf7eedd80806e3173ba3d938df3171ef4ab8e7 Mon Sep 17 00:00:00 2001 From: Luis Zenteno Date: Fri, 11 Oct 2024 13:06:45 -0600 Subject: [PATCH] feat(document): remove 'Do Not Sell..' list item from osano drawer --- pages/_document.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pages/_document.js b/pages/_document.js index d1d4999648..f27b355aa3 100644 --- a/pages/_document.js +++ b/pages/_document.js @@ -176,6 +176,12 @@ export default class MyDocument extends Document { document.addEventListener('DOMContentLoaded', function(event) { setTimeout(() => { document.getElementsByClassName('osano-cm-window__widget osano-cm-widget osano-cm-widget--position_right')[0].style.display = 'none'; + + const items = document.getElementsByClassName('osano-cm-drawer-item osano-cm-list__list-item osano-cm-list-item'); + + if (items.length > 4) { + items[4].style.display = 'none'; + } }, 100); }); `,