Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter Rajko Zschiegner

    (@ricki_z)

    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: http://www.madavi.de

    Example with changed donottrackme-min.js: http://www.ricki-z.com

Viewing 1 replies (of 1 total)