ilyaigpetrov / copy-unicode-urls Goto Github PK
View Code? Open in Web Editor NEWCopy unicode strings from address bar without nasty percent-encodings or punycode!
License: Apache License 2.0
Copy unicode strings from address bar without nasty percent-encodings or punycode!
License: Apache License 2.0
Urls which end with -
(hyphen) are linkified without the hyphen.
The logic of linkification is here: https://searchfox.org/comm-central/source/mozilla/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp#237 (bool mozTXTToHTMLConv::FindURLEnd
).
TODO: make the extension to work with Thunderbird.
In this thread/issue news of the extension is going to be published.
Just use the Subscribe button on the right after signing into GitHub (don't worry, you won't be shown in participants).
You can't discuss news in this issue but feel free to create a new issue if so needed.
### Short title (if the news is not relevant any more then close it with ###)
12.04.2022
Body of the news.
#### Sub title
Continuation of the news.
I am wondering if I can copy Markdown version URL by this extension, it looks like this: Github.
Am I doing something wrong or it doesn't work this way?
I mean, I got a link from RU Wikipedia for example and it still show as punylinks when directly copied from Omnibox.
Example URL: https://ru.wikipedia.org/wiki/Заглавная_страница
Copying with a trailing space on Firefox works fine, but not anymore for Chrome. That's why I'm using this extension.
Is is meant to copy and decode links only within a webpage or can it be done via Omnibox too? That would be much more clever if you could copy directly from Omnibox without encoding.
That's the whole point of this extension... Right?
Or does it work only inside web pages?
Can the Omnibox feature be added, if possible?
Please advise.
Hi,
Any chance to have "Copy Unicode URL" for Firefox as well?
I'm annoyed by those percent-encoded URLs. Happens all the time, even with URLs that contain only Latin characters.
A simple "Copy URL (Decoded)" in the right-click menu would be nice.
Thanks ion advance,
Eric
For example, I copy
https://www.baidu.com/s?word=%E7%91%9E%E5%85%B8%20%E5%8C%97%E7%BA%A6, it becomes
https://www.baidu.com/s?word=瑞典%20北约, but it should be https://www.baidu.com/s?word=瑞典 北约
With version 0.0.3 (Chrome Web Store)
This IRI:
https://data.gov.cz/formulář/registrace-datové-sady?url=https%3A%2F%2Fdata.gov.cz%2Fzdroj%2Fdatové-sady%2FOstrava%2F37085111
is incorrectly copied as
https://data.gov.cz/formulář/registrace-datové-sady?url=https%253A%2F%2Fdata.gov.cz%2Fzdroj%2Fdatové-sady%2FOstrava%2F37085111
Note the extra %25
after url=https
https://chromium.googlesource.com/chromium/src.git/+/38391374b79c006e85e3b9c912267a8d4daaa7cc/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js#1674 (_tokenizeMessageText
).
https://searchfox.org/comm-central/source/mozilla/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp#237 (bool mozTXTToHTMLConv::FindURLEnd(
)
navigator.clipboard.writeText(decodeURIComponent(location))
:D
Since v0.0.19, right after new 'Clipboard rewrite' permission notification.
Also disappeared from context menu.
I click right mouse button over some link and select from appeared menu: „Copy Unicode URL”. Then I past by mouse-menu or CtrlV anywhere but it would be something that I copied before like from CtrlC.
It worked a time ago but it was stopped.
Some infos:
Last versions of Chrome have new option which allow get a link to text:
You select text and click on button from mouse's menu
But you get
https://uk.wikipedia.org/wiki/%D0%9F%D0%B0%D0%B1%D0%BB%D0%BE_%D0%95%D1%81%D0%BA%D0%BE%D0%B1%D0%B0%D1%80#:~:text=%D0%BE%D0%B4%D0%BD%D0%BE%D0%BC%D1%83%20%D0%B7%20%D0%B3%D0%BE%D1%82%D0%B5%D0%BB%D1%96%D0%B2.-,%D0%9A%D1%96%D0%BD%D0%B5%D1%86%D1%8C,-%D0%BA%D0%B0%D1%80%27%D1%94%D1%80%D0%B8%20%D1%82%D0%B0%20%D0%B7%D0%B0%D0%B3%D0%B8%D0%B1%D0%B5%D0%BB%D1%8C
While I prefer unicode, so
https://uk.wikipedia.org/wiki/Пабло_Ескобар#:~:text=одному%20з%20готелів.-,Кінець,-кар'єри%20та%20загибель
Here I will be publishing bugs that are important for the extension's well being.
Please, help me by voting (starring) these bugs.
You may subscribe to this issue -- look for "Subscribe" button to the right of this message (after signing in).
Because Chinese mainland can not visit Google application store website, can you provide a CRX files for installation?
Or how to generate a CRX file?
Thanks.
It's been a while since last update, but maybe you can add an option to place "Ю" icon in Firefox address bar?
Please add locale support for translating to other languages.
edge version 114.0.1823.67
You mention that on Firefox browser.urlbar.decodeURLsOnCopy can be prefered in some situations.
While this is true, you could also specify that the extension has certain advantages (well, changes in behaviour, technically) over browser.urlbar.decodeURLsOnCopy.
I think that you can mention that browser.urlbar.decodeURLsOnCopy, for example, doesn't convert spaces to %20.
That means that the copied text won't be treated as a link by many text preprocessors (Discord, Telegram, GitHub, Markdown, and so on).
This is a selling point for me.
Also, curiously, Firefox Android doesn't have access to about:config and in Firefox Android Nightly browser.urlbar.decodeURLsOnCopy doesn't work.
This is also a selling point for me.
You may want to mention that the extension has some of these benefits over browser.urlbar.decodeURLsOnCopy.
Thanks for the extension!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.