dominio de teste de regras

This commit is contained in:
Renan Bernordi 2025-01-23 22:55:05 -03:00
parent bf892f9c5c
commit 4855f4e23b
5 changed files with 39 additions and 6 deletions

4
.gitignore vendored
View file

@ -1,8 +1,8 @@
vendor/
composer.lock
.env
app/logs
app/cache
app/logs/*.log
app/cache/*.gz
TODO.md
# Created by https://www.toptal.com/developers/gitignore/api/composer,windows,macos,linux

View file

@ -40,7 +40,4 @@ S3_ENDPOINT=
SELENIUM_HOST=localhost:4444
# Configurações de Debug
DEBUG=true
# Configurações do Hawk.so
HAWK_TOKEN=
DEBUG=true

0
app/cache/.gitkeep vendored Normal file
View file

View file

@ -339,5 +339,41 @@ return [
'__pvi' => null,
'_pctx' => null
]
],
// Domain test
'altendorfme.github.io' => [
'userAgent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
'headers' => [
'Accept-Language' => 'en-US,en;q=0.9',
'Cache-Control' => 'no-cache',
'Pragma' => 'no-cache'
],
'idElementRemove' => ['test-id-1', 'paywall'],
'classElementRemove' => ['test-class-1'],
'scriptTagRemove' => ['analytics.js', 'test-script.js', 'paywall.js'],
'cookies' => [
'visited' => 'true',
'consent' => 'accepted',
'session_id' => null
],
'classAttrRemove' => ['test-attr-1','paywall'],
'customCode' => '
console.log("worked");
',
'customStyle' => '
.test-style {
background: red;
}
',
'excludeGlobalRules' => [
'scriptTagRemove' => ['excluded-script.js'],
'classElementRemove' => ['excluded-class']
],
'fetchStrategies' => 'fetchContent',
'socialReferrers' => true,
'fromGoogleBot' => true,
'removeElementsByTag' => ['iframe'],
'removeCustomAttr' => ['data-*']
]
];

0
app/logs/.gitkeep Normal file
View file