Last active
March 27, 2016 01:57
-
-
Save swemoney/2c8a4ee25ac398741ee6 to your computer and use it in GitHub Desktop.
Paste this when viewing the Big Brother Canada Live Feeds to get a much better experience... Most credit goes to /u/rfmx49 for his work on the quad view code
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
var startAllFeeds = "false"; | |
var feedAccts = [6388794,16559084,16559088,16559095,16559099]; | |
var feedEvents = [4789152,4789131,4789946,4798444,4798455]; | |
var baseUrl = "https://new.livestream.com/accounts/"; | |
var endOfUrl = "/player?pre_event_poster=http://i.imgur.com/mfmMPYJ.jpg&post_event_poster=http://i.imgur.com/mfmMPYJ.jpg&width=1280&height=720&autoPlay=true&mute=false"; | |
var camBarString = "<p><center><div style=\"margin:0 auto;\"> <a href='javascript:switchToQuad()'>Quad</a> | <a href='javascript:switchCam(" + feedAccts[0] + "," + feedEvents[0] + ")'>Cam 1</a> | <a href='javascript:switchCam(" + feedAccts[1] + "," + feedEvents[1] + ")'>Cam 2</a> | <a href='javascript:switchCam(" + feedAccts[2] + "," + feedEvents[2] + ")'>Cam 3</a> | <a href='javascript:switchCam(" + feedAccts[3] + "," + feedEvents[3] + ")'>Cam 4</a></div></center></p>"; | |
var hdCamString = function (feedAcct, feedEvent) { return "<center><iframe id='live-feeds-iframe' frameborder='0' scrolling='no' class='live-feeds__iframe' align='middle' src='" + baseUrl + feedAcct + "/events/" + feedEvent + endOfUrl + "' style='width: 1280px; height: 720px; margin-top:20px'></iframe></center>" + camBarString; }; | |
var switchCam = function (feedAcct, feedEvent) { $("body").html(hdCamString(feedAcct,feedEvent)); }; | |
var quadString = "<table id='quadView' width='100%' height='" + $(window).height() + "px'><tr><td><iframe id='live-feeds-iframe' frameborder='0' scrolling='no' class='live-feeds__iframe' src='https://new.livestream.com/accounts/" + feedAccts[0] + "/events/" + feedEvents[0] + "/player?pre_event_poster=http://i.imgur.com/mfmMPYJ.jpg&post_event_poster=http://i.imgur.com/mfmMPYJ.jpg&width=640&height=360&autoPlay=true&mute=false' style='width: 100%; height: 100%;'></iframe></td><td><iframe id='live-feeds-iframe' frameborder='0' scrolling='no' class='live-feeds__iframe' src='https://new.livestream.com/accounts/" + feedAccts[1] + "/events/" + feedEvents[1] + "/player?pre_event_poster=http://i.imgur.com/mfmMPYJ.jpg&post_event_poster=http://i.imgur.com/mfmMPYJ.jpg&width=640&height=360&autoPlay=" + startAllFeeds + "&mute=true' style='width: 100%; height: 100%;'></iframe></td></tr><tr><td><iframe id='live-feeds-iframe' frameborder='0' scrolling='no' class='live-feeds__iframe' src='https://new.livestream.com/accounts/" + feedAccts[2] + "/events/" + feedEvents[2] + "/player?pre_event_poster=http://i.imgur.com/mfmMPYJ.jpg&post_event_poster=http://i.imgur.com/mfmMPYJ.jpg&width=640&height=360&autoPlay=" + startAllFeeds + "&mute=true' style='width: 100%; height: 100%;'></iframe></td><td><iframe id='live-feeds-iframe' frameborder='0' scrolling='no' class='live-feeds__iframe' src='https://new.livestream.com/accounts/" + feedAccts[3] + "/events/" + feedEvents[3] + "/player?pre_event_poster=http://i.imgur.com/mfmMPYJ.jpg&post_event_poster=http://i.imgur.com/mfmMPYJ.jpg&width=640&height=360&autoPlay=" + startAllFeeds + "&mute=true' style='width: 100%; height: 100%;'></iframe></td></tr></table>" + camBarString; | |
var switchToQuad = function () { $("body").html(quadString); }; | |
switchToQuad(); |
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
// You need to type javascript: and then paste the following in the Chrome | |
// address while you are on http://bigbrothercanada.globaltv.com/live/ ... | |
// Feel free to change the beginning startAllFeeds="false" to "true" if you | |
// want all of the feeds to start at the same time in Quad view. | |
// | |
// Again: Chrome will delete the javascript: if you try and paste it into the | |
// address bar so you need to manually type javascript: before pasting the | |
// line below! | |
// | |
// Another side note: You can add the whole javascript: paste thing in a | |
// bookmark so you can just hit the bookmark button whenever you are on | |
// the Big Brother Canada Live Feeds page.. | |
var startAllFeeds="false";var feedAccts=[6388794,16559084,16559088,16559095,16559099];var feedEvents=[4789152,4789131,4789946,4798444,4798455];var baseUrl="https://new.livestream.com/accounts/";var endOfUrl="/player?pre_event_poster=http://i.imgur.com/mfmMPYJ.jpg&post_event_poster=http://i.imgur.com/mfmMPYJ.jpg&width=1280&height=720&autoPlay=true&mute=false";var camBarString="<p><center><div style=\"margin:0 auto;\"> <a href='javascript:switchToQuad()'>Quad</a> | <a href='javascript:switchCam("+feedAccts[0]+","+feedEvents[0]+")'>Cam 1</a> | <a href='javascript:switchCam("+feedAccts[1]+","+feedEvents[1]+")'>Cam 2</a> | <a href='javascript:switchCam("+feedAccts[2]+","+feedEvents[2]+")'>Cam 3</a> | <a href='javascript:switchCam("+feedAccts[3]+","+feedEvents[3]+")'>Cam 4</a></div></center></p>";var hdCamString=function(feedAcct,feedEvent){return"<center><iframe id='live-feeds-iframe' frameborder='0' scrolling='no' class='live-feeds__iframe' align='middle' src='"+baseUrl+feedAcct+"/events/"+feedEvent+endOfUrl+"' style='width: 1280px; height: 720px; margin-top:20px'></iframe></center>"+camBarString};var switchCam=function(feedAcct,feedEvent){$("body").html(hdCamString(feedAcct,feedEvent))};var quadString="<table id='quadView' width='100%' height='"+$(window).height()+"px'><tr><td><iframe id='live-feeds-iframe' frameborder='0' scrolling='no' class='live-feeds__iframe' src='https://new.livestream.com/accounts/"+feedAccts[0]+"/events/"+feedEvents[0]+"/player?pre_event_poster=http://i.imgur.com/mfmMPYJ.jpg&post_event_poster=http://i.imgur.com/mfmMPYJ.jpg&width=640&height=360&autoPlay=true&mute=false' style='width: 100%; height: 100%;'></iframe></td><td><iframe id='live-feeds-iframe' frameborder='0' scrolling='no' class='live-feeds__iframe' src='https://new.livestream.com/accounts/"+feedAccts[1]+"/events/"+feedEvents[1]+"/player?pre_event_poster=http://i.imgur.com/mfmMPYJ.jpg&post_event_poster=http://i.imgur.com/mfmMPYJ.jpg&width=640&height=360&autoPlay="+startAllFeeds+"&mute=true' style='width: 100%; height: 100%;'></iframe></td></tr><tr><td><iframe id='live-feeds-iframe' frameborder='0' scrolling='no' class='live-feeds__iframe' src='https://new.livestream.com/accounts/"+feedAccts[2]+"/events/"+feedEvents[2]+"/player?pre_event_poster=http://i.imgur.com/mfmMPYJ.jpg&post_event_poster=http://i.imgur.com/mfmMPYJ.jpg&width=640&height=360&autoPlay="+startAllFeeds+"&mute=true' style='width: 100%; height: 100%;'></iframe></td><td><iframe id='live-feeds-iframe' frameborder='0' scrolling='no' class='live-feeds__iframe' src='https://new.livestream.com/accounts/"+feedAccts[3]+"/events/"+feedEvents[3]+"/player?pre_event_poster=http://i.imgur.com/mfmMPYJ.jpg&post_event_poster=http://i.imgur.com/mfmMPYJ.jpg&width=640&height=360&autoPlay="+startAllFeeds+"&mute=true' style='width: 100%; height: 100%;'></iframe></td></tr></table>"+camBarString;var switchToQuad=function(){$("body").html(quadString)};switchToQuad(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment