We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Søg i Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Læs mere

Can someone tell me how to change SHIFTE-ENTER from WWW.????.NET to WWW.????.CO.UK ??

  • 11 svar
  • 2 har dette problem
  • 1 visning
  • Seneste svar af cor-el

more options

I am British (living in the UK). Approximately 49% of the domains I visit are in the format WWW.somedomainname.COM ... And another 49% or so are in the format WWW.somedomainname.CO.UK with the other tiny amount being something else.

I began using Firefox way back when because there were a variety of 'add-ons' which would allow me to change the behaviour of the SHIFT-ENTER combination to WWW.somedomainname.CO.UK having just typed somedomainname in the address bar - this made Firefox EXTREMELY USEFUL and it thus became my default browser.

Since the advent of Firefox 57 (Quantum), every single add-on which did this has been broken! Sure SHIFT-ENTER does work but it gives WWW.somedomainname.NET I have looked and looked and looked and looked in every place I can find to edit this manually to change it but I cannot find the setting which by default gives WWW. ..... .NET

For the love of God, please will someone tell me how to get to the setting inside the INI or other config files to edit it manually where-ever it actually is, seeing as all the add-ons have been broken by this change. PLEASE !

I don't want to change CTRL-ENTER to shortcut .COM to .CO.UK because that shortcut is equally as useful.... (One of the problems with being British and having a nigh-on 50/50 mix of .COM / .CO.UK domains in use here).

I have tried to help myself in this and can see that I will end up using another browser let set to .COM with another's CTRL-ENTER changed to .CO.UK .... If Chrome / Edge or anyone else offers me a fix before someone at Mozilla does, I will probably just stop using the browser. I cannot emphasise enough that of all the bells and whistles, dingalings and everything else on offer this being able to modify the behaviour of the SHIFT-ENTER shortcut is by far and away the most useful piece of Firefox because I have used it so much.

And as of yet, I have resisted taking the upgrade from v56 because doing so will affect my productivity

Please help - ANYBODY ??????

I am British (living in the UK). Approximately 49% of the domains I visit are in the format WWW.somedomainname.COM ... And another 49% or so are in the format WWW.somedomainname.CO.UK with the other tiny amount being something else. I began using Firefox way back when because there were a variety of 'add-ons' which would allow me to change the behaviour of the SHIFT-ENTER combination to WWW.somedomainname.CO.UK having just typed somedomainname in the address bar - this made Firefox EXTREMELY USEFUL and it thus became my default browser. Since the advent of Firefox 57 (Quantum), every single add-on which did this has been broken! Sure SHIFT-ENTER does work but it gives WWW.somedomainname.NET I have looked and looked and looked and looked in every place I can find to edit this manually to change it but I cannot find the setting which by default gives WWW. ..... .NET For the love of God, please will someone tell me how to get to the setting inside the INI or other config files to edit it manually where-ever it actually is, seeing as all the add-ons have been broken by this change. PLEASE ! I don't want to change CTRL-ENTER to shortcut .COM to .CO.UK because that shortcut is equally as useful.... (One of the problems with being British and having a nigh-on 50/50 mix of .COM / .CO.UK domains in use here). I have tried to help myself in this and can see that I will end up using another browser let set to .COM with another's CTRL-ENTER changed to .CO.UK .... If Chrome / Edge or anyone else offers me a fix before someone at Mozilla does, I will probably just stop using the browser. I cannot emphasise enough that of all the bells and whistles, dingalings and everything else on offer this being able to modify the behaviour of the SHIFT-ENTER shortcut is by far and away the most useful piece of Firefox because I have used it so much. And as of yet, I have resisted taking the upgrade from v56 because doing so will affect my productivity Please help - ANYBODY ??????

Alle svar (11)

more options

There are these two prefs available to set the fixup:

  • browser.fixup.alternate.prefix
  • browser.fixup.alternate.suffix

You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.

more options

" I don't want to change CTRL-ENTER to shortcut .COM to .CO.UK because that shortcut is equally as useful.... (One of the problems with being British and having a nigh-on 50/50 mix of .COM / .CO.UK domains in use here). "

