Skip to content

Instantly share code, notes, and snippets.

@kevinburke
Created January 3, 2011 23:08
Show Gist options
  • Save kevinburke/764144 to your computer and use it in GitHub Desktop.
Save kevinburke/764144 to your computer and use it in GitHub Desktop.
console.log("espn.js is running.");
jQuery("#videoPlayer").ready(function(){
jQuery("param[name|='flashVars']").attr("value", function(){
var str = this.value;
console.log(str);
return str.replace("autostart=true","autostart=false");
}
);
jQuery("param[name|='play']").attr("value", "false");
jQuery("div.mod-inline.video-player.full-box").next().insertAfter("<script>espn.video.embeded.pause();</script>");
console.log("should have modified things");
});
jQuery("div.vid_wrapfull").next().ready(function(){
jQuery("div.vid_wrapfull").next().html(function(index, oldtext){
console.log(oldtext);
oldtext = oldtext.replace("espn.video.embeded.play()", "");
console.log(oldtext);
return oldtext;
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment