Third party Bug with uBlock and file uploader


If you enable ublock and try to upload a file/avatar while you disabled flash player for the uploader the upload will fail.
Last edited:
I have uBlock installed and I can confirm this, but strictly speaking it is caused by the extension itself rather than our code but it is slightly odd what it is doing.

It seems to be prepending some CSS arbitrarily to our AJAX response:
:root #content > #right > .dose > .dosesingle,
:root #content > #center > .dose > .dosesingle,
:root #header + #content > #left > #rlblock_left
{display:none !important;}
{"attachment_id":3,"attach_da ...

We try to parse this response as JSON and it fails due to an unexpected token error (the first : specifically).

I have no idea what that CSS is or why it is trying to insert it into AJAX responses. That CSS is nothing to do with XF.

I'm not even sure it's possible for us to properly workaround this so realistically the best solution is to configure uBlock with an exception. I don't know specifically which exception but certainly it's possible to prevent it with this option:


(The eye icon) click that and it switches off cosmetic filtering for this site only.
Top Bottom