youtube icon indicating copy to clipboard operation
youtube copied to clipboard

🐞Default channel tab not being applied to home page

Open ghost opened this issue 4 months ago • 5 comments

Concise Description

Default channel tab not being applied to home page on Firefox

Browser/s

Firefox

Other Browser:

No response

'Steps to reproduce' - Which of our features is required for the bug to happen?

Set Default channel tab to videos

Since when?

Maybe around a week or 2 since i noticed it

Does the bug still happen when you log out of YouTube?

No

..No? Then please paste your yt.config_.EXPERIMENT_FLAGS. Twice (With the error & Without)

Can't fit here, longer than 65536. https://pastebin.com/dmfK3q5P

Are any errors or related log-messages shown in the Browser-Console? (F12)

No

Tested as the only active extension? (incognito mode or another browser users):

None

Expected preferred behavior:

No response

ImprovedTube Version

4.1323

Your Settings (From the Extension's -Hamburger menu > Settings > Backup & reset > Export settings)

No response

Your YouTube-Document

No response

OS / Device:

win 10 22h2

ghost avatar Aug 06 '25 08:08 ghost

Hi! 👋 I’d love to work on this issue. Could you assign this to me? Thank you! 😊

DasoTD avatar Aug 06 '25 10:08 DasoTD

Image

It's working for me in Firefox

LetonGerman avatar Aug 07 '25 15:08 LetonGerman

Checked it on the main page, doesn't work for either now.

Okay so apparently the ImprovedTube.childHandler function just skips processing span elements, so when the link to the channel is inside of a span, it is ignored

LetonGerman avatar Aug 08 '25 09:08 LetonGerman

What I did is i changed the childHandler method

https://github.com/code-charity/youtube/blob/5dbb0b7c1fda9207299926c009908d1de9041ecb/js%26css/web-accessible/functions.js#L4-L17

to handle cases when the span contains a link

if (node.nodeName === 'SCRIPT' || node.nodeName === 'iron-iconset-svg' || node.nodeName === 'svg' || (node.nodeName === 'SPAN' && !node.querySelector("a")) || node.nodeName === '#text' || node.nodeName === '#comment' || node.nodeName === 'yt-icon-shape' || node.nodeName === 'DOM-IF' || node.nodeName === 'DOM-REPEAT') {
		return
	}

Seems to fix the issue for me on the main page

LetonGerman avatar Aug 08 '25 09:08 LetonGerman

thank you @LetonGerman @RIOplbLcDUxAUYIrJ

node.nodeName === 'DOM-IF' || node.nodeName === 'DOM-REPEAT'

since we are here, iirc this line may be subject to more change.., when our playlist features arent applied

ImprovedTube avatar Nov 14 '25 21:11 ImprovedTube