1
0
mirror of https://github.com/chylex/Discord-History-Tracker.git synced 2024-12-22 14:42:50 +01:00
Commit Graph

254 Commits

Author SHA1 Message Date
8b80bce56b Rewrite most of the handling and fresh msg detection
Closes #15
Closes #16
2017-10-27 00:07:57 +02:00
b213716bcc Release BETA v.4 2017-10-06 02:12:06 +02:00
1275745fb6 Rewrite message load detection after an update made it unreliable 2017-10-06 02:11:50 +02:00
828ba813df Disable reset button while tracking 2017-10-05 22:33:51 +02:00
84eac1ef8a Redesign buttons in both tracker and renderer 2017-10-05 22:18:45 +02:00
f8b8b1915f Fix getReactProps for updated React 2017-10-05 21:54:54 +02:00
3bf8aea7e1 Release BETA v.3 2017-07-01 13:23:57 +02:00
a1021dc56c Decrease delay before trying to load older messages 2017-07-01 13:20:20 +02:00
52499312cd Replace ajax hook with DOM bullshittery because MutationObservers are bork 2017-07-01 03:52:38 +02:00
cb9222bdd0 Remove outdated warning in tracker & add version and release date 2017-06-30 15:15:49 +02:00
c9bc6bee08 Update message loading and remove untracked request detection 2017-06-30 14:54:10 +02:00
b9f8bbc8d3 Add a function to get loaded messages from UI instead of AJAX response 2017-06-30 14:42:44 +02:00
a11a874d51 Add a function to get React instance from an element 2017-06-30 14:29:20 +02:00
edb6867284 Rewrite channel handling for the updated Discord layout 2017-06-10 15:40:37 +02:00
946b171344 Close enough 2017-05-31 16:40:27 +02:00
82a127003e Add version and release date to renderer 2017-05-31 16:35:12 +02:00
33fef6e897 Change the modal system in renderer to use dynamic height 2017-05-31 15:39:13 +02:00
170c61b3bd Fix a crash in renderer when a channel has no messages 2017-05-31 14:52:59 +02:00
5bca25d019 Add a short delay before trying to load older messages (fixes issues on fast computers) 2017-05-31 14:52:32 +02:00
8f99c30880 Remove unnecessary code and refactor some more 2017-05-24 18:27:53 +02:00
1a18e4ddc5 Show settings only on first run and don't show them after state reset 2017-05-24 17:27:55 +02:00
65a64b30bb Add persistence of settings using cookies 2017-05-21 01:08:41 +02:00
03bc03c51d Implement some tweaks and fixes for minification 2017-05-20 22:23:13 +02:00
ed68136e25 Reimplement uglifyjs prop mangling 2017-05-20 21:01:09 +02:00
c2f0134cf8 Tweak message shown when running script inside a channel 2017-05-20 16:07:10 +02:00
874b5282a7 Add a button to close the UI 2017-05-20 16:03:01 +02:00
6f9659fbad Fix formatting and minor issues in last PR 2017-05-20 15:39:28 +02:00
Jacob Hands
8c3a55eb58 Use blob to allow larger downloads 2017-05-19 21:06:03 -05:00
43917632bd Fix escaping of doubled formatting characters in renderer 2016-11-15 14:22:48 +01:00
f0de2709c2 Rewrite escaped formatting character handling in renderer 2016-11-15 13:49:44 +01:00
ee8c923c3a Fix issues with no embed url rendering 2016-11-15 13:32:01 +01:00
0c76900774 Add a Discord website check to the tracker 2016-11-03 02:03:06 +01:00
c52ee683fa Use last uploaded file name as the downloaded file in tracker 2016-11-03 01:35:14 +01:00
6637468a70 Show tracker settings after clicking Reset 2016-11-03 01:31:18 +01:00
f023c75f9e Add a renderer setting to toggle message formatting 2016-11-03 00:57:00 +01:00
737ea37c61 Refactor scr.gui.js to make checkboxes easier to setup in renderer settings 2016-11-03 00:54:14 +01:00
8e394ff1be Add an option to toggle image previews in renderer 2016-11-02 23:00:16 +01:00
babdafea01 Add a base for renderer settings modal 2016-11-02 22:59:57 +01:00
f1a6345385 Add an About button to renderer 2016-11-02 22:20:35 +01:00
8961569114 Add a base for modal dialogs in renderer 2016-11-02 22:20:11 +01:00
2e34c8c315 Reorder functions in scr.gui.js and add organizational comments 2016-11-02 19:56:59 +01:00
2a0e686d64 Refactor scr.state.js to use a sorter from scr.processor.js in renderer 2016-11-02 19:17:18 +01:00
d87fdd877f Add a WIP message processor with filters and sorters 2016-11-02 19:16:50 +01:00
082e6d0a1a Refactor and reorganize scr.state.js in renderer 2016-11-02 18:23:26 +01:00
b54ab16a39 Refactor savefile and state in renderer 2016-11-02 17:20:40 +01:00
c5b6e1d110 Add object iteration and combining functions to scr.utils.js 2016-11-02 17:20:22 +01:00
50f184cc09 Add scr.utils.js to renderer with a readJsonFile function, and refactor execution file 2016-11-02 17:20:07 +01:00
87ef25129e Restructure renderer style.css into multiple files 2016-11-02 16:34:56 +01:00
78561c9689 Add a separator class to renderer, rename previous separator to splitter and tweak the style 2016-11-01 20:04:59 +01:00
a10c1c993a Refactor pagination from scr.exec.js to scr.state.js in renderer 2016-11-01 17:26:26 +01:00
2c05220e19 Fix angled brackets around urls not getting removed in renderer 2016-11-01 16:50:15 +01:00
8ffdd8eaec Fix style of code elements, detection of inline code, and prevent formatting inside them 2016-11-01 16:37:26 +01:00
a71bb740c2 Rename the regex for escaped characters and add unescaped ones in renderer 2016-11-01 16:36:35 +01:00
823b4049f7 Fix detection of escaped asterisk in renderer 2016-11-01 16:35:51 +01:00
ab9eacc060 Improve the look of pagination buttons in renderer 2016-11-01 16:11:03 +01:00
d22163b358 Stop execution of tracker when automatically moving to Friends list 2016-11-01 16:10:38 +01:00
4db76900d3 Add handling of escaped formatting characters in renderer 2016-11-01 16:09:28 +01:00
454bc0fb39 Fix images going out of bounds in renderer 2016-11-01 15:56:29 +01:00
e7a06f6748 Add an option to display all messages on one page in renderer 2016-11-01 15:51:02 +01:00
ee34d82aea Make getAllMessages and getRawMessages in renderer return a map instead of an array 2016-11-01 15:45:36 +01:00
37d0c1e182 Add a polyfill info comment to Object.values in tracker 2016-11-01 13:10:28 +01:00
693943453f Add refresh prompt when running the tracker script in a channel 2016-11-01 13:03:18 +01:00
094ed75eca Add a couple utility functions to renderer (retrieving messages and selected channel) 2016-10-31 22:22:22 +01:00
60a66690bd Fix inconsistency in renderer element ID and menu style 2016-10-31 21:27:24 +01:00
7d9d1a9869 Fix max width of image thumbnails in renderer 2016-10-31 01:18:37 +01:00
b74b03d44d Add .jpeg to attachment image extensions in renderer 2016-10-31 00:00:13 +01:00
ba2b5fa7c8 Fix image alt text in renderer (change title to alt) 2016-10-30 23:56:02 +01:00
f7136560a1 Add 'edited' label to edited messages in renderer 2016-10-30 23:50:00 +01:00
b5eec0fc65 Remove bit 2 (user mentions) from savefile.js 2016-10-30 23:49:34 +01:00
ba3564dbcb Add embedded image rendering 2016-10-30 23:43:40 +01:00
6a6a44c04d Fix thumbnail links in renderer 2016-10-30 23:42:32 +01:00
6a9d6607ed Add message attachment rendering 2016-10-30 23:36:33 +01:00
45896cc266 Add styles and templates for embedded images and downloads 2016-10-30 23:35:54 +01:00
dd338dfaf6 Work on message rendering (wrap contents in <p>, update stylesheets) 2016-10-30 23:35:10 +01:00
7af9ca8302 Fix message sorting in renderer having issues with varying message key lengths 2016-10-30 22:41:56 +01:00
a94b5a0358 Fix renderer pagination updating too late, causing empty message list when changing msgs per page 2016-10-30 22:19:04 +01:00
caaaedcf73 Add styles for disabled elements, selects, and texts in the renderer menu 2016-10-30 22:12:05 +01:00
000ef6d57f Add basic configurable pagination to renderer 2016-10-30 22:11:41 +01:00
d64ed39724 Add menu separator to renderer 2016-10-30 21:09:15 +01:00
41864af9d7 Reorganize renderer GUI scripts into scr.gui.js 2016-10-30 20:18:08 +01:00
8f9f28518f Update the menu styles in renderer (flex, fix button text selecting, futureproofing) 2016-10-30 20:14:37 +01:00
c4baf33a9f Tweak the message username size and padding in renderer 2016-10-30 20:12:30 +01:00
f8ae7ea42c Add a border between channels in renderer 2016-10-30 16:48:13 +01:00
4b5323d152 Redesign and move the menu to the top in renderer 2016-10-30 16:48:04 +01:00
22a451ff76 Fix an issue with cached request checking while not in a channel in tracker 2016-10-30 16:29:43 +01:00
5c1f03c5f3 Tweak the wording in tracker GUI 2016-10-30 16:29:28 +01:00
a87043114b Update info in the tracker settings GUI 2016-10-30 15:38:11 +01:00
312e4b9f34 Add a warning message to tracker if ran while in a channel 2016-10-30 15:29:24 +01:00
bd39323683 Add first request cache and untracked request detection to tracker 2016-10-30 15:28:07 +01:00
fbbbbcd39c Prevent tracker script from being ran twice 2016-10-30 13:35:14 +01:00
b9d50ddb01 Add channel and message counting to tracker, and display them in the controller UI 2016-10-27 23:44:46 +02:00
a3b3f55d47 Fix broken saved message detection in tracker 2016-10-27 20:51:34 +02:00
47d846b283 Change the upload button title in tracker 2016-10-27 20:48:42 +02:00
f75d6f7a84 Add a couple notes to the tracker GUI 2016-10-27 20:40:43 +02:00
dc0132357f Fix slash escaping in renderer 2016-10-27 20:17:26 +02:00
42789dcf7b Add message HTML escaping to renderer 2016-10-27 20:13:31 +02:00
06f8ba529c Fix HTML escaping in renderer getting renamed by UglifyJS 2016-10-27 20:12:05 +02:00
b7829f09f9 Set UglifyJS to mangle props and add a file with reserved props 2016-10-27 19:39:34 +02:00
54a1ffddbf Register users in message mentions when tracking 2016-10-27 17:06:05 +02:00
b6286d619c Rename 'src' to 'scr' in renderer script prefixes 2016-10-27 16:55:17 +02:00
63cbd25ee9 Add channel and user mention highlighting in renderer, and fix typos in scr.discord.js 2016-10-27 16:50:32 +02:00
a42a7b6913 Add a way of retrieving channel and user names from renderer state object 2016-10-27 16:49:51 +02:00
b97c483be9 Add message formatting and styles to renderer (inline formats, code, urls) 2016-10-27 16:26:35 +02:00
81a56e4da5 Add regular expressions for formatting to scr.discord.js 2016-10-27 15:47:52 +02:00
35aa3c2724 Add comments to renderer stylesheet and use Verdana instead of Arial 2016-10-27 15:44:43 +02:00
178c230d2c Work on menu and channel list layout and styles in renderer 2016-10-27 15:44:25 +02:00
a459943351 Move renderer data to src.state.js, refactor src.savefile.js, and update execution file to use the state obj 2016-10-27 13:30:05 +02:00
da8027163e Fix HTML escaping in renderer crashing on non-string values 2016-10-27 13:26:55 +02:00
4dda9a6167 Tweak channel list style and layout in renderer 2016-10-26 13:01:59 +02:00
218c28f30e Add HTML escaping to templating in src.template.js 2016-10-26 13:01:10 +02:00
062abeb86a Add HTML character escaping to src.dom.js 2016-10-26 03:10:08 +02:00
e25ccd960e Add basic renderer functionality with file upload, channel selection, and message rendering 2016-10-25 23:27:03 +02:00
f48110faf3 Update renderer styles 2016-10-25 23:25:27 +02:00
88258d102a Add scr.savefile.js to renderer with getter methods 2016-10-25 23:25:10 +02:00
1bd72406b6 Add scr.discord.js to renderer with templates and HTML generation 2016-10-25 23:24:28 +02:00
679a2d8532 Add a smaller version of dom.js to renderer 2016-10-25 22:47:05 +02:00
7f654eaf5d Add template.js to renderer for basic templating 2016-10-25 22:46:55 +02:00
2a5f430884 Remove script.js from renderer 2016-10-25 22:46:38 +02:00
72511b92c6 Remove an unneeded TODO comment from gui.js 2016-10-25 21:41:51 +02:00
874fe42701 Add a basic renderer layout and style 2016-10-25 20:25:09 +02:00
5ec0747fd1 Add and implement a 'Switch to next channel' option 2016-10-25 17:44:02 +02:00
50a1e2e94e Add isInMessageView to discord.js and use it to prevent instant autoscrolling 2016-10-25 17:42:13 +02:00
d6bbb57a3f Add a function to select the next text channel to discord.js 2016-10-25 17:33:18 +02:00
939720dfa9 Add and implement configurable actions after reaching the first or a saved message 2016-10-25 17:17:45 +02:00
4087684913 Add a return value to addDiscordMessages in state.js 2016-10-25 16:57:32 +02:00
810ef6d343 Add hasMoreMessages to discord.js 2016-10-25 16:56:06 +02:00
0d6386f31c Disable upload and settings buttons while tracking 2016-10-25 16:47:43 +02:00
4bde931eca Add and implement an autoscroll setting 2016-10-25 15:32:13 +02:00
21f02b826a Implement execution code with basic message tracking and GUI display 2016-10-25 15:31:56 +02:00
bc81581f94 Fix a crash in gui.js caused by accessing STATE too early 2016-10-25 15:31:08 +02:00
4e110da654 Fix tracking toggle handling in state changed event in gui.js 2016-10-25 15:16:26 +02:00
fdd796b907 Remove trigger parameter from onStateChanged in state.js 2016-10-25 15:11:00 +02:00
1eaea33919 Add a settings overlay to gui.js 2016-10-25 15:10:28 +02:00
eae99d18f1 Add loadOlderMessages function to discord.js 2016-10-25 15:07:47 +02:00
019b96a1e0 Move state changed event handler in gui.js outside showController 2016-10-25 15:07:25 +02:00
13c83991a7 Add a basic settings object to state.js 2016-10-25 15:06:19 +02:00
a57d068008 Update state event listener in gui.js 2016-10-24 23:55:36 +02:00
d9426f1f53 Add more info to state.js state change event 2016-10-24 23:32:49 +02:00
3a4da84c55 Add a basic GUI with database upload and basic state handling 2016-10-24 19:54:06 +02:00
66070febcc Add state.js with basic tracking and savefile properties 2016-10-24 19:44:42 +02:00
827553a00c Add a basic validity check to savefile.js constructor 2016-10-24 18:39:49 +02:00
497e196d52 Fix issues with discord.js channel info function and do minor refactoring 2016-10-24 12:48:13 +02:00
86f5776250 Add a Discord message request hook and a function to retrieve selected channel info 2016-10-24 03:10:59 +02:00
11a3bace81 Add a GROUP server type into the database specification 2016-10-24 02:58:33 +02:00
b215d1dd82 Do minor code tweaks in savefile.js and add new line at the end of hooks.js 2016-10-23 23:53:19 +02:00
74151822c5 Add a reconstructor and a combineWith function to savefile.js 2016-10-23 23:11:18 +02:00
14b90cd624 Add Discord message processing to savefile.js 2016-10-23 23:10:49 +02:00
a8abb720a1 Add user, server, and channel registration functions to savefile.js 2016-10-23 21:10:25 +02:00
8112e5eda4 Update database specifications and storage in the object 2016-10-23 19:35:45 +02:00
2ee1f6550b Add savefile.js with the database format specifications 2016-10-23 19:25:26 +02:00