搜尋 Mozilla 技術支援網站

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

Learn More

Javascript for temporary extensions just doesn't work

  • 3 回覆
  • 1 有這個問題
  • 8 次檢視
  • 最近回覆由 clarke980

more options

Hopefully this is the appropriate place to ask. Javascript just doesn't seem to work for temporary extensions. When I couldn't get my own extension to work, I tried to follow the tutorial in "Your second extension" (link) and it also just doesn't work. HTML and CSS load just fine but it's none functional. I can't even get a simple log out to console.

I just updated to Windows 11 a few days ago. Is it possible there is some setting I changed a long time ago that is causing this behavior?

所有回覆 (3)

more options

Did you try this in a new profile ? Did you check the Browser Console for relevant messages ?

有幫助嗎?

more options

You also can click the Inspect button for the temporarily loaded extension on the about:debugging page. This has a console that gathers messages from your background script and probably the Browser Action, but messages from content scripts are more likely to appear in the page's Web Console.

有幫助嗎?

more options

cor-el said

Did you try this in a new profile ? Did you check the Browser Console for relevant messages ?

jscher2000 said

You also can click the Inspect button for the temporarily loaded extension on the about:debugging page. This has a console that gathers messages from your background script and probably the Browser Action, but messages from content scripts are more likely to appear in the page's Web Console.

I hae done both of these, the browser console and the console brought up through clicking Inspect on the about:debugging page. The only thing that ever shows up is the html in the Inspect page, anything relating to js, be it console information or just information about scripts in general is entirely blank

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題