Skip to content

Commit aa74af4

Browse files
committed
Update
1 parent 0eb1903 commit aa74af4

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

clean-ui.user.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// ==UserScript==
22
// @name Clean UI
3-
// @version 0.1
3+
// @version 0.2
44
// @downloadURL https://userscripts.codonaft.com/clean-ui.user.js
55
// @require https://userscripts.codonaft.com/utils.js
6-
// @match https://*.youtube.com/*
6+
// @match https://*.invidious.*/*
77
// @match https://*.telegram.org/*
8+
// @match https://*.youtube.com/*
89
// ==/UserScript==
910

1011
(_ => {
@@ -30,4 +31,14 @@ if (h.endsWith('youtube.com')) {
3031
return false;
3132
});
3233
}
34+
35+
if (h.includes('invidious')) {
36+
subscribeOnChanges(document.body, 'div.h-box', (node, observer) => {
37+
if (node.textContent?.includes?.('Play next by default')) {
38+
observer.disconnect();
39+
hide(node);
40+
}
41+
return false;
42+
});
43+
}
3344
})();

0 commit comments

Comments
 (0)