Running external scripts via google apps script, best practices?

Hi everyone,

I’ve been experimenting with some external scripts that I want to interact with via google apps script, and I ran into a few challenges. I was looking at some blox fruit scripts (URL Removed by Staff).

The issue is that when I try to fetch or run these scripts through apps script, I sometimes hit execution errors or the script behaves differently than expected. Some functions fail to return values, and occasionally I get issues with URL fetching or content-type handling.

I’m curious how others handle running or integrating third-party scripts like this safely and reliably. Are there particular patterns for wrapping external javascript so it works within apps script? Does anyone deal with cross-origin or sandboxing issues when trying to interact with scripts hosted outside of google’s environment?

Would love to hear any approaches, tips, or workarounds that have worked for you.