mirror of
https://gitlab.com/arnekeller/yt-addiction-control.git
synced 2024-11-08 09:50:39 +00:00
Hide the next video button in the video control bar
This commit is contained in:
parent
9bda48232c
commit
772a77c7e2
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
web-ext-artifacts
|
@ -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": {
|
||||
|
7
todo.txt
7
todo.txt
@ -1,7 +0,0 @@
|
||||
"theme_icons": [{
|
||||
"light": "icons/beasts-32-light.png",
|
||||
"dark": "icons/beasts-32.png",
|
||||
"size": 32
|
||||
}],
|
||||
|
||||
(4) tab title notification count
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user