Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    can you let me know what browser and which adblocker you are using?

    I would need to test it on my development website.

    Thread Starter maximreynaud

    (@maximreynaud)

    I’m on Google Chrome, and I use varanida. I have the same problem with addblock

    Js are blocked cause of :
    “/js/adverts”

    in this urls :
    -https://brocantez.com/wp-content/plugins/wpadverts/assets/js/adverts-frontend.js?ver=1.3.2
    -https://brocantez.com/wp-content/plugins/wpadverts/assets/js/adverts-multiselect.js?ver=3

    I also just discovered this issue with my adblocker.

    I use this adblocker.

    https://chrome.google.com/webstore/detail/adblock/gighmmpiobklfepjocnamgkkbiglidom

    Plugin Author Greg Winiarski

    (@gwin)

    In the Varanida plugin, the URLs seem to be blocked when a “JPN: ABP Japanese filters (日本用フィルタ)” filter is enabled.

    In the Adblock i am not sure, it does not allow disabling different filters.

    Either way, the problem seems to be that the CSS and JavaScript file names start with “adverts-” and the adblocks block the files just because of that.

    Right now i am afraid there is no easy way around this, sorry. The file names need to be changed in WPAdverts in order to resolve it, i will do that in the next WPAdverts release.

    In the mean time if you would like to do it yourself, then you can rename the two files:
    – wpadverts/assets/js/adverts-frontend.js -> wpadverts-frontend.js
    – wpadverts/assets/css/adverts-frontend.css -> wpadverts-frontend.css

    Then open wpadverts/wpadverts.php file and change lines

    
    wp_register_style( 'adverts-frontend', ADVERTS_URL . '/assets/css/adverts-frontend.css', array(), "1.3.2" );
    

    to

    
    wp_register_style( 'adverts-frontend', ADVERTS_URL . '/assets/css/wpadverts-frontend.css', array(), "1.3.2" );
    

    and

    
    wp_register_script('adverts-frontend', ADVERTS_URL . '/assets/js/adverts-frontend.js', array( 'jquery' ), "1.3.2" );
    

    to

    
    wp_register_script('adverts-frontend', ADVERTS_URL . '/assets/js/wpadverts-frontend.js', array( 'jquery' ), "1.3.2" );
    

    I just ran into this yesterday with uBlock Origin; I added all the sites the the uBlock whitelist to resolve it, and then just hoped not too many customers were affected. I believe it was the admin site (including adverts-admin.js or similar) that was the problem, not publicly viewing the ads.

    I put a notice at the top of the page to disable it for that page.

    Plugin Author Greg Winiarski

    (@gwin)

    Sorry, the notice on top is the only solution right now i am afraid.

    I am planning an update which will fix this problem on 4th September (or maybe even on 3rd September if i will manage to test it).

    I got your fix to work Greg, but I also had to change the filenames and the references in the php file for:

    adverts-gallery.js
    adverts-multiselect.js

    I would just change all the file names and all of the references to reflect the changes if they start with “adverts” because the image upload was the only thing I noticed, but I am sure there will be other issues with the adblockers recognizing those files as potential ads.

    I use Adblock Plus BTW.

    Plugin Author Greg Winiarski

    (@gwin)

    Thanks for the details, yes i think this affects every file which name starts with ‘adverts’.

    In the next release which is scheduled for today all the assets filenames starting with ‘adverts’ will be renamed to ‘wpadverts’.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Block by addblock’ is closed to new replies.