<commit_before># Quicksave-BD-plugin
This is a plugin for BetterDiscord.

### What does it do?
Adds an "Quicksave" button when opening images. It allows you to save the file to a specified directory just with one click. Filename can be randomized.


### How to install?
1. Make sure you have native Discord application installed with [BetterDiscord](https://betterdiscord.net)
2. Locate the BetterDiscord plugin folder
  * %appdata%/BetterDiscord/plugins
  * or Settings>BetterDiscord>Plugins>Open Plugin Folder
3. Copy file 'Quicksave.plugin.js' to the plugin folder
4. Reload/restart Discord (CTRL+R)
5. Go to Settings>BetterDiscord>Plugins
6. Enable this plugin
7. Go to the plugin settings and set a download directory.


### Know bugs
* Saving images uploaded with Lightshot (prntscr) generate corrupted files. (Fix: Tell your friends to use ShareX or Puush)
<commit_msg>Remved fixed bugs, added few warnings<commit_after># Quicksave-BD-plugin
This is a plugin for BetterDiscord.

### What does it do?
Adds an "Quicksave" button when opening images. It allows you to save the file to a specified directory just with one click. Filename can be randomized.


### How to install?
1. Make sure you have native Discord application installed with [BetterDiscord](https://betterdiscord.net)
2. Locate the BetterDiscord plugin folder
  * %appdata%/BetterDiscord/plugins
  * or Settings>BetterDiscord>Plugins>Open Plugin Folder
3. Copy file 'Quicksave.plugin.js' to the plugin folder
4. Reload/restart Discord (CTRL+R)
5. Go to Settings>BetterDiscord>Plugins
6. Enable this plugin
7. Go to the plugin settings and set a download directory.


### Warnings
- The plugin will download images from their original URLs. This is done because Discord rehosted images are usually compressed.
- This will reveal your IP address to the server when downloading.
- The plugin doesn't do much checking of the filename or file contents, only content-type header is looked at. 
- It may write filenames without extensions, odd symbols or other filename wierdness that will confuse Windows.
- Because of the direct download, the server can send anything it wants. [Even viruses](https://stackoverflow.com/questions/9675941/how-can-a-virus-exist-in-an-image). Tho as long as you dont execute them or use image viewers from last millenia, you should be fine.
- MIT license. Use at your own risk. 

{'fraction_non_alphanumeric': 0.06905263157894737, 'fraction_numerical': 0.008842105263157894, 'mean_word_length': 4.512761020881671, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6450792', 'n_tokens_mistral': 681, 'n_tokens_neox': 645, 'n_words': 318}