GreenLight blocks have special option to add JS directly in blocks. But it’s not just JS panel, it’s much bigger. Let’s dive in

Security for JS
First of all, due to security reasons, it works only for admin and editors with capability to edit options. Script will be saved in database in time when you save post, so, hackers can’t inject them just by adding code inside block
Editor execution
You can enable execution directly in editor by enabling special button. This will register script and attach it to Body of page. Please, note, that when you edit script, it will not be updated in editor, for this you need to reload page.
Smart Loading
Another good feature. Sometimes you need scripts that are not executed immediately on page. For example, it’s heavy 3d script. Smart loading feature will execute script only after some user interactions (scrolling, hovering, etc)
AI helper
You can ask AI helper to build you script that you need. Just click on relevant button
Placeholders
This is very cool – you can mix dynamic placeholders of GS (custom fields, options, etc) and put them directly inside script code. It will be replaced by dynamic data on frontend. Read more about inner placeholder system
Custom Input Placeholders
You can create own inputs and placeholders. It’s very useful, because if you have huge code, you may want to add custom values easily from simple interface without searching it in code. And it’s easy, just create unlimited inputs and put their placeholders directly to code
Support for modern JS import
Plugin automatically detects if you use import syntax and if yes, it will register script as module script