-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "Save to Zotero (PDF)" to context menu when right-clicking on a framed PDF #152
Comments
This is |
Do we have any example URLs? |
I have a 1Password menu item when right-clicking on a framed PDF in Chrome (but probably for all frames).
I already did — they're very unlikely to do something tied to the current UI in that way. But there might be other options involving download notifications (which may or may not work for us). Can we tell whether there's a PDF in an iframe from the parent page? What about adding a "Save to Zotero (PDF)" option to our own context menu in that case? |
Oh yeah, that actually works.
We could check for frames with content-type I'm not really a huge fan of adding the context option to all frames, but you'd have to, since there may be multiple frames with pdfs and you need to know which one to get. |
To be clear, I mean adding an option to the save button context-menu when there's a PDF iframe on the page, so that even if the main icon was for Web Page you'd still have PDF as an option. (I'm not worried about there being multiple. We could just grab the first one.) |
Alternative plan. Chrome |
Actually, thinking about this more, If there's an iframe with a PDF and a translator isn't triggering on the page, we should just show the PDF icon. That's almost always what people will want. |
The alternative plan is super elegant and easy to implement, so let's start with that one and if people are still very confused/annoyed we'll do this. |
Right-clicking on a page and talking to users about "frames" is not remotely super elegant. The elegant solution here is make the action that people are going to want the vast majority of the time the default button click. That's the priority here. |
This is useful when viewing a framed PDF that isn't recognized by a translator, since it avoids having to do This Frame -> Show Only This Frame in Firefox (and that's not even an option in Chrome?).
The text was updated successfully, but these errors were encountered: