• Resolved Dave

    (@csn123)


    I need to block the JS from another plugin (Sassy Social Sharing). I’ve tried adding each of these variations in turn to the URL section of ‘Block a script, iframe or plugin’ under Complianz > Integrations.

    [redacted]/wp-content/plugins/sassy-social-share/includes/../public/js/sassy-social-share-public.js
    
    /wp-content/plugins/sassy-social-share/includes/../public/js/sassy-social-share-public.js
    
    sassy-social-share-public.js

    None of these succeed at blocking the JS file until permission is granted. I’ve set the placeholder to target a DIV class and it does this perfectly. It’s just the associated JS file still loads.

    I’ve blocked external scripts using this method, but it doesn’t seem to intercept the local plugin-loaded JS files.

    Any ideas on what I’m doing wrong? Is it possible to target it by the script ID registered within WordPress (heateor_sss_sharing_js)?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Dave

    (@csn123)

    Curiously, ReCaptcha in CF7 isn’t being blocked on this site, even though the integrations are selected, so I wonder if there’s something on the site interfering with Complianz?

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @csn123,

    I have a suspicion, could you try using sassy-social-share-public as the URL to block (under Complianz > Integration > Script Center > Block a Script, iFrame or Plugin).

    And then Save the integration, but try doing this by using one of the other Save buttons on the page (such as the ones under “Plugins” or “Services”) instead of the one in your Integration itself.

    Kind regards, Jarno

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @csn123,

    As for CF7 ReCaptcha, this will be unrelated to the behavior you described in your original post. Please see this article for the details on why the CF7 ReCaptcha implementation isn’t blocked: https://complianz.io/why-the-wp-consent-api-is-important-a-case-study-with-cf7-and-recaptcha/

    Kind regards, Jarno

    Thread Starter Dave

    (@csn123)

    It was a cache issue ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Blocking JS from another plugin’ is closed to new replies.