Skip to content

Commit

Permalink
version 1.5a
Browse files Browse the repository at this point in the history
* context from link shortens the target of the link
  • Loading branch information
binfalse committed Jun 26, 2013
1 parent 8e4ed83 commit 22b5c8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chrome/content/yourlsshortener.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ var YOURLSshortener = function () {
return;
},
run : function (long) {

if (typeof gContextMenu != 'undefined' && gContextMenu.onLink)
long = document.popupNode;

if (!long)
{
prompts.alert(null, "YOURLS shortener: failed", "no URL specified!?");
Expand Down

0 comments on commit 22b5c8d

Please sign in to comment.