Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
dbcac6c
Update index.html
DespicableGoose Oct 16, 2021
5af85bb
Update index.html
DespicableGoose Oct 16, 2021
d4bf8f3
Update index.html
DespicableGoose Oct 16, 2021
3549030
Update index.html
DespicableGoose Oct 18, 2021
5908d3c
Update index.html
DespicableGoose Oct 18, 2021
627af45
Update index.html
DespicableGoose Oct 18, 2021
cc39fb7
Update index.html
DespicableGoose Oct 18, 2021
9ff8f8e
Update index.html
DespicableGoose Oct 18, 2021
75f3481
Update index.html
DespicableGoose Oct 18, 2021
483489c
Update index.html
DespicableGoose Oct 18, 2021
2a96bc1
Create nbt.js
DespicableGoose Oct 18, 2021
502616d
Update index.html
DespicableGoose Oct 18, 2021
32ddea8
Delete nbt.js
DespicableGoose Oct 18, 2021
b2189cc
Update index.html
DespicableGoose Oct 18, 2021
d5bc47d
Update index.html
DespicableGoose Oct 18, 2021
59341da
Create gzip.min.js
DespicableGoose Oct 18, 2021
ebfe6ba
Update index.html
DespicableGoose Oct 18, 2021
592ba22
Update and rename gzip.min.js to nbt.js
DespicableGoose Oct 18, 2021
ce20052
Update index.html
DespicableGoose Oct 18, 2021
4c49da4
Update index.html
DespicableGoose Oct 18, 2021
e1b0f31
Update index.html
DespicableGoose Oct 18, 2021
57c07fa
Update index.html
DespicableGoose Oct 18, 2021
5454a4b
Create index.html
DespicableGoose Oct 18, 2021
f1b7280
Update index.html
DespicableGoose Oct 18, 2021
21cf99f
Update index.html
DespicableGoose Oct 18, 2021
d3257b7
Update index.html
DespicableGoose Oct 19, 2021
d66cdd0
Update index.html
DespicableGoose Oct 19, 2021
488d843
Update index.html
DespicableGoose Oct 19, 2021
f15c8b5
Update index.html
DespicableGoose Oct 19, 2021
4a6999f
Update index.html
DespicableGoose Oct 19, 2021
7f37777
Update index.html
DespicableGoose Oct 19, 2021
7e867f9
Update index.html
DespicableGoose Oct 19, 2021
aadc729
Update nbt.js
DespicableGoose Oct 19, 2021
d24da5f
Update nbt.js
DespicableGoose Oct 19, 2021
4f8546c
Update nbt.js
DespicableGoose Oct 19, 2021
ad0c54e
Create nbt.js
DespicableGoose Oct 19, 2021
2d973d9
Update index.html
DespicableGoose Oct 19, 2021
daf994f
Update index.html
DespicableGoose Oct 19, 2021
a6a1927
Update index.html
DespicableGoose Oct 19, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 30 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
</style>
</head>
<body onload="getURL()">
<script src="nbt.js"></script>
<script>
function getURL() {
if (window.location.search) {
Expand Down Expand Up @@ -129,12 +130,19 @@
return x;
}

function decode_utf8(s) {
var decoder = new TextDecoder('utf-8'),
decodedMessage;
decodedMessage = decoder.decode(s);
return decodedMessage;
}

async function getStats(username, key, uuid, uuidjson, profilenum, profilejson) {
let skyblockskill = await fetch("https://api.hypixel.net/resources/skyblock/skills");
let skillsjson = await skyblockskill.json();
console.log(skillsjson);



console.log(profilejson);
let farming_level = getLevel('farming', profilejson, skillsjson, profilenum, uuid);
let mining_level = getLevel('mining', profilejson, skillsjson, profilenum, uuid);
let combat_level = getLevel('combat', profilejson, skillsjson, profilenum, uuid);
Expand All @@ -151,6 +159,26 @@
console.log(enchanting_level);
console.log(alchemy_level);
console.log(taming_level);
console.log(profilejson.profiles[profilenum].members["4a13f41bf0c84dd1a068d57c0c3745c5"].inv_contents.data);
let t = profilejson.profiles[profilenum].members["4a13f41bf0c84dd1a068d57c0c3745c5"].inv_contents.data;

/**let gzipped = atob(profilejson.profiles[profilenum].members["4a13f41bf0c84dd1a068d57c0c3745c5"].inv_contents.data)
console.log(gzipped);
let n = Uint8Array.from(inventoryunbase64)
console.log(n);
a = new Zlib.Gunzip(n).decompress();
console.log(a);
**/

let a;
try {
const n=Uint8Array.from(atob(t),t=>t.charCodeAt(0));
a = new Zlib.Gunzip(n).decompress();
} catch(error) {
console.error(error);
}
console.log(a);
console.log(decode_utf8(a));
}
</script>

Expand Down
38 changes: 38 additions & 0 deletions nbt.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.