1
0
mirror of https://github.com/chylex/Discord-History-Tracker.git synced 2025-01-06 22:42:49 +01:00
Desktop app & browser script that saves Discord chat history into a file, and an offline viewer that displays the file. https://dht.chylex.com
Go to file
2016-11-15 14:22:48 +01:00
lib Add Google Closure Compiler for ES6 support and update build script 2016-10-23 23:52:49 +02:00
src Fix escaping of doubled formatting characters in renderer 2016-11-15 14:22:48 +01:00
.gitignore Add a build script 2016-10-22 17:26:07 +02:00
build.py Make the bookmark file build have a bookmarkable link 2016-11-03 16:31:20 +01:00
LICENSE.md Rename LICENSE to LICENSE.md 2016-10-27 18:10:40 +02:00
README.md Update README.md 2016-11-03 17:41:59 +01:00
reserve.txt Add 'enableFormatting' to reserved words 2016-11-03 01:19:40 +01:00

Usage

Visit the official website to add Discord History Tracker (beta) to your bookmarks and download the renderer.

Building

The build script requires Python 3. For automatic build, run python build.py, and a bld folder with the track script and renderer will be created.

The track.js script is ready to be added as a bookmark in a browser, or ran in a browser console.

Minification

The build process has support for JS and CSS minification.

If possible, it uses YUI Compressor for CSS, and UglifyJS for JavaScript (falls back to Google Closure Compiler if UglifyJS is not available). If the required programs are not found on the system path, minification will be disabled without warnings.

It is possible to disable minification completely using the --nominify flag, or to force Google Closure Compiler to be used using the --closure flag.

Requirements

  • Java 7+ (YUI, Closure Compiler)
  • npm (UglifyJS)
  • uglify-js-harmony (UglifyJS)

Setting Up UglifyJS

Once you install npm, use the following command to download UglifyJS with ES6 support and add it to your system path:

npm install uglify-js-harmony -g

UglifyJS vs Google Closure Compiler

Closure Compiler compiles into ES5, which adds support for older browsers that don't have some of the used ES6 functionality, however it is at the expense of several additional kilobytes to the file size.