This repository was archived by the owner on Mar 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathvapor.js
More file actions
38 lines (31 loc) · 1.4 KB
/
vapor.js
File metadata and controls
38 lines (31 loc) · 1.4 KB
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
var vaporwindow = `new Nightmare({
"title": "Vapor",
"type": "js",
"js": "https://cdn.jsdelivr.net/gh/FogNetwork/Vapor/app.min.js",
"width": 800,
"height": 600,
"theme": "dark"
})`
async function injectnightmare() {
var NightmareWindows = await fetch("https://cdn.jsdelivr.net/gh/FogNetwork/Nightmare-Windows/windows.min.js")
var NightmareCode = await NightmareWindows.text()
NightmareCode = NightmareCode.replaceAll("<br>", ";")
var cdn1 = document.createElement("script")
cdn1.innerHTML = NightmareCode + "\n\n" + "eval(" + vaporwindow + ")"
document.getElementsByTagName("html")[0].appendChild(cdn1)
}
var cdn2 = document.createElement("link")
cdn2.setAttribute("rel", "stylesheet")
cdn2.href = "https://cdn.jsdelivr.net/gh/FogNetwork/Nightmare-Windows/windows.css"
document.getElementsByTagName("html")[0].appendChild(cdn2)
var ncdn3 = document.createElement("script")
ncdn3.src = "https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"
document.getElementsByTagName("html")[0].appendChild(ncdn3)
var ncdn4 = document.createElement("script")
ncdn4.src = "https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"
document.getElementsByTagName("html")[0].appendChild(ncdn4)
var ncdn5 = document.createElement("link")
ncdn5.rel = "stylesheet"
ncdn5.href = "https://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css"
document.getElementsByTagName("html")[0].appendChild(ncdn5)
injectnightmare()