Skip to content

Instantly share code, notes, and snippets.

@shinmai
Last active December 5, 2023 18:33
Show Gist options
  • Save shinmai/dab42de2e205b897f9548bd0e01ff9e1 to your computer and use it in GitHub Desktop.
Save shinmai/dab42de2e205b897f9548bd0e01ff9e1 to your computer and use it in GitHub Desktop.
soundgasm page reTITler
// ==UserScript==
// @name soundgasm page reTITler
// @namespace rip.aapo.userscript
// @version 0.0.2
// @description change soundgasm audio pages' title to show uploader username and audio title
// @author @shinmai - shinmai.wtf
// @match https://soundgasm.net/u/*/*
// @grant none
// @updateURL https://gist.github.com/shinmai/dab42de2e205b897f9548bd0e01ff9e1/raw/sndgsm.user.js
// @downloadURL https://gist.github.com/shinmai/dab42de2e205b897f9548bd0e01ff9e1/raw/sndgsm.user.js
// ==/UserScript==
(function() {
'use strict';
const titleText = document.querySelector('[aria-label="title"],.jp-title').innerText
const username = document.location.pathname.split("/")[2]
document.title = username + " - " + titleText + " - soundgasm";
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment