-
Notifications
You must be signed in to change notification settings - Fork 1
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
disable two handlers, improve twitch, add mainclose setting #16
base: master
Are you sure you want to change the base?
Conversation
- disabled funnyordie because it's not working - took video namespace off funnyordie because it doesn't reflect site structure - added logic to determine if a twitch candidate is a stream or not
Added setting to choose whether it's okay to close the main tab if it gets opened in mpv
i've also added a setting to toggle between leaving the tab to be opened present if it's focused, and closing the tab regardless |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello! Thanks for the pull request!!
I just had some small comments, and if you could keep the original indent it'll be nice too 😄
I'll take some time to test it out and merge it if it's good.
Thanks again 🙏
external-video.js
Outdated
"*://*.streamable.com/*", | ||
"*://*.liveleak.com/view*", | ||
// "*://*.vid.me/*", // vidme is suspended | ||
// "*://*.funnyordie.com/*", // youtube-dl returns unsupported for these |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right! you can remove them then no need to comment
external-video.js
Outdated
} | ||
|
||
function openInMpv(request) { | ||
var lockedTabIndex = tabsLock.lastIndexOf(request.tabId); | ||
console.log("mainClose:", settings.mainClose); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove all the debug log
settings/options.js
Outdated
} | ||
function setMainClose(result) { | ||
// console.log("mainclose is", result.mainClose); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove this
alright, i've removed all the debug stuff, the lines for funnyordie and vidme, and changed the align level to 2 spaces |
i've restructured the openInMpv function to make it more readable, and added detection for what kind of twitch page you're on so you can still use the browser.