Skip to content

Instantly share code, notes, and snippets.

@dcpesses
Last active November 14, 2021 16:23
Show Gist options
  • Save dcpesses/8794a8c4282e503988f48c4f86929eb6 to your computer and use it in GitHub Desktop.
Save dcpesses/8794a8c4282e503988f48c4f86929eb6 to your computer and use it in GitHub Desktop.
UserScript: Append Streamer Name To Twitch Chat Page Title
// ==UserScript==
// @name Append Streamer Name To Twitch Chat Page Titles
// @namespace https://gist.github.com/dcpesses
// @version 1.0.1
// @description Adds the streamer's username to the title of Twitch chat popout pages to help indicate which stream you're viewing.
// @author dcpesses
// @match https://twitch.tv/popout/*
// @match https://www.twitch.tv/popout/*
// @grant none
// ==/UserScript==
(function() {
let path_array = location.pathname.split('/');
if (path_array.length > 2) {
document.title = 'Twitch: '+ path_array[2];
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment