Closed Alex-302 closed 1 month ago
Another steps to reproduce:
fiddle.jshell.net#%#//scriptlet('log-on-stack-trace', 'document.createElement')
https://jsfiddle.net/eacwL8gz/
Alert RegExp.$1: div
should be displayed, but there is an error:
Uncaught DOMException: Failed to execute 'createElement' on 'Document': The tag name provided ('') is not a valid name.
As far as I understand, the problem is that RegExp.$1
is changed by scriptlet and it causes error.
The same issue occurs with rule like this:
fiddle.jshell.net#%#//scriptlet('abort-on-stack-trace', 'document.createElement', 'blablabla.whatever_test')
but it works fine when regexp is used:
fiddle.jshell.net#%#//scriptlet('abort-on-stack-trace', 'document.createElement', '/blablabla\.whatever_test/')
AdGuard for Chrome 4.2.228
Steps to reproduce
deltabit.co#%#//scriptlet('log-on-stack-trace', 'document.createElement')
to user rulesActual behavior
The player is broken
Details
![image](https://github.com/AdguardTeam/Scriptlets/assets/8361299/ecc3619e-f5a0-48a5-b0ad-5a36741c907b)Reported by @ghajini