Skip to content

Commit c8984e7

Browse files
committed
Merge branch 'master' of github.com:cpiber/NebulaEnhance
2 parents 99e0a63 + f8926d4 commit c8984e7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/scripts/content/nebula/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export const nebula = async () => {
2020
document.addEventListener(`${loadPrefix}-creator`, createLinkForAll);
2121
document.body.addEventListener('mouseover', hover);
2222
document.body.addEventListener('click', click);
23-
document.querySelector('[href="https://standard.tv/"]')?.nextElementSibling?.nextElementSibling?.addEventListener?.('click', changeTheme);
2423

2524
// inject web content script
2625
await injectScript(getBrowserInstance().runtime.getURL('/scripts/player.js'), document.body);
@@ -93,6 +92,9 @@ const click = async (e: MouseEvent) => {
9392
const q = Queue.get();
9493
const target = e.target as HTMLElement;
9594

95+
if (target.closest('[href="https://standard.tv/"] + * + * > *:nth-child(2)'))
96+
return changeTheme(e);
97+
9698
const addAll = target.closest('.enhancer-queueButtonAll');
9799
if (addAll !== null) {
98100
e.preventDefault();

0 commit comments

Comments
 (0)