local js = require("js") local utils = require("scripts/utils") local global = js.global local cookies = global.Cookies local document = global.document local window = global.window local location = window.location local href = location.href print("Fengari script loaded successfully!") --[[ local h1 = document:createElement("p") h1.innerHTML = "Fetch!" document.body:appendChild(h1) ]] local policyAgreement = cookies:get("PolicyAgreement") if not policyAgreement and not string.match(href, "/policy") then location.href = "/policy" end if string.match(href, "/policy") then local agreeButton = document:getElementById("agree-button") if agreeButton then agreeButton:addEventListener( "click", function() cookies:set("PolicyAgreement", os.time()) location.href = "/" end ) end end