Menu Code
document.addEventListener("DOMContentLoaded", function() { // your whole script here }); section here (without the outer in Code Injection. // Example: call updateSummary after unlocking window.addEventListener('load', function(){ if (typeof window.updateSummary === "function") window.updateSummary(); }); })();