// ==UserScript==
// @name Streamed Video MU
// @namespace http://streamedvideo.hebfree.org/
// @description Lorsque qu'un fichier vidéo est sur le point d'être
téléchargé, il est automatiquement lu en streamming.
// @version 0.1
// @include *megaupload.com/?d=*
// ==/UserScript==
var x=document.getElementsByTagName("a");
for (i=0;i<x.length;i++)
{
var y=x[i].getAttribute('href');
var patt1=new RegExp(".avi$|.divx$");
var ok=patt1.test(y);
if (ok == false) {
}
if ( ok ) {
input_box=confirm(" Streamed Video :" + '\n' + '\n' + "Vous vous apprêtez
à télécharger une vidéo, voulez-vous la lire en streamming ?");
if (input_box==true)
{
openTab(y);
}
else
{
}
}
}
function openTab(url) {
var div = document.createElement("div");
div.className = 'movie';
div.innerHTML = '<iframe src="http://www.icedivx.com/video.php?vurl=" + y
></iframe>';
}
____________________________________________________________________________
The script to me looks perfect but it does not work, it does not open or
inject an iframe into the website at all.... what am i doing wrong!!! so
frustrated!!
Please
Ryan
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/greasemonkey-users?hl=en.