Closed Alex-302 closed 4 years ago
Both are interesting cases, we should figure out what's wrong with them
Another one case where scriptlet does not help https://github.com/AdguardTeam/AdguardFilters/issues/51872
The website checks charCodeAt
function length and if it's less than 28 characters, it for some reason decides to not show ads at all. No idea why this is happening, but there's definitely no issues with how AG scriptlets works.
Short-term solution: use something like #%#String.prototype.charCodeAt = function() { return true; }
However, I am pretty sure it will stop working eventually and we'll need to find a better one.
sinoptik.ua##+js(set-constant, String.prototype.charCodeAt, trueFunc)
but not blocks in AdGuard(extension)sinoptik.ua#%#//scriptlet("set-constant", "String.prototype.charCodeAt", "trueFunc")