Blocking JS from another plugin

[ad_1]

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)?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer