From 772a77c7e2603405dfa45d36b419d4d34a94531f Mon Sep 17 00:00:00 2001 From: Arne Keller Date: Sun, 16 Aug 2020 09:41:50 +0200 Subject: [PATCH] Hide the next video button in the video control bar --- .gitignore | 1 + manifest.json | 2 +- todo.txt | 7 ------- youtube-addiction-control-extension-firefox.js | 4 ++-- 4 files changed, 4 insertions(+), 10 deletions(-) create mode 100644 .gitignore delete mode 100644 todo.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..44ce34d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +web-ext-artifacts diff --git a/manifest.json b/manifest.json index 75d6caf..95f615d 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "description": "Enables you to fight your youtube addiction by hiding video suggestions and related 'features' of YouTube's website. If you really want to, you can temporarily unhide those elements.", "manifest_version": 2, "name": "YT addiction control", - "version": "0.1.1", + "version": "0.1.3", "homepage_url": "https://gitlab.com/arnekeller/yt-addiction-control", "icons": { diff --git a/todo.txt b/todo.txt deleted file mode 100644 index debd803..0000000 --- a/todo.txt +++ /dev/null @@ -1,7 +0,0 @@ -"theme_icons": [{ - "light": "icons/beasts-32-light.png", - "dark": "icons/beasts-32.png", - "size": 32 - }], - -(4) tab title notification count \ No newline at end of file diff --git a/youtube-addiction-control-extension-firefox.js b/youtube-addiction-control-extension-firefox.js index 781d930..c3649b8 100644 --- a/youtube-addiction-control-extension-firefox.js +++ b/youtube-addiction-control-extension-firefox.js @@ -12,7 +12,7 @@ window.ytacCSS = { "endscreen": ".videowall-endscreen", "invideo": ".ytp-ce-video", "notification": "ytd-notification-topbar-button-renderer", - "other": "#newness-dot, .ytp-spinner" + "other": "#newness-dot, .ytp-spinner, .ytp-next-button" }; const INVISIBLE = " { display: none !important; }"; @@ -83,7 +83,7 @@ function modifyThings() { // autoplay disabler let autoplayButton = document.getElementById("toggle"); if (autoplayButton == null) { - console.warn("[YTAC] could not locate autoplay button"); + console.warn("[YTAC] could not locate autoplay button, trying again in 10s ..."); setTimeout(modifyThings, 10000); } else if (autoplayButton.getAttribute("aria-pressed") === "true") { autoplayButton.click();