Die Funktionalität dieser Website ist durch Wartungsarbeiten eingeschränkt, die Ihr Erlebnis verbessern sollen. Wenn ein Artikel Ihr Problem nicht löst und Sie eine Frage stellen möchten, können Sie unsere Gemeinschaft über @FirefoxSupport auf Twitter, /r/firefox oder Reddit fragen.

Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Weitere Informationen

Disable UTF-8 input/percent encoding when using a search shortcut

  • 5 Antworten
  • 1 hat dieses Problem
  • 5 Aufrufe
  • Letzte Antwort von cor-el

more options

I've added a search shortcut for Wayback Machine where %s is the URL I need to search: https://web.archive.org/web/*/%s

But Firefox automatically encodes my URL; for example, when I copy-paste https://www.mozilla.org/en-US/ to search its archives with the shortcut, it is automatically encoded with UTF-8: https://web.archive.org/web/*/https%3A%2F%2Fwww.mozilla.org%2Fen-US%2F whereas I want it to lead me to https://web.archive.org/web/*/https://www.mozilla.org/en-US/.

I've googled around and haven't found a solution to this, and setting "browser.urlbar.decodeURLsOnCopy" to "true" only decodes it correctly when copied. The extension I've used to add the WM search shortcut gives me an option to encode input differently than default UTF-8, but I don't know how would I use it to disable encoding altogether. See attached pictures.

I've [https://addons.mozilla.org/en-US/firefox/addon/add-custom-search-engine/ added a search shortcut] for Wayback Machine where %s is the URL I need to search: https://web.archive.org/web/*/%s But Firefox automatically encodes my URL; for example, when I copy-paste https://www.mozilla.org/en-US/ to search its archives with the shortcut, it is automatically encoded with UTF-8: https://web.archive.org/web/*/https%3A%2F%2Fwww.mozilla.org%2Fen-US%2F whereas I want it to lead me to https://web.archive.org/web/*/https://www.mozilla.org/en-US/. I've googled around and haven't found a solution to this, and setting "browser.urlbar.decodeURLsOnCopy" to "true" only decodes it correctly when copied. The extension I've used to add the WM search shortcut gives me an option to encode input differently than default UTF-8, but I don't know how would I use it to disable encoding altogether. See attached pictures.
Angefügte Screenshots

Alle Antworten (5)

more options

Hello,

I understand that this does not solve all cases, but in your case, you can solve this issue by forgoing the custom search engine extension altogether.

The search extension for the wayback machine can be found here https://mycroftproject.com/install.html?id=80446&basename=waybackmachine&icontype=ico&name=Internet+Archive%3A+Wayback+Machine

The search extension for archive.org can be found here https://mycroftproject.com/install.html?id=45959&basename=archiveorg-all&icontype=ico&name=Internet+Archive

more options

Well, Wayback Machine add-on from the official site does the job, but I want to know how it encodes the input. I'm looking to solve minor issues like this without needing an extension for each, otherwise I'll end up with a bloated Firefox on my already low-end computer.

more options

I understand what you mean, but I believe that opensearch extensions (like the ones at the links I sent) do not use extra cpu, and sit dormant, and can be removed by simply removing the search engine.

more options

Just as a footnote, that is called URL Encoding or Percent encoding, and it is a built-in feature for keyword bookmarks and search engines. Ref. https://developer.mozilla.org/docs/Glossary/percent-encoding

more options

You can try to use the uppercase "%S" instead of "%s"