We could also do with a "limit per page", something like with the attached.
var oDefaultsSettings = {
preview_image : '',
embed_limit : 10,
var domain_regex = /^[^:]*:\/\/(?:www\.)?([^\/]+)(\/.*)$/,
already_embedded = 0,
// One of our video provider domains?
if (already_embedded < oSettings.embed_limit && m !== null && typeof(handlers[m[1]]) !== "undefined" && handlers[m[1]] !== null)
{
if (args)
{
already_embedded++;
TBH I didn't test it, so it may be badly wrong. xD
@Spuds what do you think?