fix: remove some tracking scripts

This commit is contained in:
Hugo Poissonnet 2022-11-25 17:24:07 +01:00
parent e1613b1b9e
commit b39ce4b5f7
2 changed files with 13 additions and 0 deletions

View File

@ -117,6 +117,10 @@ const ARCHIVARIX_INCLUDE_CUSTOM = array(
'OPERATION' => 'REMOVE', 'OPERATION' => 'REMOVE',
'XPATH' => '//*[@id="twitter-2"]', 'XPATH' => '//*[@id="twitter-2"]',
], ],
[
'OPERATION' => 'REMOVE',
'XPATH' => '//*[@id="twitter-widgets-js"]',
],
// replace the hoster information widget in the right column on all pages // replace the hoster information widget in the right column on all pages
[ [
@ -131,6 +135,15 @@ const ARCHIVARIX_INCLUDE_CUSTOM = array(
'XPATH' => '//nav[contains(@class, "navbar")]', 'XPATH' => '//nav[contains(@class, "navbar")]',
'FILE' => 'warning_new_blog.php', 'FILE' => 'warning_new_blog.php',
], ],
// Remove Matomo tracker
[
'FILE' => 'empty_tracker.html',
'KEYPHRASE' => '<!-- Matomo -->.*<!-- End Matomo Code -->',
'LIMIT' => 1,
'REGEX' => 1,
'POSITION' => 0,
],
); );
/** /**