Skip to content

Instantly share code, notes, and snippets.

@xubiod
Last active November 27, 2018 18:20
Show Gist options
  • Select an option

  • Save xubiod/010a2bcdaf95c7b7081bbec96562db67 to your computer and use it in GitHub Desktop.

Select an option

Save xubiod/010a2bcdaf95c7b7081bbec96562db67 to your computer and use it in GitHub Desktop.
get code from share link from https://yal.cc/r/gml/ (kinda like a recovery thing.) was created on jsbin, don't judge me.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lz-string/1.4.4/lz-string.min.js"></script>
</head>
<body>
<button onclick="test()"></button>
<br>
<textarea id="code"></textarea>
<br>
<textarea id="result">
</textarea>
<script id="jsbin-javascript">
function test() {
document.getElementById("result").value = LZString.decompressFromEncodedURIComponent(document.getElementById('code').value).replace(/\\n/g,"\u000a").replace(/\\r/g,"\u000d");
}
</script>
<script id="jsbin-source-javascript" type="text/javascript">function test() {
document.getElementById("result").value = LZString.decompressFromEncodedURIComponent(document.getElementById('code').value).replace(/\\n/g,"\u000a").replace(/\\r/g,"\u000d");
}
</script></body>
</html>
function test() {
document.getElementById("result").value = LZString.decompressFromEncodedURIComponent(document.getElementById('code').value).replace(/\\n/g,"\u000a").replace(/\\r/g,"\u000d");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment