diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-09-21 22:21:59 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-09-21 22:21:59 -0500 |
| commit | 0af9cdb8b7b415650a3535cdf4338907a09dca09 (patch) | |
| tree | f10c55e5456549c069b9ffb791cc0bd4935b7e6f /youtube | |
| parent | baf954b344e8b51c02959014e00b41695e793c8c (diff) | |
| download | userscripts-0af9cdb8b7b415650a3535cdf4338907a09dca09.tar.xz userscripts-0af9cdb8b7b415650a3535cdf4338907a09dca09.zip | |
mv piped button to embedtube button
Diffstat (limited to 'youtube')
| -rw-r--r-- | youtube/embedtube-button.user.js (renamed from youtube/piped-button.user.js) | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/youtube/piped-button.user.js b/youtube/embedtube-button.user.js index 60cd7f2..6f50e31 100644 --- a/youtube/piped-button.user.js +++ b/youtube/embedtube-button.user.js @@ -1,21 +1,23 @@ // ==UserScript== -// @name Piped Button youtube.com +// @name Redirect to EmbedTube // @namespace Violentmonkey Scripts // @match https://www.youtube.com/* // @grant GM_addStyle -// @version 1.0 -// @author - +// @homepageURL https://git.tjkeller.xyz/userscripts/about +// @downloadURL https://git.tjkeller.xyz/userscripts/plain/youtube/embedtube-button.user.js +// @version 1.1 +// @author tjkeller.xyz // @description 3/9/2024, 8:38:47 PM // ==/UserScript== /* Config */ -const instanceHostname = "piped.tjkeller.xyz" +const instanceHostname = "yt.tjkeller.xyz" const instanceProtocol = "https:" -const instanceIconLogo = "/img/icons/logo.svg" +const instanceIconLogo = "/static/favicon.svg" const instanceUrl = `${instanceProtocol}//${instanceHostname}` -const redirectButtonId = "piped-button" +const redirectButtonId = "embedtube-button" GM_addStyle(` a#${redirectButtonId} button { @@ -48,7 +50,7 @@ if (!document.getElementById(redirectButtonId)) { redirectButton.id = redirectButtonId redirectButtonImg.src = instanceUrl + instanceIconLogo redirectButtonImg.alt = "(Down)" // Logo effectively acts as a test to see whether the instance is up or not as a bonus - redirectButtonTxt.innerText = "Piped" + redirectButtonTxt.innerText = "EmbedTube" redirectButton.addEventListener("mouseover", () => { redirectButton.href = newUrl() }) |
