搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Is there any Extension for Copying Unicode URL as it is?

  • 2 回覆
  • 1 有這個問題
  • 13 次檢視
  • 最近回覆由 nutnutwin

more options

Hi, thank you for your time

  1. What I am trying to do
 Copy Unicode URL like 
 > https://www.google.com/search?gl=us&hl=en&gws_rd=cr&q=日本語
 of current webpage
  1. Issue
 Press Ctrl+L(Focusing on Address Bar), and Ctrl+C afterward, I get Unicode URL like 
 > %E3%82%B9%E3%
  1. My solution(for now)
 Go to, 「about:config」
 and set 「browser.urlbar.decodeURLsOnCopy」 to 「True」
  1. Further Issue
 Would like to copy current URL without using the Address Bar(as it might be edited) using some extension. 
 In Chromium, there is 「Copy Unicode URLs」
 > https://chrome.google.com/webstore/detail/copy-unicode-urls/fnbbfiapefhkicjhecnoepbijhanpkjp?hl=en
 where you can, copy URL as it is, using a shortcut
 I wonder if there are any counterpart extension? the 「Quick Copy URL」
 > https://addons.mozilla.org/en-US/firefox/addon/quick-copy-url/
 Can copy with shortcut, but turn it into 
 > %E3%82%B9%E3%
  1. Thank you so much for your time
Hi, thank you for your time # What I am trying to do Copy Unicode URL like > https://www.google.com/search?gl=us&hl=en&gws_rd=cr&q=日本語 of current webpage # Issue Press Ctrl+L(Focusing on Address Bar), and Ctrl+C afterward, I get Unicode URL like > %E3%82%B9%E3% # My solution(for now) Go to, 「about:config」 and set 「browser.urlbar.decodeURLsOnCopy」 to 「True」 # Further Issue Would like to copy current URL without using the Address Bar(as it might be edited) using some extension. In Chromium, there is 「Copy Unicode URLs」 > https://chrome.google.com/webstore/detail/copy-unicode-urls/fnbbfiapefhkicjhecnoepbijhanpkjp?hl=en where you can, copy URL as it is, using a shortcut I wonder if there are any counterpart extension? the 「Quick Copy URL」 > https://addons.mozilla.org/en-US/firefox/addon/quick-copy-url/ Can copy with shortcut, but turn it into > %E3%82%B9%E3% # Thank you so much for your time

所有回覆 (2)

more options

You can possibly use a JavaScript bookmarklet to get the URL of the current tab (invoke the bokmarklet) or the URL of a currently focused link (Alt click the link and invoke the bookmarklet).

javascript:void(prompt('URL',decodeURIComponent((d=document.activeElement)&&d.href?d.href:location.href)));

You can create a new bookmark on the Bookmarks Toolbar and paste the JavaScript code in its Location field.

more options

cor-el said

You can possibly use a JavaScript bookmarklet to get the URL of the current tab (invoke the bokmarklet) or the URL of a currently focused link (Alt click the link and invoke the bookmarklet).
javascript:void(prompt('URL',decodeURIComponent((d=document.activeElement)&&d.href?d.href:location.href)));

You can create a new bookmark on the Bookmarks Toolbar and paste the JavaScript code in its Location field.

Hi, sorry for the late reply. - What I did I tried adding to bookmark, and it showed a popup dialogue, with the URL I want. I also bind a shortcut_A to this JavaScript with 「Shortkeys (Custom Keyboard Shortcuts)」 and also works Further I Autohotkey to bind Shortcut_B to trigger Shortcut_A, copy the URL, and cancel the dialogue. Works great, Thank you.

- One more thing I wonder if there are anyway to put the URL straight to Clipboard? I am not familiar at all with JavaScript, wonder if it can manupilate OS Clipboard somehow?

Sorry for being totally ignorant with this. Thank you.

由 nutnutwin 於 修改