1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Service Issue Bug with uBlock and file uploader

Discussion in 'Resolved Bug Reports' started by Flo44, May 28, 2016.

  1. Flo44

    Flo44 New Member

    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: May 28, 2016
  2. Chris D

    Chris D XenForo Developer Staff Member

    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.

Share This Page