René's URL Explorer Experiment


Title: fix: ensure document.body is available before injecting custom scripts by cursor[bot] · Pull Request #7556 · formbricks/formbricks · GitHub

Open Graph Title: fix: ensure document.body is available before injecting custom scripts by cursor[bot] · Pull Request #7556 · formbricks/formbricks

X Title: fix: ensure document.body is available before injecting custom scripts by cursor[bot] · Pull Request #7556 · formbricks/formbricks

Description: Open Source Qualtrics Alternative. Contribute to formbricks/formbricks development by creating an account on GitHub.

Open Graph Description: What does this PR do? Fixes FORMBRICKS-VE This PR fixes a critical bug where custom scripts injected via CustomScriptsInjector were attempting to access document.body before it was available during...

X Description: What does this PR do? Fixes FORMBRICKS-VE This PR fixes a critical bug where custom scripts injected via CustomScriptsInjector were attempting to access document.body before it was available during...

Opengraph URL: https://github.com/formbricks/formbricks/pull/7556

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:22c02ef4-d110-5f9f-d56e-73ce6a66fd48
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD740:2608B0:520E42:746DFF:6A4BCAE5
html-safe-nonce2f24b1756c82289106841002e8d43afd776e6ce5605632a5e432cac1185a05de
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzQwOjI2MDhCMDo1MjBFNDI6NzQ2REZGOjZBNEJDQUU1IiwidmlzaXRvcl9pZCI6Ijg5OTU0OTE3MTI1NDYzNjAwMzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac300ad3123b0dd273d6092df1bb1174aee4d4c6c042e2cb73700ac903e896f948
hovercard-subject-tagpull_request:3430960742
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/formbricks/formbricks/7556/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/1e05208b6fc366a8175b32a2e7f8077e8acd393e33901a16f7909521c9cae6e5/formbricks/formbricks/pull/7556
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1e05208b6fc366a8175b32a2e7f8077e8acd393e33901a16f7909521c9cae6e5/formbricks/formbricks/pull/7556
og:image:altWhat does this PR do? Fixes FORMBRICKS-VE This PR fixes a critical bug where custom scripts injected via CustomScriptsInjector were attempting to access document.body before it was available during...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecursor[bot]
hostnamegithub.com
expected-hostnamegithub.com
None14aa00ce5bdb34d0eefb5facbffd7de9e144c688d8a93ef8df902d5f94b51dd7
turbo-cache-controlno-cache
go-importgithub.com/formbricks/formbricks git https://github.com/formbricks/formbricks.git
octolytics-dimension-user_id105877416
octolytics-dimension-user_loginformbricks
octolytics-dimension-repository_id500289888
octolytics-dimension-repository_nwoformbricks/formbricks
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id500289888
octolytics-dimension-repository_network_root_nwoformbricks/formbricks
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release58b8f89190447502561829f30862aa0a99d53367
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/formbricks/formbricks/pull/7556#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fformbricks%2Fformbricks%2Fpull%2F7556
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fformbricks%2Fformbricks%2Fpull%2F7556
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=formbricks%2Fformbricks
Reloadhttps://github.com/formbricks/formbricks/pull/7556
Reloadhttps://github.com/formbricks/formbricks/pull/7556
Reloadhttps://github.com/formbricks/formbricks/pull/7556
Please reload this pagehttps://github.com/formbricks/formbricks/pull/7556
formbricks https://github.com/formbricks
formbrickshttps://github.com/formbricks/formbricks
Notifications https://github.com/login?return_to=%2Fformbricks%2Fformbricks
Fork 2.4k https://github.com/login?return_to=%2Fformbricks%2Fformbricks
Star 12.5k https://github.com/login?return_to=%2Fformbricks%2Fformbricks
Code https://github.com/formbricks/formbricks
Issues 196 https://github.com/formbricks/formbricks/issues
Pull requests 21 https://github.com/formbricks/formbricks/pulls
Discussions https://github.com/formbricks/formbricks/discussions
Actions https://github.com/formbricks/formbricks/actions
Security and quality 1 https://github.com/formbricks/formbricks/security
Insights https://github.com/formbricks/formbricks/pulse
Code https://github.com/formbricks/formbricks
Issues https://github.com/formbricks/formbricks/issues
Pull requests https://github.com/formbricks/formbricks/pulls
Discussions https://github.com/formbricks/formbricks/discussions
Actions https://github.com/formbricks/formbricks/actions
Security and quality https://github.com/formbricks/formbricks/security
Insights https://github.com/formbricks/formbricks/pulse
cursor[bot]https://github.com/cursor[bot]
mainhttps://github.com/formbricks/formbricks/tree/main
cursor/custom-script-body-access-f2fbhttps://github.com/formbricks/formbricks/tree/cursor/custom-script-body-access-f2fb
Conversationhttps://github.com/formbricks/formbricks/pull/7556
Commits1 (1)https://github.com/formbricks/formbricks/pull/7556/commits
Checkshttps://github.com/formbricks/formbricks/pull/7556/checks
Files changedhttps://github.com/formbricks/formbricks/pull/7556/files
fix: ensure document.body is available before injecting custom scriptshttps://github.com/formbricks/formbricks/pull/7556#top
cursor[bot]https://github.com/cursor[bot]
mainhttps://github.com/formbricks/formbricks/tree/main
cursor/custom-script-body-access-f2fbhttps://github.com/formbricks/formbricks/tree/cursor/custom-script-body-access-f2fb
https://github.com/apps/cursor
cursorhttps://github.com/apps/cursor
Mar 22, 2026https://github.com/formbricks/formbricks/pull/7556#issue-4116481648
Please reload this pagehttps://github.com/formbricks/formbricks/pull/7556
[REFACTOR] Unify SingleResponse Card and increase UX #454https://github.com/formbricks/formbricks/issues/454
How we Code at Formbrickshttps://formbricks.com/docs/contributing/how-we-code
https://cursor.com/agents/bc-d0fbcc17-ab6f-4c78-adfb-bf61ef90b8d6
https://cursor.com/background-agent?bcId=bc-d0fbcc17-ab6f-4c78-adfb-bf61ef90b8d6
Please reload this pagehttps://github.com/formbricks/formbricks/pull/7556
https://github.com/cursoragent
fix: ensure document.body is available before injecting custom scriptshttps://github.com/formbricks/formbricks/pull/7556/commits/5768834107d22b08427342b47bb3410aa17d44fd
5768834https://github.com/formbricks/formbricks/pull/7556/commits/5768834107d22b08427342b47bb3410aa17d44fd
#454https://github.com/formbricks/formbricks/issues/454
https://github.com/apps/sonarqubecloud
sonarqubecloudhttps://github.com/apps/sonarqubecloud
Mar 22, 2026https://github.com/formbricks/formbricks/pull/7556#issuecomment-4106571089
https://sonarcloud.io/dashboard?id=formbricks_formbricks&pullRequest=7556
https://camo.githubusercontent.com/6cc27951a82703bd6a32deed62ec92af84fc495762ca86bc7af5a3ac490c7bda/68747470733a2f2f736f6e6172736f757263652e6769746875622e696f2f736f6e6172636c6f75642d6769746875622d7374617469632d7265736f75726365732f76322f636f6d6d6f6e2f7061737365642d313670782e706e67
1 New issuehttps://sonarcloud.io/project/issues?id=formbricks_formbricks&pullRequest=7556&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true
https://camo.githubusercontent.com/5ad34d7e6f2a5aa0d644209f46bb24fba00f31f704923ce46fe8434f94917f73/68747470733a2f2f736f6e6172736f757263652e6769746875622e696f2f736f6e6172636c6f75642d6769746875622d7374617469632d7265736f75726365732f76322f636f6d6d6f6e2f61636365707465642d313670782e706e67
0 Accepted issueshttps://sonarcloud.io/project/issues?id=formbricks_formbricks&pullRequest=7556&issueStatuses=ACCEPTED
https://camo.githubusercontent.com/6cc27951a82703bd6a32deed62ec92af84fc495762ca86bc7af5a3ac490c7bda/68747470733a2f2f736f6e6172736f757263652e6769746875622e696f2f736f6e6172636c6f75642d6769746875622d7374617469632d7265736f75726365732f76322f636f6d6d6f6e2f7061737365642d313670782e706e67
0 Security Hotspotshttps://sonarcloud.io/project/security_hotspots?id=formbricks_formbricks&pullRequest=7556&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true
https://camo.githubusercontent.com/6cc27951a82703bd6a32deed62ec92af84fc495762ca86bc7af5a3ac490c7bda/68747470733a2f2f736f6e6172736f757263652e6769746875622e696f2f736f6e6172636c6f75642d6769746875622d7374617469632d7265736f75726365732f76322f636f6d6d6f6e2f7061737365642d313670782e706e67
0.0% Coverage on New Codehttps://sonarcloud.io/component_measures?id=formbricks_formbricks&pullRequest=7556&metric=new_coverage&view=list
https://camo.githubusercontent.com/6cc27951a82703bd6a32deed62ec92af84fc495762ca86bc7af5a3ac490c7bda/68747470733a2f2f736f6e6172736f757263652e6769746875622e696f2f736f6e6172636c6f75642d6769746875622d7374617469632d7265736f75726365732f76322f636f6d6d6f6e2f7061737365642d313670782e706e67
0.0% Duplication on New Codehttps://sonarcloud.io/component_measures?id=formbricks_formbricks&pullRequest=7556&metric=new_duplicated_lines_density&view=list
See analysis details on SonarQube Cloudhttps://sonarcloud.io/dashboard?id=formbricks_formbricks&pullRequest=7556
Please reload this pagehttps://github.com/formbricks/formbricks/pull/7556
https://github.com/jobenjada
jobenjadahttps://github.com/jobenjada
Apr 27, 2026https://github.com/formbricks/formbricks/pull/7556#issuecomment-4326967761
@mattinannthttps://github.com/mattinannt
Please reload this pagehttps://github.com/formbricks/formbricks/pull/7556
https://github.co/hiddenchars
https://github.com/formbricks/formbricks/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fformbricks%2Fformbricks%2Fpull%2F7556
Please reload this pagehttps://github.com/formbricks/formbricks/pull/7556
https://github.com/jobenjada
https://github.com/cursoragent
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.