為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題