Check that a filter using the $rewrite filter option is working as expected.
Test that a filter using the $rewrite filter option works on a script.
||abptestpages.org/testfiles/rewrite/*.js$rewrite=abp-resource:blank-js,domain=abptestpages.org
Test the blank-css $rewrite filter option.
||abptestpages.org/testfiles/rewrite/*.css$rewrite=abp-resource:blank-css,domain=abptestpages.org
Test the blank-html $rewrite filter option.
||abptestpages.org/testfiles/rewrite/*.html$rewrite=abp-resource:blank-html,domain=abptestpages.org
Test the blank-text $rewrite filter option.
||abptestpages.org/testfiles/rewrite/*.txt$rewrite=abp-resource:blank-text,domain=abptestpages.org
Test the 1x1-transparent-gif $rewrite filter option.
||abptestpages.org/testfiles/rewrite/1x1.gif$rewrite=abp-resource:1x1-transparent-gif,domain=abptestpages.org
Test the 2x2-transparent-png $rewrite filter option.
||abptestpages.org/testfiles/rewrite/2x2.png$rewrite=abp-resource:2x2-transparent-png,domain=abptestpages.org
Test the 3x2-transparent-png $rewrite filter option.
||abptestpages.org/testfiles/rewrite/3x2.png$rewrite=abp-resource:3x2-transparent-png,domain=abptestpages.org
Test the 32x32-transparent-png $rewrite filter option.
||abptestpages.org/testfiles/rewrite/32x32.png$rewrite=abp-resource:32x32-transparent-png,domain=abptestpages.org
Test that a filter using the $rewrite filter option works on an audio file.
||abptestpages.org/testfiles/rewrite/*.mp3$rewrite=abp-resource:blank-mp3,domain=abptestpages.org
audio/mpeg (mp3) files are not supported in Chrome 63 (requires 64+)
audio/mpeg (mp3) files are not supported in Firefox 70 (requires 71+)
Test that a filter using the $rewrite filter option works on a video file.
||abptestpages.org/testfiles/rewrite/*.mp4$rewrite=abp-resource:blank-mp4,domain=abptestpages.org
video/mp4 files are not supported in Chrome 63 (requires 64+) nor in Chromium