Giter Site home page Giter Site logo

dropgunner / discord-history-tracker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chylex/discord-history-tracker

0.0 1.0 0.0 13.68 MB

Browser script that saves Discord chat history into a file, and an offline viewer that displays the file.

Home Page: https://dht.chylex.com

License: MIT License

Python 3.88% HTML 15.20% JavaScript 71.51% CSS 4.42% Batchfile 0.04% PHP 4.95%

discord-history-tracker's Introduction

Welcome

All you need to use Discord History Tracker is either an up-to-date browser, or the Discord desktop client. Visit the official website for instructions.

To report an issue or suggestion, first please see the issues page and make sure someone else hasn't already created a similar issue report. If you do find an existing issue, comment on it or add a reaction. Otherwise, either click New Issue, or contact me via email [email protected] or Twitter @chylexmc.

If you are interested in creating your own version from the source code, continue reading the build instructions below.

Build Instructions

Follow the steps below to create your own version of Discord History Tracker.

Setup

Fork the repository and clone it to your computer (if you've never used git, you can download the GitHub Desktop client to get started quickly).

Now you can modify the source code:

  • src/tracker/ contains JS files that are automatically combined into the tracker bookmark/script
  • src/renderer/ contains HTML, CSS, JS files that are then combined into the offline viewer page
  • lib/ contains utilities required to build the project
  • web/ contains source code of the official website, which can be used as a template when making your own website

Building

After you've done changes to the source code, you will need to build it. Before that, download and install:

Now open the folder that contains build.py in a command line, and run python build.py to create a build with default settings. The following files will be created:

  • bld/track.js is the raw tracker script that can be pasted into a browser console
  • bld/track.html is the tracker script but sanitized for inclusion in HTML (see web/index.php for examples)
  • bld/viewer.html is the complete offline viewer

You can tweak the build process using the following flags:

Minification

The build process automatically minifies the CSS using YUI Compressor and JS files using UglifyJS@3.

  • If the --nominify flag is used, minification will be completely disabled
  • If Java is not available from the command line, CSS minification will be skipped
    • You can check whether you have installed Java correctly by running java -version in the command line, and making sure the version is 1.7.xyz or higher
  • If uglify-es is not available from the command line, JS minification will be skipped
    • When building on Windows 64-bit, the build script will use the included Node runner and packages
    • When building on Windows 32-bit, you will need to download Node 32-bit and replace the included one in lib/
    • When building on Linux/Mac, the build script will attempt to find uglifyjs in the command line, however you need to make sure it's the correct package (only uglify-es will work; if you install the older package just named uglifyjs, then it will crash and probably set something on fire)

discord-history-tracker's People

Contributors

chylex avatar jahands avatar lynxy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.