Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

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".

Tìm hiểu thêm

How to prevent blogspot.com from stealing Ctrl+K Firefox shortcut?

more options

A blogspot.com website steals Firefox internal keyboard shortcut Ctrl+K. I visited a webpage http://googleresearch.blogspot.com/2013/11/moores-law-part-1-brief-history-of.html. To go to search bar I press Ctrl+K but the website took over this keyboard shortcut and opens a new webpage in the same window instead. How can I prevent from websites "stealing" default firefox shortcuts?

A blogspot.com website steals Firefox internal keyboard shortcut Ctrl+K. I visited a webpage http://googleresearch.blogspot.com/2013/11/moores-law-part-1-brief-history-of.html. To go to search bar I press Ctrl+K but the website took over this keyboard shortcut and opens a new webpage in the same window instead. How can I prevent from websites "stealing" default firefox shortcuts?

Giải pháp được chọn

Hi dovydas, the NoScript and YesScript extensions can block JavaScript on a site-by-site basis. If you only want to block scripts on one or two sites, use YesScript (NoScript blocks on every site by default).

Đọc câu trả lời này trong ngữ cảnh 👍 2

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

more options

The support article mentions that for Linux systems, Ctrl+j is an alternate way to move focus to the search bar. Keyboard shortcuts - Perform common Firefox tasks quickly

But to address your question directly, I think the short answer is that pages may use a variety of JavaScript approach to intercept the keyboard, and I'm not aware of a setting to block that, or a universal approach to stripping custom keyboard handlers from a page, either selectively or in toto. Hmmm...

more options

Ctrl + J is also intercepted by blogspot.com and opens a new link. Exactly the same problem as with Ctrl + K.

Is it possible to totally restrict Javascript on *.blogspot.com but to allow it on the rest of the web?

Được chỉnh sửa bởi dovydas vào

more options

Another possible workaround is to press F6 or Ctrl+L (Ctrl+L isn't intercepted in this case) first to move the focus from the page and then Ctrl+K.

more options

Giải pháp được chọn

Hi dovydas, the NoScript and YesScript extensions can block JavaScript on a site-by-site basis. If you only want to block scripts on one or two sites, use YesScript (NoScript blocks on every site by default).

more options

Thank you. I've blocked Javascript on http://googleresearch.blogspot.com with YesScript however now the web page doesn't render at all. Google hides all content from me if I disable Javascript. I've blacklisted googleresearch.blogspot.com and I am not going to dig any deeper. Let's consider this case solved. F*ck Google.

more options

I accidentally edited that out of my reply: the Blogger templating system relies on scripting for everything.

I looked into the Dynamic Views template description and it mentions using J and K to switch between posts. Perhaps they just "forgot" to deactivate navigation when the user holds other keys down with j and k? I'm surprised, but since the page doesn't intercept Ctrl+j and Ctrl+k in Chrome, perhaps they just don't care?