Adds a "open background image in new tab" menu item. Finds closest element to the clicked area that has a background image.Adds a new menu item to web pages - "open background image in new tab". Will try to find the closest element to the clicked area that has a background image.
Tries to mirror Chrome's own "open image in new tab"-functionality, but currently there seems to be no way in Chrome extensions to show a context menu item based on the return value of a function, so currently it is always shown, regardless of the presence of a background image.
This extension is open-source and MIT-licensed. Source code can be found at https://github.com/rexxars/view-background-image - contributions are welcome.