simplifica o sistema de regras globais e por dominio

This commit is contained in:
Renan Bernordi 2024-12-03 23:39:06 -03:00
parent a51e309196
commit 0ba05af969
3 changed files with 106 additions and 107 deletions

View file

@ -804,7 +804,7 @@ class URLAnalyzer
foreach ($elements as $element) {
if ($element instanceof DOMElement) {
$style = $element->getAttribute('style');
$style = preg_replace('/(max-height|height|overflow|position|display)\s*:\s*[^;]+;?/', '', $style);
$style = preg_replace('/(max-height|height|overflow|position|display|visibility)\s*:\s*[^;]+;?/', '', $style);
$element->setAttribute('style', $style);
}
}