• Resolved dukearmi

    (@dukearmi)


    Hello,

    I’ve been trying to block scripts for quite some time, but to no avail. Both are put in the <head>:

    <script type="text/javascript" async="async" data-noptimize="1" data-cfasync="false" src="//scripts.scriptwrapper.com/tags/f18a9c1d-3e42-4d11-b6c7-9f0dc25ae792.js"></script>
    <script data-grow-initializer="">
    !(function(){
    window.growMe || (
    (window.growMe = function(e){ window.growMe._.push(e); }),
    (window.growMe._ = [])
    );
    var e = document.createElement("script");
    e.type = "text/javascript";
    e.src = "https://faves.grow.me/main.js";
    e.defer = !0;
    e.setAttribute("data-grow-faves-site-id", "U3p4YToxYzZlMjBiMC03NTZhLTRjZTAtYTg5OS1lZTJiNGRmNTFkMw==");
    var t = document.getElementsByTagName("script")[0];
    t.parentNode.insertBefore(e, t);
    })();
    </script>

    I’ve tried the exact file URL and the following Regex:

    ^(?:https?:)?\/\/(?:[\w.-]+.)?scriptwrapper.com\/.*

    ^(?:https?:)?\/\/(?:[\w.-]+.)?grow.me\/.*

    Nothing worked, is there a way to block these scripts?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor overengineer

    (@overengineer)

    Hey, @dukearmi!

    Ensure that your scripts load after /wp-content/plugins/pressidium-cookie-consent/public/block-scripts.js. To manage scripts yourself, set the type of your <script> tags to "text/plain" and the data-cookiecategory attribute to "analytics", "targeting", or "preferences".

    You can find more information on how to block scripts in our wiki: https://github.com/pressidium/pressidium-cookie-consent/wiki/Blocking-scripts

    Plugin Contributor overengineer

    (@overengineer)

    Hey, @dukearmi!

    As there hasn’t been any activity on this topic for a while, I’ll mark it as resolved.

    If anything else comes up, feel free to reopen it or open a new one 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Not blocking Scripts’ is closed to new replies.