-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Feature Request: Add option to always directly open unsupported media #36
Comments
I'm glad to be helpful! Do you think a hotkey for this would be as good? |
That would be perfect! |
And by that you mean you're willing to implement it? Because I haven't yet decided on how I should license this project, so it's status quo is "all rights reserved". |
Sure, I can take a stab at it. Let me see if I can get it working! |
Do you understand the implications of what I said about the license? Would you be willing to give me the intellectual rights for your changes? |
Oh, as long as it's free and open source, I don't mind! :D |
Great, thanks! |
I think the final version of this feature should be implemented through the browser commands API, not the custom hotkeys code we have. Because the content script currently launches only when the page has finished loading (and I think for better performance it should be kept that way), so we can't attach a listener until that. But using the commands API we could listen to command strokes on the background and, if the page on which the "open directly" command has been executed, is still loading, then schedule the handling for later - wait for the content script to search the page for media elements, then open the active one's jumpcutter/src/popup/App.svelte Line 96 in df8d682
All this because users usually visit the same site and so they already know that the extension is not supported on it, so they usually open a video and then immediately want to execute the command. Would not be very cool if they had to spam it, waiting for the script to load. |
Also, after saying it out loud an idea visited me that maybe it would be even cooler if instead of a hotkey we'd offer a context menu option for links. I.e. you right-lick a link to a page with a video and there is an option "open directly". It opens a new tab, with the original link's URL, then finds the video and opens it directly. Although there' s a bit of a problem that it currently won't attach to any video unless its jumpcutter/src/content/AllMediaElementsController.ts Lines 464 to 492 in ecb3e71
|
Oh that's a cool idea! Sorry, I haven't had the time to work on this but I think I may get some time After May 15th. Cheers :) |
I haven't made this clear. The reason I don't like "opening directly" 100% automatically is because it could get confusing. Because you open a link and then it automatically "opens directly" and you don't know whether the link was like this initially or it's the extension that did it. Maybe some kind of notification, like "Automatically redirected from |
First off, thanks for the awesome extension! Works like a charm!
I mostly use it to watch Lecture recordings, which are hosted on google drive (currently unsupported). For jumpcutter to work, I need to use the "open link directly" option - Do you think you could add a setting to make this a default option? Something like - always open links directly if possible.
Happy to help add this feature as well!
Thanks!
Vimal
The text was updated successfully, but these errors were encountered: