Skip to content

Commit

Permalink
feat(document): remove 'Do Not Sell..' list item from osano drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
wri7tno committed Oct 11, 2024
1 parent d4cb0bd commit 10bf7ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
`,
Expand Down

0 comments on commit 10bf7ee

Please sign in to comment.