Last active
December 5, 2023 18:33
-
-
Save shinmai/dab42de2e205b897f9548bd0e01ff9e1 to your computer and use it in GitHub Desktop.
soundgasm page reTITler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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