SoundCloudLog

Log played SoundCloud tracks in browsing history to avoid losing music. More detailed instructions and logMode setting inside code.

Yazar
Gercomsci
Günlük kurulumlar
0
Toplam kurulumlar
44
Değerlendirmeler
0 0 0
Versiyon
1.1
Oluşturulma
05.06.2021
Güncellenme
05.06.2021
Lisans
N/A
Geçerli

SoundCloudLog

Never lose that tune again!

This is my first ever user script. Feel free to fork and improve. Because SoundCloud is a progressive web application, music playing in background is not logged in the browsing history; only when the playback page is actually opened.

This user script makes clever use of browsers' logging of pushState and anchor URLs in the history, and could have saved several tracks I've lost.

Instructions

Originally, I was going to release separate "variant A" and "variant B" scripts for two distinct logging modes. But I decided to combine both variants into a single script for simplicity. This preference can easily be adjusted in the source code of the script, in the "preferences" section.

Log mode A: "pushState" generates a shareable URL. Log mode B: "URL anchor" changes the URL back to prevent interfering with history navigation. For maximum compatibility, "B" is preferred, thus it is preset.

I might implement an in-website user interface for settings in future, but for now, this fullfills its purpose.