You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 --
If I use www.reddit.com##+js(trusted-replace-outbound-text, JSON.stringify, '/"csrf_token":.*?,/'), the comment loads, so this means the server expect something in the payload to be there in order to respond properly.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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 ?
@gorhill
All reactions