trusted-replace-outbound-text · uBlockOrigin/uBlock-issues · Discussion #3292 (original) (raw)
I'm testing this filter - www.reddit.com##+js(trusted-replace-outbound-text, JSON.stringify, /^.*csrf_token.*$/, '{"source:global","screen":{"height":0,"width":0}","view_stats":{"comments":0}}') as a fix for https://github.com/uBlockOrigin/uBlock-discussions/discussions/819#discussioncomment-7218569 and it does what I want it to do, but server responds with 400 status(Internel server error), is it because this payload is not in JSON format ? If yes, then how to convert to JSON format ? Internal Server error issue fixed with this version --
www.reddit.com##+js(trusted-replace-outbound-text, JSON.stringify, /^.*csrf_token.*$/, '{"source": "global","screen": {"height": 480, "width": 840},"view_stats":{"comments": 100}}')
But comments won't load still. How to fix that ?