Scripts


Styles


Plugins


Users


Forum


Developer
Username:
Password:
User Scripts
Title:

Liveleak.com Video Download

Date Added:
2007-05-04 03:42:02 Installs: 3850
Description: Adds a download link to liveleak.com so videos can be downloaded.
Preview of Liveleak.com Video Download
View script source of Liveleak.com Video Download
Comment of Liveleak.com Video Download
[2007-05-22 14:51:24]harisss says:
// ==UserScript==
// @name liveleak.com video download link
// @namespace http://www.digivill.net/~joykillr
// @description Adds a download link to liveleak.com so videos can be downloaded.
// @include http://liveleak.com/view*
// @include http://*.liveleak.com/view*
// ==/UserScript==
//
//v 3.0



function getURL(tokenURL) {
xmlhttp = PRO_xmlhttpRequest();
xmlhttp.open("GET", tokenURL, true);
xmlhttp.setRequestHeader("User-Agent", "Mozilla/5.0 Firefox/2.0.0.3");
xmlhttp.setRequestHeader("Accept", "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5");
xmlhttp.send(null);
xmlhttp.onreadystatechange = function(){
if(xmlhttp.readyState == 4){
var URLstring = new String(xmlhttp.responseText);
URLstring = URLstring.split("file_location=")[1];
var splitidx = URLstring.indexOf("placeholder_");
splitidx = splitidx - 1;
URLstring = URLstring.substring(0, splitidx);
URLstring = unescape(URLstring);
if (URLstring) addBox(URLstring);
}
}
}

function addBox(strR) {
var URLDLbox = document.createElement("div");
URLDLbox.setAttribute("style", "display: block !important;");
URLDLbox.innerHTML = '<table style="width:auto; margin-left: auto; margin-right:auto;"><tbody style="background-color:inherit!important;">' +
'<tr style="background-color:inherit!important;">' +
'<td style="text-align:center;background-color:inherit!important;">' +
'<a href="' + strR + '" style="font-size:108%; line-height:108%; color: #ffffff; background-color: #000000; border: 2px solid red; margin-left: auto; margin-right:auto; text-align:center; font-weight:bold;">Click Here To Download Video</a>' +
'<br /></td></tr></tbody></table>';
var nElem = document.getElementsByTagName("div");
for (var nn = 0; nn < nElem.length; nn++) {
if ((nElem[nn].title.search("player.swf"))||(nElem[nn].getAttribute("dataattribute").search("player.swf"))) {
if (document.getElementById("navMain")) {document.getElementById("navMain").appendChild(URLDLbox);}
else {nElem[nn].appendChild(URLDLbox);}
}
}
}

if (document.body.getElementsByTagName("param")[0]) {
var tID = document.body.getElementsByTagName("param")[0];
tID = tID.getAttribute("value");
tID = tID.split("token=")[1].split("&")[0];
var token = "http://www.liveleak.com/mi?token=" + tID;
getURL(token);
}



[2007-07-09 17:54:22]bahamid says:
goooood

[2007-09-11 05:32:07]mann06121974 says:
ggggg

[2008-03-30 11:47:32]metin5308 says:
would like to share info about how to use this site ... any suggestions would be honoured in my e mail: metinerker@hotmail.com

[2008-05-23 17:11:26]odie says:
coooool

[2008-09-08 13:51:42]jordanmills says:
Doesn't work.


Join Iescripts for a free account, or Login if you are already a member.
Username: Password:

Written by
Name:sunwukong
Scripts:9
Styles:0
Plugins:0
Tags
liveleak video download
 
  About IE7Pro
IE7Pro is a plugin for the Internet Explorer web browser. It allows you to change how your favorite pages behave and look. There are many scripts that have already been written, and if you know javascript you can easily create your own! This site is a repository to download and install IE user scripts.
  How to install user script

1 . First you should have install IE7Pro 0.9.12 and above which support IE user scripts.

2. Check if IE7Pro "Preference" - "User Scripts" - "EnabLe User Script" is enabled.

3. Find your favorite scripts on iescripts.org and click "Install This Script" .

 

iescripts.org  dewen.org