Order status page deprecated - how to add scripts back

I had a script that was used in “Order status page additional scripts” and I just realized it was deprecated? How do I add this script back to my order status page:

{% if first_time_accessed %}
  {% for item in checkout.line_items %}
    {% if item.product_id == 8865048559928 or item.product_id == 8365933035832 %}
      
    
    
    
    {% endif %}
  {% endfor %}
   
  {% endif %}