Hi Frank,
I’ve tested that with a changed donottrack-min.js file. But I can only test the img-case. The cases iframe and script were tested in plain html.
I’ve changed line 409-413 in donottrackme.js
if ((typeof(invocation.arguments[0].src)==='string')&&((invocation.arguments[0].tagName.toLowerCase()==='script')||(invocation.arguments[0].tagName.toLowerCase()==='img')||(invocation.arguments[0].tagName.toLowerCase()==='iframe'))&&(invocation.arguments[0].src!=='javascript:void(0)')) {
if (sanitizer(invocation.arguments[0].src)===true) {
invocation.arguments[0].src='javascript:void(0)';
}
}
to
if ((typeof(invocation.arguments[0].src)==='string')&&((invocation.arguments[0].tagName.toLowerCase()==='script')||(invocation.arguments[0].tagName.toLowerCase()==='iframe'))&&(invocation.arguments[0].src!=='about:blank')) {
if (sanitizer(invocation.arguments[0].src)===true) {
invocation.arguments[0].src='about:blank';
}
}
if ((typeof(invocation.arguments[0].src)==='string')&&(invocation.arguments[0].tagName.toLowerCase()==='img')&&(invocation.arguments[0].src!=='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42?mNgYAAAAAMAASsJTYQAAAAASUVORK5CYII=')) {
if (sanitizer(invocation.arguments[0].src)===true) {
invocation.arguments[0].src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42?mNgYAAAAAMAASsJTYQAAAAASUVORK5CYII=';
}
}
Example for page without change: https://www.madavi.de
Example with changed donottrackme-min.js: https://www.ricki-z.com