Skip to content

Commit

Permalink
Add "Buffer this Image" to right click menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Ashworth committed Jul 16, 2012
1 parent 885c15e commit a7f731c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions chrome/data/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,19 @@ chrome.contextMenus.create({
}
});

// Selection
chrome.contextMenus.create({
title: config.plugin.menu.image.label,
contexts: ["image"],
onclick: function (info, tab) {
attachOverlay({
tab: tab,
image: info.srcUrl,
placement: 'menu-image'
});
}
});

// Listen for embedded events (twitter/hacker news)
var ports = [];
var overlayPort, scraperPort;
Expand Down

0 comments on commit a7f731c

Please sign in to comment.