The settings for browser.fixup.alternate.prefix & browser.fixup.alternate.suffix affect the shortcut of CTRL-ENTER and changing them would stop CTRL-ENTER from producing WWW.somedomainname.COM - as I explained in the question, I need to keep CTRL-ENTER as WWW. .... .COM and change SHIFT-ENTER from WWW. ... .NET to WWW. ..... .CO.UK

more options

The other modifier variants are hard coded and I'm not aware of a way to change them.

more options

I've just had a glance over the XML file you've referred to in this link https://dxr.mozilla.org/mozilla-release/source/browser/base/content/urlbarBindings.xml#805 and beginning at line 819, I see this:

         switch (true) {
           case (accel && shift):
             suffix = ".org/";
             break;
           case (shift):
             suffix = ".net/";
             break;
           case (accel):
             try {
               suffix = gPrefService.getCharPref("browser.fixup.alternate.suffix");
               if (suffix.charAt(suffix.length - 1) != "/")
                 suffix += "/";
             } catch (e) {
               suffix = ".com/";
             }
             break;
         }

Clearly the 'offending' line * suffix = ".net/"; * is there - is there any way for me to edit this and relink the browser myself???? (and every time afterwards when Mozilla updates the thing and breaks it)???

Where is this code stored exactly???

more options

This file is located in one of the omni.ja archives (specially packed ZIP archives).

resource:///chrome/browser/content/browser/
view-source:resource:///chrome/browser/content/browser/urlbarBindings.xml
more options

How can I find this file on my machine? And if it's find-able after downloading the "latest update" for Firefox (whenever that may be, they're ongoing)... If I know how to edit and re-install off the local (having been downloaded) sourcefiles, I can just edit the affected one and effectively apply my own patch with every update... I am not afraid to do this because although I don't know what language it (Firefox) was written in, about 30 (yes thirty) years ago, I used to code in Clipper on DOS platforms - I'm not a complete numpty... if you can tell me how to do this (or tell me where to read for myself how to do this), I'll patch it myself. I cannot emphasise enough that us Brits basically use 50/50 .COM / .CO.UK domains which means that putting up with how this has been broken makes the browser no better than all the others.... I'm not knocking the Americans who almost certainly wrote the thing - but they don't have the 50/50 .COM / .CO.UK problem.... and indeed .NET is probably of more use the other side of the pond... But the breaking of every single one of the add-ons has destroyed the advantages FF has have over Explorer, Chrome, Edge and the others - for me and lots of other Brits. I'd imagine too, this has been what's made FF our #1 preferred browser. This is so frustrating !!!!

Ændret af pafaulkner den

more options

If you open the second link then Firefox shows the actual path of the file.

  • view-source:resource:///chrome/browser/content/browser/urlbarBindings.xml
  • /browser/omni.ja!/chrome/browser/content/browser/urlbarBindings.xml
more options

Any idea on what I will need to open view (and modify and save back) the .JA file?

more options

It is a ZIP archive, but it is packed in a special way so it can be loaded as quickly as possible. You can try 7-ZIP or another archive manager.

more options

I have 3 machines here - 1 laptop and 2 desktops. Both desktops are at V56 because of the broken URL suffix additions. I've looked through the source (on this machine) and the lines are missing - but it's only at V56. I need to download the latest patches to the laptop and 'play' with 7-zip to see whether I can edit the XML file in the source on the local hard disk. If I can and it works, I will patch the least used desktop and do it again (and document)... And if that works, I will patch this machine and leave the "what I did" for the benefit of others - along with thanking you, cor-el for your inside knowledge and help on this.... One thing I can think of before I go to bed (it is almost 3am in England now) is will it (Firefox itself) fail some sort of CRC check if I've messed with this JA archive???

more options

Keep a copy of the original \browser\omni.ja file, so you can easily restore it.

There is this python script that you can possibly use: optimizejars.py:

optimizejars.py --deoptimize ./ ./ ./
optimizejars.py --optimize ./ ./ ./
python <path>/optimizejars.py  [--optimize|--deoptimize] <path_to_omni.jar.log> <path_to_omni.jar> <path_to_mod_omni.jar>