Aktif web sayfasından sadece metin içeriği yazdıran javascript kodudur.
document.write(document.body.innerText);