fwenzel / copy-shorturl

A Firefox extension to quickly create a short URL for the current page and copy it to the clipboard.
https://addons.mozilla.org/addon/copy-shorturl
Apache License 2.0
35 stars 15 forks source link

Some canonical short URLs aren't short #19

Closed fwenzel closed 10 years ago

fwenzel commented 13 years ago

Some canonical short URLs aren't short. In that case, a generated shorturl is probably better.

A heuristic could be: "if the pseudo-short canonical URL is longer than x characters, obtain a "shorturl" from the shortening service, then compare sizes and return the shorter one".

Pick a sensible default "x" and add a config window to let people change that value.

OR, Mossop suggests: "if the page offers its own just give two menu options perhaps".

fwenzel commented 10 years ago

Same as #21.