Created
January 23, 2015 08:45
-
-
Save Lexikos/5f8e1402943642ff98c7 to your computer and use it in GitHub Desktop.
HTA for converting the `toc` data in toc.js to pure JSON. Requires IE8+.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta http-equiv="X-UA-Compatible" content="IE=8"> | |
<script src="toc.js"></script> | |
<script> | |
var fso = new ActiveXObject("Scripting.FileSystemObject") | |
var f = fso.OpenTextFile("toc.json", 2, true) | |
f.Write(JSON.stringify(toc)) | |
f.Close() | |
window.close() | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment