29 June, 2014
UserJS: Disable autoplay on LiveLeak.com. Move controls bar under the video
I made this script to disable autoplay feature for videos on LiveLeak.com
The script also stops the absurd and annoying behavior of putting the controls bar on top of the video thus obscuring the video itself.
Download
▐▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▌
// ==UserScript==
// @name liveleak - disable autoplay ; Controlbar position below player, not on top
// @include *liveleak.com/*
// @author Drozdman
// ==/UserScript==
LL_player=function(){
var player= document.querySelector('object[type="application/x-shockwave-flash"]');
var player_new=player.cloneNode(true);
var param=player_new.getElementsByTagName("param");
for (var i in param) {
if (param[i].getAttribute("name") == "flashvars") {
var flashvars = param[i].getAttribute("value");
var flashvars_new =flashvars.replace('&controlbar.position=over','&controlbar.position=bottom').replace('autostart%3Dtrue','autostart%3Dfalse');
param[i].setAttribute("value",flashvars_new);
break;
}
} ;
player.parentNode.replaceChild(player_new,player)
}
window.addEventListener('DOMContentLoaded',LL_player)
//=========================================================================
▐▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▌
Subscribe to:
Post Comments (Atom)
Thanks for this. It works great.
ReplyDeletecould you mix-mash your script with the force html5 video on liveleak script
ReplyDeletehttps://greasyfork.org/en/scripts/9011-liveleak-html5-player
and also don't forget to include
// @grant none
into your script line
Thanks for sharing, but LiveLeak is down. Anyway, I found a post including some sites like it for your reference: 10 Best LiveLeak Alternatives
ReplyDelete