Last active
November 14, 2021 16:23
-
-
Save dcpesses/8794a8c4282e503988f48c4f86929eb6 to your computer and use it in GitHub Desktop.
UserScript: Append Streamer Name To Twitch Chat Page Title
This file contains 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 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