aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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() })