X
Tryk her for at gå til webstedets mobilversion.

Supportforum

How to stop sites from changing the behaviour of keys?

Skrevet

In some sites, I can't use arrow keys or pgup pgdown to scroll or f5 to refresh, which is very annoying. Disabling javascript does make the keys work again but breaks the sites. Is there a way to block the javascript thing that mess with the keys or force the browser standard key behaviour?

In some sites, I can't use arrow keys or pgup pgdown to scroll or f5 to refresh, which is very annoying. Disabling javascript does make the keys work again but breaks the sites. Is there a way to block the javascript thing that mess with the keys or force the browser standard key behaviour?

Yderligere systemdetaljer

Installerede plugins

  • Shockwave Flash 31.0 r0

Program

  • User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0

Yderligere information

Luk
jscher2000
  • Top 10 Contributor
8635 løsninger 70627 svar

It is okay if my answer is "Maybe"?

In Firefox 58+, if you check the Permissions panel of the Page Info dialog, there is an option to prevent the website from overriding keyboard shortcuts. However, I don't have Firefox 56 handy to see whether it had that option.

While you are on the site, you can call that up using any of these:

  • right-click a blank area of the page and choose View Page Info > Permissions
  • (menu bar) Tools menu > Page Info > Permissions
  • click the padlock or "i" icon to the left of the site address, then the ">" icon, then More Information > Permissions

Scan/scroll down to "Override Keyboard Shortcuts" and uncheck the "Use default" box, and then select the permission you prefer. In some versions of Firefox, there is a bug where setting Block disables the Backspace button in a form field, so you have to select text and delete it using the Delete key. That may or may not be a crucial issue for the sites where you want to block changes.

If you try this out, does it work?

It is okay if my answer is "Maybe"? In Firefox 58+, if you check the Permissions panel of the Page Info dialog, there is an option to prevent the website from overriding keyboard shortcuts. However, I don't have Firefox 56 handy to see whether it had that option. While you are on the site, you can call that up using any of these: * right-click a blank area of the page and choose View Page Info > Permissions * (menu bar) Tools menu > Page Info > Permissions * click the padlock or "i" icon to the left of the site address, then the ">" icon, then More Information > Permissions Scan/scroll down to "Override Keyboard Shortcuts" and uncheck the "Use default" box, and then select the permission you prefer. In some versions of Firefox, there is a bug where setting Block disables the Backspace button in a form field, so you have to select text and delete it using the Delete key. That may or may not be a crucial issue for the sites where you want to block changes. If you try this out, does it work?
jscher2000
  • Top 10 Contributor
8635 løsninger 70627 svar

Also, depending on how the site's scripts work, there may be a way to inject a counter-script to strip away its special key handling. You could investigate a user script as an option for that. These are two sites where people search for and request user scripts, with varying degrees of success:

It might not be practical for complex sites.

Also, depending on how the site's scripts work, there may be a way to inject a counter-script to strip away its special key handling. You could investigate a user script as an option for that. These are two sites where people search for and request user scripts, with varying degrees of success: * https://greasyfork.org/en/forum/categories/script-requests * https://openuserjs.org/corner It might not be practical for complex sites.
jscher2000
  • Top 10 Contributor
8635 løsninger 70627 svar

Also, since your Firefox identified itself to the forum as an out of date and no longer supported version:

The current releases of Firefox are:

If something is holding you back from upgrading Firefox, please let us know so we can suggest solutions or workarounds. Version 56 is not secure.

Also, since your Firefox identified itself to the forum as an out of date and no longer supported version: The current releases of Firefox are: * Regular release: 63.0 ([https://www.mozilla.org/firefox/all/ Installers]) * Extended Support Release (ESR): 60.3.0esr ([[Switch to Firefox Extended Support Release (ESR) for personal use]]) If something is holding you back from upgrading Firefox, please let us know so we can suggest solutions or workarounds. Version 56 is not secure.

Spørgsmålsstiller

jscher2000 said

Also, since your Firefox identified itself to the forum as an out of date and no longer supported version: The current releases of Firefox are: If something is holding you back from upgrading Firefox, please let us know so we can suggest solutions or workarounds. Version 56 is not secure.

Firefox 57 killing most addons (and reducing the surviving ones to bare bones) is the main reason why I stayed on 56. Most people I know think the "new firefox" is worse, as it constantly crashes with out of memory errors or just hang/slow down for them. So I'm not the only crazy one staying in 56.

Thanks for the replies, sorry for asking.

''jscher2000 [[#answer-1166410|said]]'' <blockquote> Also, since your Firefox identified itself to the forum as an out of date and no longer supported version: The current releases of Firefox are: * Regular release: 63.0 ([https://www.mozilla.org/firefox/all/ Installers]) * Extended Support Release (ESR): 60.3.0esr ([[Switch to Firefox Extended Support Release (ESR) for personal use]]) If something is holding you back from upgrading Firefox, please let us know so we can suggest solutions or workarounds. Version 56 is not secure. </blockquote> Firefox 57 killing most addons (and reducing the surviving ones to bare bones) is the main reason why I stayed on 56. Most people I know think the "new firefox" is worse, as it constantly crashes with out of memory errors or just hang/slow down for them. So I'm not the only crazy one staying in 56. Thanks for the replies, sorry for asking.
jscher2000
  • Top 10 Contributor
8635 løsninger 70627 svar

It is sad to lose old extensions, but the depth of loss varies considerably based on which ones you need versus the capabilities of the replacements.

I'm not aware of out of memory errors being any worse in more recent versions of Firefox. If you encounter that problem, please post a new thread.

It is sad to lose old extensions, but the depth of loss varies considerably based on which ones you need versus the capabilities of the replacements. I'm not aware of out of memory errors being any worse in more recent versions of Firefox. If you encounter that problem, please post a new thread.