// ==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' + "Would you
like to Stream this video with DIVX-Player");
if (input_box==true)
{
openTab(y);
}
else
{
}
}
}
function openTab(url) {
var div = document.createElement("div");
div.className = 'movie';
movie.innerHTML = '<iframe src="http://www.icedivx.com/video.php?vurl="' + y
+ '></iframe>'
}
____________________________________________________________________________
*
I have been working on the changes that you suggested and i still cannot get
this to work. I know its gotta be on the tip of my tongue! I have found the
following script that will open an Iframe panel when you go to megaupload.
But i cannot figure out how to get it to work in conjunction with the url
finder script!*
____________________________________________________________________________
*IFRAME SCRIPT*
// position:fixed means stay fixed even the page scrolls. z-index keeps your
iframe on top.
// The remainder of the line smacks the panel into the bottom left corner,
out of your way.
// Overflow (in combination with the setTimeout) ensures the iframe fits
your entire panel.
var css = "position:fixed; "
+ "z-index:9999; "
+ "bottom: 0; "
+ "left: 0; "
+ "border: 0; "
+ "margin: 0; "
+ "padding: 0; "
+ "overflow: hidden;";
var iframe = document.createElement("iframe");
iframe.setAttribute("style", css);
// The about:blank page becomes a blank(!) canvas to modify
iframe.src = "about:blank";
document.body.appendChild(iframe);
// Make sure Firefox initializes the DOM before we try to use it.
iframe.addEventListener(
"load",
function() {
var doc = iframe.contentDocument;
doc.body.style.background = "red";
doc.body.innerHTML = "Test.";
iframe.style.width = doc.body.offsetWidth + "px";
iframe.style.height = doc.body.offsetHeight + "px";
},
false
);
_______________________________________________________________________
*URL FINDING PORTION*
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)
--
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.