I would love to use this extension to free some pdf from iframes, such as this one:
http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=6919256
However, this is a bit tricky. I have tried to work on this, with the following results.
The context menu can be enabled for the Chrome pdf plugin using
contexts: ['all']
instead of
contexts: ['frame'].
Then, one can use
var url = clickData.srcUrl || clickData.frameUrl || clickData.pageUrl;
to obtain the url to the pdf file in the onClicked listener.
However, tab.id == -1. This is where I am stuck. Are plugin extensions living in some invalid tab rather than the real one? Is this a Chromium bug? Can one maybe use the currently active tab instead?
I would love to use this extension to free some pdf from iframes, such as this one:
http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=6919256
However, this is a bit tricky. I have tried to work on this, with the following results.
The context menu can be enabled for the Chrome pdf plugin using
contexts: ['all']
instead of
contexts: ['frame'].
Then, one can use
var url = clickData.srcUrl || clickData.frameUrl || clickData.pageUrl;
to obtain the url to the pdf file in the onClicked listener.
However, tab.id == -1. This is where I am stuck. Are plugin extensions living in some invalid tab rather than the real one? Is this a Chromium bug? Can one maybe use the currently active tab instead?