Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

6AA4FD
Copy link

@6AA4FD 6AA4FD commented Dec 21, 2018

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.

quinn added 3 commits December 20, 2018 15:32
- 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
@6AA4FD 6AA4FD changed the title disable two handlers, improve twitch disable two handlers, improve twitch, add mainclose setting Dec 21, 2018
@6AA4FD
Copy link
Author

6AA4FD commented Dec 21, 2018

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

Copy link
Owner

@vayan vayan left a 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 🙏

"*://*.streamable.com/*",
"*://*.liveleak.com/view*",
// "*://*.vid.me/*", // vidme is suspended
// "*://*.funnyordie.com/*", // youtube-dl returns unsupported for these
Copy link
Owner

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

}

function openInMpv(request) {
var lockedTabIndex = tabsLock.lastIndexOf(request.tabId);
console.log("mainClose:", settings.mainClose);
Copy link
Owner

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

}
function setMainClose(result) {
// console.log("mainclose is", result.mainClose);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove this

@6AA4FD
Copy link
Author

6AA4FD commented Dec 21, 2018

alright, i've removed all the debug stuff, the lines for funnyordie and vidme, and changed the align level to 2 spaces

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants