Tag Archives: Twitter

How I got LongURL Mobile Expander 2.0.0 to Show Tooltips Again.

After updating to LongURL Mobile Expander v2.0.0 it stopped showing Tooltips with the destination when I would move the mouse over a short URL. I would also get “current domain is NULL” errors when browsing locally (I have a local copy of Apache installed for development). The problem existed in both Firefox 3.0.11 and 3.5.

I got it working after seeing a comment here: https://addons.mozilla.org/en-US/firefox/addon/8636 so all the credit goes to Matthias Jansen.

Edit the file: C:\Documents and Settings\(user)\Application Data\Mozilla\Firefox\Profiles\(your profile)\extensions\{a7101e54-830c-4d33-a3ed-bedc17ec44da}\content\longurlmobileexpander.js

I am using Windows XP so your location might be different.

Around line 79, change

var current_domain = document.location.href.match(/^https?:\/\/(?:www\.)?([^\.]+\.[^\/]+)/i);

To:

var current_domain = document.location.href.match(/^https?:\/\/(?:www\.)?([^\.]+(\.[^\/]+)?)/i);

Update: I’ve been told here that the following change is also needed. Around line 89, change

if ((domain !== current_domain[1]) && (typeof(this.known_services[domain]) !== 'undefined')) {

To:

if ((current_domain != null) && (domain !== current_domain[1]) && (typeof(this.known_services[domain]) !== 'undefined')) {

After doing this and re-enabling the extension.. it started working. I can now see the tooltip pop-ups and it’s supposed to fix the current_domain is null problem. Hopefully this will help anyone else that ran into this issue. πŸ™‚

My URL Shortening Service Now Has Preview Mode.

My URL shortening service at (link removed), that I mainly use with my blog to create Short URLs for new posts to be tweeted about, now has a preview option you can enable that will show the destination URL, which you can then decide if you wish to click on or not rather than automatically being redirected to the destination. In order for this to work your browser must be set to accept cookies. If you are like me and have 3rd-party cookies disabled, that is fine.

Once you have it set, you can test it with this Short URL which should be created after I publish the post: (link removed).

Even though I will not send anyone to a questionable site, I understand many would want this ability. πŸ™‚

Testing my own shortening service, post 1

Hopefully this works correctly on my production blog the first try LOL.

Publish!

Update: It Worked! http://mhurl.com/1 links to this post now. The Longurl.org website and DestroyTwitter Twitter client are able to preview the link without any problem.Β  TweetDeck v0.26.1 and TwitterFox 1.8.1 are not able to.

I modified the WordPress Twitter-Tools plug-in to create the short-urls using my shortener before sending the tweet out about the post. πŸ™‚

Updated my NASCAR and Weather pages, and it’s June 6th

Just a real quick note to mention that I’ve updated my NASCAR and Weather pages to include some additional links and Twitter resources.

June 6th.. well, not only is today D-Day, it’s also my B-Day. I turn 40 today! ACK! 😯

The following music video also mentions the date June 6th:

Yeah.. that’s about all I have to say for now LOL. I’m tired. πŸ™‚

Ways to Preview the Destination of Twitter Short URLs

May 3, 2016: I discovered that longurl.org no longer works. Can’t ping or browse to it. So, I removed the links to it and thought I’d mention it in this post.


Due to the limited length of 140 characters Twitter allows in a status update or tweet, the use of URL shortening services and short URLs has become a necessary evil. I don’t know about you but I am NOT going to just blindly click on some gobbledygook looking short URL without knowing exactly where it’s going to take me before hand. It’s just too easy to hide links to malicious websites this way. Luckily there are a number of ways to preview where these short URLs are going to send you.

December 18, 2011: Well, now that Twitter is wrapping every URL with its t.co shortening service, including those already shortened with other services, it has thrown a monkey wrench into this whole thing. Some Twitter applications that used to preview short URLs may no longer work fully or as expected. The problem is that when Twitter wraps an already short URL with t.co it causes two redirections to occur before reaching the final destination (example: t.co redirects to bit.ly which then redirects to the original long URL). Longurl.org does still work as it seems to keep trying until it reaches a URL that no longer redirects. Now, according to Twitter it does try to protect users by not directly going to sites that might be questionable. Thankfully, Twitter’s own website will still show the final destination in a tool-tip when the mouse hovers over a link.

January 14, 2011: For those that are using Twitter’s newer website interface, it will now preview a short URL in a tooltip when hovering the mouse over a link. This even works with my custom URL shortening service as mentioned below.

Initally, Twitter used Tinyurl by default to shorten long URLs when it had seen fit. (Update July 9, 2010: Twitter is working on implementing their own service: t.co that is only used with Direct Messages for now.) Even so, Tinyurl has a preview option that you can set on their site. I would advise enabling it. Then, when you click on a Tinyurl link it will take you to Tinyurl’s website first where it shows you the long URL associated with the short URL which you can then click if you so choose.

Unfortunately, this only works for Tinyurl links. Many other URL shortening services are also used: tr.im, is.gd, bit.ly, ping.fm and who knows how many others. This is where longurl.org comes to the rescue! Using this site, you can expand just about any shortened URL and it will let you preview where it goes. For this to work, you do have to copy and paste the short URL first. This site will even work with personally created short URLs as long as they use a standard Redirection. For example it will show that http://mhurl.com/000 goes to http://blog.markheadrick.com/2009/03/15/a-nascar-inspired-destroytwitter-theme/

(Update April 14, 2010: It appears that the longurl.org website is no longer functional. As such, I have since written my own PHP script that does the same thing as far as showing where any URL gets redirected to, removing my need to rely on any 3rd party. April 20, 2010: The site appears to be back up.)

The above two methods are universal in nature and should work no matter how you Twitter. Luckily there are alternative ways that are more convenient and I’ll let you know about the one’s I’ve tried.

Firefox Add-ons:

For Firefox users, you’ll want to check out the following:

LongURL Mobile Expander: The LongURL Moblie Expander uses longurl.org’s web service to display a tooltip with the expanded URL when the mouse hovers over a known short URL service link on a web page. This is handy when viewing Twitter pages in the browser.

  • Update June 29, 2009: version 2.0.0 of this plug-in no longer seems to work correctly, at least in FireFox 3.0.11
  • Update July 9, 2009: Please see this post to find out how I got it working again.
  • Update January 21, 2010: Author posted Experimental Version 2.0.1 which corrects the issues. This version is not yet directly compatible with Firefox 3.6, however.

Long URL Please: This plug-in replaces the short URL with the expanded URL in the webpage itself. This one uses the longurlplease.com API to determine the destinations from known services. I have been using this one after LongURL Mobile Expander quit working on me.

Echofon (aka TwitterFox): Twitter client add-on that will show the expanded URL in a tooltip when the mouse hovers over a known short URL service link.Β  I say “known” because these will not show expanded links from unknown services or personally created short URLs.

Stand-alone Twitter Clients with Short URL preview abilities:

TweetDeck: If you set the option to Show preview information for short URLs in the general settings tab, it will display a preview dialog with the expanded URL after you click on a link. This only works with known short URL services. My shortened link does not preview. (Update December 18, 2011: The current stand-alone version of Tweetdeck available from the website that Twitter released, which does not use Adobe Air, no longer previews short URLs other than long URLs directly shortened with t.co. The older Adobe Air version 0.38.2 still previews short URLs even when wrapped by t.co.)

DestroyTwitter: Version 2.1.2 released on September 16, 2010 introduced a URL preview ability. When you ALT-Left Click on a link it will preview the URL for you. This will work with ANY link as best I can tell. It will even preview my shortened link and display both the title and expanded URL. In this aspect, DestroyTwitter beats all the other Twitter clients I have tried.

I am sure there are other Twitter clients that have built-in preview abilities (no, I’m not going to download and try everything that exists), just make sure you enable it if they have the option. With that, have a happy and safe twitter experience. πŸ™‚