为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Script is not working

  • 无回复
  • 0 人有此问题
more options

Hi i have script

<script>

       (() => {
           const script = document.createElement("script");
           script.setAttribute("type", "text/javascript");
           script.src = "https://js.hsforms.net/forms/embed/v2.js";
           script.addEventListener("load", () => {
               hbspt.forms.create({
                   region: "na1",
                   portalId: "39672158",
                   formId: "892e2f84-627a-4c41-8f9e-642cb468a70c",
               });
           });


           document.head.append(script);
       })();
   </script>

I have contact the script provider team and it says that

For transparency, I'm going to relay what was shared in an internal inquiry:


Because it's an external feature of Firefox that is designed to disable exactly this kind of content (external tracking and forms), there isn't much we can do.

In Mozilla's docs they explicitly call out forms as one of the types of content this is designed to block which specifically mentions a few forms areas here.

Many websites load external ads, videos and other content with tracking code from other companies. For example, a website may embed a video from a video platform. The code that loads the video contains trackers. Blocking tracking content can make sites load much faster, but parts of pages might not work correctly or appear at all.


Tracking content can include:

Ads

Login fields

Forms

Payments

Comments

Videos and photos

Buttons

I can see this happening in the Private mode but can you see on your end, if following the settings in Firefox's documentation to disable this for all windows does the form appear in non-private mode? Hmm even after setting to custom and unchecking all the boxes the form script still doesn't load.

I added https://www.psbspeakers.com as an exception too but it doesn't appear to do the trick.

As far as this goes since this is something implemented by Firefox we're not able to overrule this on our end

so now what should i do

Hi i have script <script> (() => { const script = document.createElement("script"); script.setAttribute("type", "text/javascript"); script.src = "https://js.hsforms.net/forms/embed/v2.js"; script.addEventListener("load", () => { hbspt.forms.create({ region: "na1", portalId: "39672158", formId: "892e2f84-627a-4c41-8f9e-642cb468a70c", }); }); document.head.append(script); })(); </script> I have contact the script provider team and it says that For transparency, I'm going to relay what was shared in an internal inquiry: Because it's an external feature of Firefox that is designed to disable exactly this kind of content (external tracking and forms), there isn't much we can do. In Mozilla's docs they explicitly call out forms as one of the types of content this is designed to block which specifically mentions a few forms areas here. Many websites load external ads, videos and other content with tracking code from other companies. For example, a website may embed a video from a video platform. The code that loads the video contains trackers. Blocking tracking content can make sites load much faster, but parts of pages might not work correctly or appear at all. Tracking content can include: Ads Login fields Forms Payments Comments Videos and photos Buttons I can see this happening in the Private mode but can you see on your end, if following the settings in Firefox's documentation to disable this for all windows does the form appear in non-private mode? Hmm even after setting to custom and unchecking all the boxes the form script still doesn't load. I added https://www.psbspeakers.com as an exception too but it doesn't appear to do the trick. As far as this goes since this is something implemented by Firefox we're not able to overrule this on our end so now what should i do

您需要登录才能回复。如果您还没账号,可以提出新问题