Created
June 24, 2015 01:16
-
-
Save ivanpepelko/7683a0796e284b633f53 to your computer and use it in GitHub Desktop.
Creates checkboxes under stream thumbnails to create link to multitwitch.tv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.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