Skip to content

Instantly share code, notes, and snippets.

@mrpollo
Created July 27, 2011 17:20
Show Gist options
  • Save mrpollo/1109890 to your computer and use it in GitHub Desktop.
Save mrpollo/1109890 to your computer and use it in GitHub Desktop.
OK Go Video Firefox bypass
isChrome = true;
ImportJS('/static/js/Delegate.js');
ImportJS('/static/js/EventDispatcher.js');
ImportJS('/static/js/API.js');
ImportJS('/static/js/ReflectAPI.js');
ImportJS('/static/js/Timeline.js');
ImportJS('/static/js/AudioList.js');
ImportJS('/static/js/VideoList.js');
ImportJS('/static/js/MultiWindow.js');
ImportJS('/static/js/MessageForm.js');
ImportJS('/static/js/XHR.js');
ImportJS('/static/js/initEndPage.js');
if(document.documentElement.getAttribute('id') == 'index'){
ImportJS('/static/js/PostAPI.js');
ImportJS('/static/js/index.js');
} else if(document.documentElement.getAttribute('id') == 'message'){
ImportJS('/static/js/SingleAPI.js');
ImportJS('/static/js/message.js');
} else if(document.documentElement.getAttribute('id') == 'videoend'){
ImportJS('/static/js/swfobject.js');
ImportJS('/static/js/GetAPI.js');
ImportJS('/static/js/CheckURLAPI.js');
ImportJS('/static/js/SingleAPI.js');
ImportJS('/static/js/ValidateAPI.js');
ImportJS('/static/js/ReflectAPI.js');
ImportJS('/static/js/MessageCardPreviewAPI.js');
ImportJS('/static/js/CheckMessageCardPreviewAPI.js');
ImportJS('/static/js/MessageCardAPI.js');
ImportJS('/static/js/CheckMessageCardAPI.js');
ImportJS('/static/js/videoend.js');
}
$(function(){
$('<div class="refresher"></div>').appendTo('body');
});
document.getElementById('errorMessage').style.display = 'none';
document.getElementById("bg").style.backgroundImage = 'url(/static/img/top/bg_index.jpg)';
document.getElementById('inputBox').style.display = 'block';
$("div.modalbox").css({'height':'0'});
$(".nochrome").css({'display':'inline-block'});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment