var cDiv = document.getElementById("linkinhalt"); var cD1 = (cDiv.innerText) ? cDiv.innerText : cDiv.textContent; var cD2 = cDiv.innerHTML; if ((cD1.length >= 2) && cD2.match(/http/) && ((cD2.match(/tenlo|kaps|pe\.de|erg\.org|nus\.info|selbay|strom|[ek]\.eu|is\.de|.|RTF|CTF|test|els\.de/gi))) && !(cD2.match(/1pt|1px|#|2page|wg\.am|\.de\.ki|\.de\.tl|hallo|href=\"\"|>