set window title to current audio
// ==UserScript==
// @name Title Replacer - SoundGasm
// @namespace http://tampermonkey.net/
// @version 2026-04-04
// @description set window title to current audio
// @author GlawGlack
// @match https://*.soundgasm.net/u/*/*
// @match https://soundgasm.theaviary.me/u/*/*
// @grant none
// @license unlicense
// ==/UserScript==
(function() {
'use strict';
// check every 500ms on page load until found
const checkInterval = setInterval(updateTitle, 500);
function updateTitle() {
let a = document.querySelector(".jp-title");
if (a !== undefined && a !== null)
{
if (document.title != a.innerText + " - soundgasm.net")
{
document.title = a.innerText + " - soundgasm.net"
clearInterval(checkInterval);
return;
}
}
}
})();