Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to always use shortening service #21

Closed
stephenjudge opened this issue Aug 12, 2011 · 6 comments
Closed

Option to always use shortening service #21

stephenjudge opened this issue Aug 12, 2011 · 6 comments
Labels
Feature Things the extension should do but isn't yet.

Comments

@stephenjudge
Copy link

I like to follow the statistics of the URL's I creat with Bit.ly and so I would like all my short URL's to be created with Bit.ly. It would be nice to have an option in Copy ShortURL that allows you to ignore the canonical short URL provided but the website and always use the chosen shortening service.

@fwenzel
Copy link
Owner

fwenzel commented Aug 12, 2011

That's a very good point! I still have to figure out how to make a preference page with the Mozilla Add-ons SDK (the framework Copy ShortURL is written with), and then I'll definitely make that an option. Thanks for your suggestion!

@stephenjudge
Copy link
Author

Cool, thanks, even if there was a way to do it in the about:config options, like for the Custom URL options that would do.

@stephenjudge
Copy link
Author

Oops, I didn't mean to close the issue. Probably should keep it open until this option is implemented.

@fwenzel
Copy link
Owner

fwenzel commented Aug 12, 2011

Oh yeah, keep it open for sure :)

An about:config option is fine indeed, that's what I use for everything at the moment -- but it's not very user friendly.

@stephenjudge
Copy link
Author

True it's not very user friendly, but for now it is better than nothing. On that point people need to get to the User Docs to learn how to use the about:config for these options, but at the moment you have to bounce through a number of websites to find the user docs. It might be useful to put a direct link to them on the Firefox Add-ons page. It would also be useful to put a link to the extension home page in the extension itself. So when a user clicks on the context menu of the extension the menu option for 'Visit Home Page' is active. Makes it all a bit easier navigating to the right pages.

@fwenzel
Copy link
Owner

fwenzel commented Apr 13, 2015

I added a new setting, that defaults to 30 characters now.

The behavior is: If the site does not specify a short URL, then we send it to the shortening service regardless.

If the site specifies a URL that it considers short, then we send it to the shortening service if and only if it is longer than this threshold, which I arbitrarily set to 30 characters.

The functionality can be:

  • disabled by setting the threshold to 0
  • made to always kick in by setting it to less than 6 (because very URL has http:// in it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Things the extension should do but isn't yet.
Projects
None yet
Development

No branches or pull requests

2 participants