This looks like a very VERY interesting technique!..but I also couldn’t get it to work, even when escaping the / in the urls, or copying them exactly as they stand in the source code.
Here’s what I did for a test:
{% capture h_content %}
{{ content_for_header }}
{% endcapture %}
{% if template contains “product” %}
{{ h_content | remove: “https://tabs.stationmade.com/registered-scripts/tabs-by-station.js?shop=hyttefeber.myshopify.com” }}
{{ h_content | remove: “https://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.2.4.min.js” }}
{% else %}
{{ content_for_header }}
{% endif %}
Any ideas?