Steps to reproduce
- Add this rule
example.org#%#//scriptlet('prevent-element-src-loading', 'script', 'TEST_WHATEVER_QWERTYU')
- Go to - https://example.org/
- In browser console run:
addEventListener('visibilitychange', () => {
console.log('test');
});
Script should works correctly, but it throws error, because thisArg is undefined in this case.
Screenshots


It looks like that it's a new issue and it worked correctly in previous version (I mean in scriptlets library 1.6.x).