Skip to content

Instantly share code, notes, and snippets.


Robin Gustafsson rgson

  • Sweden
View GitHub Profile

Keybase proof

I hereby claim:

  • I am rgson on github.
  • I am rgson ( on keybase.
  • I have a public key whose fingerprint is B26C 2ED3 7324 6221 9C3D 1DFE 293A 3C91 D188 369C

To claim this, I am signing this object:

rgson /
Last active Mar 10, 2019
Lorem Picsum Wallpapers (Cinnamon)
set -e
# Sets your wallpaper to a random photo from <>.
# Run regularly (e.g. automatically on login) to keep your desktop fresh.
mkdir -p "$cache"
rgson / youtube-playlist-duration.js
Created Feb 9, 2019
Calculates the total duration of a YouTube playlist.
View youtube-playlist-duration.js
Calculates the total duration of a YouTube playlist.
Run the snippet in Chrome Dev Tools while on the playlist's page,
Ensure that the playlist is fully visible first.
Long playlists are loaded 100 videos at a time.
rgson /
Created Nov 23, 2018
Delete Discord messages

Discord Eraser

Erases all of your messages in a DM conversation.


  1. Open Chrome Dev Tools > Network.
  2. Go to
  3. Find some request with the Authorization request header.
  4. Place the header's value in the Authorization variable in eraser.js.
You can’t perform that action at this time.