diff --git a/src/scripts/background.js b/src/scripts/background.js index 54b85b7..feaa4bb 100644 --- a/src/scripts/background.js +++ b/src/scripts/background.js @@ -35,6 +35,7 @@ function hideShorts() { if (selector === '[href^="/shorts/"]') { const shorts = document.querySelectorAll('[href^="/shorts/"]'); shorts.forEach(short => { + if (short.parentNode.id === 'item' || short.parentNode.parentNode.parentNode.parentNode.parentNode.id === 'submenu') return; short.parentNode.parentNode.parentNode.style.display = 'none'; }); } @@ -56,9 +57,7 @@ function hideShorts() { function removeParentNodes(element, n) { for (let i = 0; i < n; i++) { element = element.parentNode; - if (!element) { - return; - } + if (!element || element.parentNode.id === 'item' || element.parentNode.parentNode.parentNode.parentNode.parentNode.id === 'submenu') return; } element.parentNode.removeChild(element); } diff --git a/src/stylesheets/styles.css b/src/stylesheets/styles.css index 90a25b5..51d095b 100644 --- a/src/stylesheets/styles.css +++ b/src/stylesheets/styles.css @@ -81,6 +81,7 @@ a:hover { height: 12px; border-radius: 34px; background-color: #555; + cursor: pointer; } .toggle-container:hover .toggle-button { @@ -96,6 +97,7 @@ a:hover { border-radius: 30px; border: none; transition: all 0.2s ease; + cursor: pointer; } .toggle-container:before { @@ -202,7 +204,6 @@ a:hover { .tooltip { position: relative; display: inline-block; - cursor: pointer; } .tooltip::before {