Skip to content

Instantly share code, notes, and snippets.

@ivanpepelko
Created June 24, 2015 01:16
Show Gist options
  • Save ivanpepelko/7683a0796e284b633f53 to your computer and use it in GitHub Desktop.
Save ivanpepelko/7683a0796e284b633f53 to your computer and use it in GitHub Desktop.
Creates checkboxes under stream thumbnails to create link to multitwitch.tv
$('.meta [type=checkbox]').remove();
$('h2.title #go-multi').remove();
$('#go-multi').off('click');
$('.meta').append('<input type=checkbox>');
$('h2.title').append('<a id=go-multi href=#>Go Multi</a>');
$('#go-multi').on('click', function () {
var mt = 'http://multitwitch.tv';
$('.meta [type=checkbox]:checked').closest('.content').find('a.cap').each(function () {
mt += $(this).attr('href');
});
window.location = mt;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment