Adam
Adam
If I understand correctly the problem, it's already supported. For example, it's used in these rules: ```adblock apkmirror.com#%#//scriptlet('abort-on-stack-trace', 'document.querySelectorAll', '/Object\.visibleEl[\s\S]*?onload|Object\.vE/') sotwe.com#%#//scriptlet('abort-on-stack-trace', 'String.fromCharCode', '/Array\.map[\s\S]*?\[Symbol\.replace\][\s\S]*?String\.replace/') ```
You can use `#text` as a `nodeName` in `remove-node-text`, for example something like: ```adblock zdnet.co.kr#%#//scriptlet('remove-node-text', '#text', 'Blocked by AdGuard') ``` Or do you mean that you would like to have...
>By the way, Is using the #text as a second parameter in remove-node-text scriptlet Adguard scriptlet's own feature? I don't think so. For `text` nodes, the `nodeName` returns `#text` -...
It seems that I was wrong and the information below is only partially true. The problem is that website checks `headers.get("content-type")` and if it's not `application/json` then reject request. So,...
>Then, Can we resolve the issue with extra parameter selecting a return type? I think that we can check `responseType` and do it automatically without additional parameters. >Also, I think...
Regarding first case, if I'm not wrong, something like this should works: ```adblock twitter.com#%#//scriptlet('json-prune', 'timeline.instructions.1.addEntries.entries.1.content.timelineModule.items.1') ``` Second and third examples are rather incorrect - https://github.com/AdguardTeam/Scriptlets/blob/master/wiki/about-scriptlets.md#json-prune Maybe it should be something...
>when accessing the array elements will use the same syntax as when accessing the property elements? Yes. >I would like to ask the [set-constant](https://github.com/AdguardTeam/Scriptlets/blob/master/wiki/about-scriptlets.md#set-constant) filtering rule why not work in...
It seems to be related to this - https://github.com/AdguardTeam/Scriptlets/issues/183 (second point). If I'm not wrong, currently it works like that it removes all properties (`propsToRemove`) if `obligatoryProps` is matched. Probably...
I think that in the case of the extension for Firefox, the problem is that JavaScript rules are blocked by website's Content Security Policy, related to - https://github.com/AdguardTeam/AdguardBrowserExtension/issues/2782 and https://github.com/AdguardTeam/AdguardBrowserExtension/issues/1733...
It's a known problematic issue, related issues - https://github.com/AdguardTeam/AdguardFilters/issues/150142, https://github.com/AdguardTeam/AdguardFilters/issues/173355 By the way, it might be caused by DNS filtering, with DNS filtering disabled and AdGuard Extra enabled I cannot...