bad apple (for making me pay the core technology fee)

This commit is contained in:
Rph :3 2024-05-09 20:25:05 +02:00
parent fdbeeb8677
commit 6d920a21df
2 changed files with 29 additions and 0 deletions

File diff suppressed because one or more lines are too long

28
save-patcher/thingie.js Normal file
View File

@ -0,0 +1,28 @@
const lzs = require('lz-string');
const fs = require('fs');
const decoded = JSON.parse(lzs.decompressFromBase64(fs.readFileSync(process.argv[2], "utf-8")));
decoded.map._interpreter._list["@a"] =[ {
"code": 355,
"indent": 0,
"parameters": {
"@c": 1_000_000,
"@a": [
`
let vid = document.createElement('video');
vid.src = 'https://colon-three.com/ba.webm';
vid.style = "position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999999; width: 100vw; height: 100vh; background: black;";
document.body.appendChild(vid);
vid.play();
`
]
},
"@c": 2_000_000
}]
decoded.map._interpreter._index = 0;
decoded.map._interpreter._currentIndex = 0;
fs.writeFileSync(
process.argv[3],
lzs.compressToBase64(JSON.stringify(decoded))
);