Mass Discord Message Remover / Deleter Script – Remove Lots of Instant Messages

With this script, you can automate the removal of a massive quantity of discord messages (everything back to a channel’s origin, if wanted), including in personal channels. I used it personally to delete a conversation with over a year of messages. There were no problems after the proper modifications.

You will need Tampermonkey. This is an extension for your favorite browser that will allow you to run custom JavaScript.


Next, visit the delete discord messages repository. You will need to click the ‘userscript.js‘ file listed upon visiting the url. Copy everything (CTRL + A / CTRL + C) and install it. The script obviously does nothing malicious but you can also take this opportunity to verify for yourself.

To use, click the trash can icon in the channel or DM you want to delete and press “START”.

You can also add a ‘before message id’ or ‘after message id’ to control how much you delete.

The script will try to respect Discord’s limits as much as possible, backing off as necessary when Discord errors. I cannot promise you will not be banned for selfbotting or something, but I have used it many times and my account is fine. Just to be safe you shouldn’t be doing anything else on your account while the script is deleting (it will also slow down and cause problems anyway). AFAIK this doesn’t violate anything in terms of service but use at your own risk, as always.


Quick Links to My Stuff
Published 2022-03-06 20:55:47

Easiest way to download YouTube videos and convert them to any format including .mp3 in 2022

Methods of downloading YouTube videos have changed over the years. Here are two of my preferred methods for doing so in 2022.

tl;dr: easy:

Use a Youtube-Mp3 converter site, if you know how to Google then you’ve probably found one of these already.

tl;dr: is asked to fix printers:

Get the latest ‘youtube-dl’ fork like yt-dlp. Use ffmpeg to convert.


Easy

Yeah there’s really nothing else you need here

The Other Method

  1. Get yt-dlp. Put it in a folder somewhere in C:\ like ‘youtubedownload’. Rename the .exe file to yt.exe.
  2. Get ffmpeg. Put it in the same folder. You could rename this .exe file if you want as well, the names will be the commands used in the future.
  3. Press the WINDOWS key, and type ‘path’.
    (INCOMING WALL OF PICTURES)
  4. Choose ‘Enviroment Variables’
    enviroment variables pointer
  5. Then,
    edit path detailed pointer
  6. You can then add a new entry for the ‘path’ environment variable. The system uses this to allow the executing directory to be in any directory listed in the path. Meaning, when you run a command in CMD, the system will always check any directories in the ‘path’.
    add new path entry
  7. Click OK on all open windows after adding the directory the exes are in to the ‘path’.

Example Usage

We will be using this song from YouTube: Moving Romance – Yoann Garel. It’s also available on Soundcloud here.

Right click on your Desktop > ‘Open Command Window Here’. If you don’t have this option in the context menu, you can download these registry edits to add it.

Next type the name of the yt-dlp .exe followed by a space and the url. So if you renamed it ‘yt’ like stated previously, it would look like so:
yt https://www.youtube.com/watch?v=dIMdcJWOEFM
Hitting enter will start downloading that video to the desktop directory you just launched the CMD window in. (Hint! If you want to use a Soundcloud URL like we have below, that will work too! Isn’t technology great?)
yt-dl download example

If you want to convert the resulting video to a proper audio file like .mp3, you have two options. First of all, you can use the quick solution right from yt-dl:

yt -x --audio-format mp3 [video_url]

Or, since ffmpeg is useful for other tasks (and you should have it anyway), you can use it directly. A simple syntax of an ffmpeg command that would convert to an mp3 would look like ffmpeg -i [input file name] [output file name].[output file extension]. But wait, we don’t want to type that long, ugly file name in that yt-dlp just spit out onto our desktop… luckily we have a trick for that.

Run ‘dir /x‘ in the open CMD window.dir /x example yt
This is an extremely helpful windows command that will show ‘short’ filenames for files, making working with longer file names a breeze. Windows is telling us in the screenshot above that we can refer to the video we just downloaded as ‘moving~3.web’. Now assuming no renaming of the ffmpeg .exe took place in the setup step, our command simply becomes:

ffmpeg -i moving~3.web output.mp3
ffmpeg -i output.mp3 example

And you’re done! You now have ‘output.mp3’ on your desktop saved as the song we were just playing on YouTube. I’ve combined this process with scripted metadata adding/titling for an offline library. And, with the right yt-dlp commands it can even become an efficient way to export entire playlists of music.


Quick Links to My Stuff
Published 2022-03-06 02:23:43

Adding ‘Open command window here’ context menu in Windows 10 to the right click menu, restoring cmd

Simply download whichever option flavor you prefer and run it. You may need to restart explorer to see your changes. The files are zipped up .reg files.


Choose an option to download

ADD TO RIGHT CLICKSHIFT + RIGHT CLICKREMOVE/UNINSTALL
You should always verify any files you download/run from strangers on the internet.

Since .reg files are basically .txt files containing paths of where to insert registry entries, you can easily open any of the downloaded files in a text editor and verify the contents are benign for yourself.


Quick Links to My Stuff
Published 2022-03-06 01:44:52

Random Quote Generation API

I was looking around for a quote API that simply served a lot of normal random quotes and I couldn’t find one that satisfied me for free.

https://gen.software/quote/

Simple documentation: https://gen.software/quote/doc

Here’s a new random quote generator API that serves a random quote from 500k+ famous/known and some unknown ones as well in JSON format built in Node.js. The quote selected is from an ever growing database started with this dataset here and a few other compiled sources.

If you want to submit a suggestion for a quote to add, you can visit this url here: https://gen.software/quote/submit

No guarantees of any kind are made about this project, it could disappear in the future, go down temporarily, or change without notice – but for now everyone who sees this is free to use it!

Don’t be a jerk, I’m using this for a personal project too so if people start DDoSing, spamming, or misusing this in any way I will be forced to implement API keys or lock it off entirely (more likely).

Cheers.


Quick Links to My Stuff
Published 2022-02-05 13:24:00

Small MedTracker project

Many years ago I created a small app to help me remember whether or not I had taken my medications for the day, so I never took them twice and could be reminded at designated times. I slapped a button and a counter on the screen, made it track the last taken date and display a clock, and that was it. It looked terrible, but it worked, and I was planning on making it look better. However, I tested the concept app for a day or two and that test turned into full time usage. I never updated it or uninstalled the dev copy that I was testing with. If it works, don’t fix it, right?

Recently I decided I was tired of it looking terrible and since I’d been wanting an excuse to use React Native again I decided to remake it.

Here’s the original:

๐Ÿ˜ณ but in my defense this was the first and only ever build

Here’s the updated copy with a UI I spent slightly more than 30 seconds on.

has random quotes that change from a few different APIs
pretty simple but much needed attention!

The app isn’t distributed, just something I updated personally for myself, as the app helps me a lot and has become a part of my routine.

๐Ÿ™‚


Quick Links to My Stuff
Published 2022-01-27 09:31:14

Better dark theme for Firefox

If you wanted a more cohesive dark theme on Firefox (or never noticed but now it won’t stop bothering you):

I made an updated dark theme a while ago, published it in case anyone else wants it ๐Ÿ™‚

Without updated dark theme:

Settings tab is hovered with mouse

With updated dark theme:

Settings tab is hovered with mouse

cheers


Quick Links to My Stuff
Published 2021-12-08 11:52:15