summaryrefslogtreecommitdiffstats
path: root/bin/jdownloader/jd/dummy.js
blob: 692e5a1f982ed4d83eb99f0435bdd14234fe7630 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/*
Dummy des navigator Objects
*/

function Navigator(){ 
	this.appCodeName="Mozilla";
	this.appName="Mozilla";
	this.appVersion="3.1";
	this.cookieEnabled=true;
	this.language="en";
	this.platform="vista";
	this.userAgent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)";
	this.mimeTypes=[];
	this.plugins=[];
}

Navigator.prototype.javaEnabled=function(){
	return true;
}

/*
Location
*/

function Location(){ 
	this.hash ="";
	/*
	PLatzhalter werden von java ausgefüllt
	*/
	this.host ="%%%HOST%%%";
	this.hostname  ="%%%HOST%%%";
	this.href  ="%%%URL%%%";
	this.pathname  ="%%%URLPATH%%%";
	this.port ="%%%PORT%%%";
	this.protocol  ="%%%PROTOCOL%%%";
	this.search  ="%%%QUERY%%%";
}

Location.prototype.reload=function(){
	this.content+="[MISSING::+createAttribute"+arguments+"]";
}
Location.prototype.replace=function() {
	this.content+="[MISSING::+createAttribute"+arguments+"]";
}



/*
Dummy von document
*/
function Document()  { 
	this.content="";
	this.alinkColor="#000000";
	this.bgColor="#000000";
	this.charset= "ISO-8859-5"
	this.cookie =null;
	this.defaultCharset ="ISO-8859-5"
	this.fgColor="#000000";
	this.lastModified="";
	this.linkColor="#000000";
	this.referrer ="%%%REFERRER%%%";
	this.title ="";
	this.URL="%%%URL%%%";
	this.vlinkColor="#000000";
	this.location=new Location();
}
Document.prototype.write = function(value){ 
	this.content+=value;
}
Document.prototype.getMyOutput = function(){
	var c=this.content;
	this.content="";
	return c;
} 

Document.prototype.captureEvents=function(){
	this.content+="[MISSING::+createAttribute"+arguments+"]";
}
Document.prototype.close=function() {
	this.content+="[MISSING::+createAttribute"+arguments+"]";
}
Document.prototype.createAttribute=function(){
	this.content+="[MISSING::+createAttribute"+arguments+"]";
}
Document.prototype.createElement=function(){
	this.content+="[MISSING::+createAttribute"+arguments+"]";
}
Document.prototype.createTextNode=function() {
	this.content+="[MISSING::+createTextNode"+arguments+"]";
}
Document.prototype.getElementById=function() {
	this.content+="[MISSING::+getElementById"+arguments+"]";
}
Document.prototype.getElementsByName=function() {
	this.content+="[MISSING::+getElementsByName"+arguments+"]";
}
Document.prototype.getElementsByTagName=function() {
	this.content+="[MISSING::+getElementsByTagName"+arguments+"]";
}
Document.prototype.getSelection=function() {
	this.content+="[MISSING::+getSelection"+arguments+"]";
}
Document.prototype.handleEvent=function() {
	this.content+="[MISSING::+handleEvent"+arguments+"]";
}
Document.prototype.open=function() {
	this.content+="[MISSING::+open"+arguments+"]";
}
Document.prototype.releaseEvents=function() {
	this.content+="[MISSING::+releaseEvents"+arguments+"]";
}
Document.prototype.routeEvent=function() {
	this.content+="[[MISSING::+routeEvent"+arguments+"]";
}

Document.prototype.writeln=function(line) {
	this.content+=line+"\r\n";
}

/*
Dummy von Window
*/
function Window()  {
	this.onLoad=function() {
	};
}

function setInterval ( e,  t){
	eval(e);
}


//INIT
navigator= new Navigator();
document= new Document();
location= new Location();
window=new Window();
document.write(window.onLoad());