Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

Javascript for temporary extensions just doesn't work

  • 3 trả lời
  • 1 gặp vấn đề này
  • 8 lượt xem
  • Trả lời mới nhất được viết bởi 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?

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" [https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Your_second_WebExtension (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?

Tất cả các câu trả lời (3)

more options

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

Hữu ích?

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.

Hữu ích?

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

Hữu ích?

Đặt một câu hỏi

Bạn phải đăng nhập vào tài khoản của bạn để trả lời bài viết. Vui lòng bắt đầu một câu hỏi mới, nếu bạn chưa có tài khoản.