diff --git a/docs/Extras/KeyGeneration.md b/docs/Extras/KeyGeneration.md
index 74cd795..3a4907b 100644
--- a/docs/Extras/KeyGeneration.md
+++ b/docs/Extras/KeyGeneration.md
@@ -19,5 +19,5 @@ Private Key:
A user by the name of coke[Citation needed] made an application which generates RSA pairs for the client, the download can be found [here](/hidden/Download#906c8ec652e43b043603b97fc0e31a626448e65bdf4819c7a8c4bc18a768d8a8).
-### See Also:
+
See Also:
- [What are signatures?](/Client Security/Signatures)
\ No newline at end of file
diff --git a/docs/assets/Download.js b/docs/assets/Download.js
index e409c8b..d0be04a 100644
--- a/docs/assets/Download.js
+++ b/docs/assets/Download.js
@@ -1,5 +1,7 @@
+let fileSpan = document.getElementById("file-span");
let dlText = document.getElementById("download-text");
let descText = document.getElementById("description-text");
+let sizeText = document.getElementById("size-text");
const hash = window.location.hash.substr(1);
@@ -11,9 +13,25 @@ fetch("/api/getFile?id=" + hash).then(function(response) {
function setupPage(data) {
if (data["Error"]) redirect404();
+ if (data["Author"])
+ {
+ showElement(document.getElementById("author-div"));
+ document.getElementById("author-text").innerText = data["Author"];
+ }
dlText.innerText = `Download '${data["Name"]}'`;
descText.innerText = data["Description"];
+ document.title = "Download " + data["Name"] + " - ROBLOX Reverse Engineering";
+
+ sizeText.innerText = FileSize(data["Size"])
+
+ let btn = document.createElement("button");
+ btn.className = "md-button md-button--primary downloadIcon";
+ btn.onclick = downloadFile;
+ btn.innerText = "Download File";
+ fileSpan.appendChild(btn);
+
+ showElement(fileSpan);
}
@@ -24,4 +42,13 @@ function redirect404() {
function downloadFile() {
window.location.href = "/api/dlFile?id=" + hash;
+}
+
+function showElement(element) {
+ element.style.display = "block";
+}
+
+function FileSize(size) {
+ var i = size == 0 ? 0 : Math.floor(Math.log(size) / Math.log(1024));
+ return (size / Math.pow(1024, i)).toFixed(2) * 1 + ' ' + ['B', 'kB', 'MB', 'GB', 'TB'][i];
}
\ No newline at end of file
diff --git a/docs/hidden/Download.md b/docs/hidden/Download.md
index 24ff8f4..a1b630e 100644
--- a/docs/hidden/Download.md
+++ b/docs/hidden/Download.md
@@ -1,16 +1,22 @@
-# Download Text
+