DEV Community

Cover image for Make you own Web
decker
decker

Posted on • Edited on

Make you own Web

Annoyed from the content hidden behind a paywall on https://www.heise.de.

No problem.

Get rid of it by using an extension that executes client scripts on load i.e. scripty with this simple script.

const articles = document.querySelectorAll('[data-component="TeasersModule"')
for (const article of articles) {
  const isHeisePlus = article.textContent.includes('heise_plus')
  if (isHeisePlus) {
    article.parentNode.removeChild(article)
  }
}
Enter fullscreen mode Exit fullscreen mode

Before

Image description

After

Image description

Top comments (0)