[Bug]: import url(); not working #2896

Open
opened 2025-01-20 15:40:42 +00:00 by Lalit64 · 4 comments
Lalit64 commented 2025-01-20 15:40:42 +00:00 (Migrated from github.com)

Preflight Checklist

  • I use the latest version of YouTube Music (Application).
  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.
  • I understand that th-ch/youtube-music has NO affiliation with Google or YouTube

YouTube Music (Application) Version

3.7.1

Checklists

What operating system are you using?

macOS

Operating System Version

macOS Sequoia 15.2

What CPU architecture are you using?

arm64 (including Apple Silicon)

Last Known Working YouTube Music (Application) version

Reproduction steps

Import a css file from options -> visual tweaks -> themes that contains importing another css file from the web, see that the theme doesnt apply

Expected Behavior

the theme should apply

Actual Behavior

the theme doesn't apply

Enabled plugins

  1. Ad Blocker
  2. Navigation

Additional Information

No response

### Preflight Checklist - [x] I use the latest version of YouTube Music (Application). - [x] I have searched the [issue tracker](https://github.com/th-ch/youtube-music/issues) for a bug report that matches the one I want to file, without success. - [x] I understand that **th-ch/youtube-music has NO affiliation with Google or YouTube** ### YouTube Music (Application) Version 3.7.1 ### Checklists - [x] I use the portable version of the YouTube Music Application. - [ ] I can reproduce this issue in the [official version of (WEB) YTM](https://music.youtube.com). ### What operating system are you using? macOS ### Operating System Version macOS Sequoia 15.2 ### What CPU architecture are you using? arm64 (including Apple Silicon) ### Last Known Working YouTube Music (Application) version - ### Reproduction steps Import a css file from options -> visual tweaks -> themes that contains importing another css file from the web, see that the theme doesnt apply ### Expected Behavior the theme should apply ### Actual Behavior the theme doesn't apply ### Enabled plugins 1. Ad Blocker 2. Navigation ### Additional Information _No response_
JellyBrick commented 2025-02-28 14:02:13 +00:00 (Migrated from github.com)

Can you still reproduce the issue?

Can you still reproduce the issue?
Lalit64 commented 2025-03-01 03:50:48 +00:00 (Migrated from github.com)

@JellyBrick Yeah it still doesn't want to load the css if it is loaded using @import url("");
Try this:

@import url("https://raw.githubusercontent.com/catppuccin/youtubemusic/refs/heads/main/src/mocha.css");
@JellyBrick Yeah it still doesn't want to load the css if it is loaded using @import url(""); Try this: ```css @import url("https://raw.githubusercontent.com/catppuccin/youtubemusic/refs/heads/main/src/mocha.css"); ```
Owner

Do you see CORS errors in the console or the network logs?

Do you see CORS errors in the console or the network logs?
Lalit64 commented 2025-03-01 16:14:51 +00:00 (Migrated from github.com)

@ArjixWasTaken Nope, but there seem to be some other stuff. I don't think this has anything to do with the issue.

[YTMusic] Plugin adblocker::preload executed at 0.40ms
VM118 preload.js:66 [YTMusic] Plugin "adblocker" loaded
music_polymer_inlined_html.js:4918 LegacyDataMixin will be applied to all legacy elements.
Set `_legacyUndefinedCheck: true` on element class to enable.
www.googletagmanager.com/gtm.js?id=GTM-NQNFS9:1 
        
        
       Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID
youtube-music.iife.js:47 [YTMusic] Plugin synced-lyrics::renderer executed at 19.40ms
youtube-music.iife.js:1793 [YTMusic] Plugin "synced-lyrics" loaded
youtube-music.iife.js:47 [YTMusic] Plugin navigation::renderer executed at 0.30ms
youtube-music.iife.js:1793 [YTMusic] Plugin "navigation" loaded
youtube-music.iife.js:47 [YTMusic] Plugin lyrics-genius::renderer executed at 0.10ms
youtube-music.iife.js:1793 [YTMusic] Plugin "lyrics-genius" loaded
youtube-music.iife.js:47 [YTMusic] Plugin adblocker::renderer executed at 0.00ms
youtube-music.iife.js:1793 [YTMusic] Plugin "adblocker" loaded
googleads.g.doubleclick.net/pagead/id:1 
        
        
       Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID
static.doubleclick.net/instream/ad_status.js:1 
        
        
       Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID
Chrome is moving towards a new experience that allows users to choose to browse without third-party cookies.
@ArjixWasTaken Nope, but there seem to be some other stuff. I don't think this has anything to do with the issue. ``` [YTMusic] Plugin adblocker::preload executed at 0.40ms VM118 preload.js:66 [YTMusic] Plugin "adblocker" loaded music_polymer_inlined_html.js:4918 LegacyDataMixin will be applied to all legacy elements. Set `_legacyUndefinedCheck: true` on element class to enable. www.googletagmanager.com/gtm.js?id=GTM-NQNFS9:1 Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID youtube-music.iife.js:47 [YTMusic] Plugin synced-lyrics::renderer executed at 19.40ms youtube-music.iife.js:1793 [YTMusic] Plugin "synced-lyrics" loaded youtube-music.iife.js:47 [YTMusic] Plugin navigation::renderer executed at 0.30ms youtube-music.iife.js:1793 [YTMusic] Plugin "navigation" loaded youtube-music.iife.js:47 [YTMusic] Plugin lyrics-genius::renderer executed at 0.10ms youtube-music.iife.js:1793 [YTMusic] Plugin "lyrics-genius" loaded youtube-music.iife.js:47 [YTMusic] Plugin adblocker::renderer executed at 0.00ms youtube-music.iife.js:1793 [YTMusic] Plugin "adblocker" loaded googleads.g.doubleclick.net/pagead/id:1 Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID static.doubleclick.net/instream/ad_status.js:1 Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID Chrome is moving towards a new experience that allows users to choose to browse without third-party cookies. ```
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: YTMD/youtube-music#2896
No description provided.