Youtube Prevent Autoplay

By Yansky Last update Nov 16, 2008 — Installed 16,348 times. Daily Installs: 17, 8, 19, 21, 11, 19, 18, 22, 33, 19, 33, 24, 16, 14, 24, 13, 18, 21, 19, 21, 13, 16, 30, 28, 27, 16, 14, 17, 18, 10, 17, 15

There are 2 previous versions of this script.

// ==UserScript==
// @name          Youtube Prevent Autoplay
// @namespace     userscripts.org
// @version       0.9
// @description   Prevents videos from playing automatically by replacing the default youtube.com player with the youtube player that doesn't autostart playback
// @include        http://youtube.com/watch*
// @include        http://*.youtube.com/watch*
// @include        http://*.youtube.com/user/*
// ==/UserScript==

with(document.getElementById('movie_player'))
{
setAttribute("flashvars","autoplay=0&"+getAttribute("flashvars"));
src+="#";
}