0
`<script>
  let linkElement = document.querySelector(".notion-collection-card a.notion-collection-card__anchor");
  
  // Loop until there are no more <a> elements to remove
  while (linkElement) {
    linkElement.parentNode.removeChild(linkElement);
    linkElement = document.querySelector(".notion-collection-card a.notion-collection-card__anchor");
  }
</script>
`
  1. Add this code in body tag, That's all

How does this works?

-> Simple, find notion collection card class and remove tag which is for link. and remove them, It loops untill all links are removed

Thanks, Have a good day

All I did is asked GPT

0 Answers0