leovoel / BeautifulDiscord

Adds custom CSS support to Discord.
MIT License
700 stars 72 forks source link

Discord 0.0.306 completely broke BeautifulDiscord #82

Closed Dormanil closed 4 years ago

Dormanil commented 4 years ago
init.ts:176 Unable to load preload script: C:\Users\Kazumi\AppData\Roaming\discord\0.0.306\modules\discord_desktop_core\core.asar\app\mainScreenPreload.js
(anonymous) @ init.ts:176
init.ts:177 TypeError: webFrame.registerURLSchemeAsBypassingCSP is not a function
    at Object.<anonymous> (C:\Users\Kazumi\AppData\Roaming\discord\0.0.306\modules\discord_desktop_core\core.asar\app\discord_native\window.js:131)
    at Object.<anonymous> (C:\Users\Kazumi\AppData\Roaming\discord\0.0.306\modules\discord_desktop_core\core.asar\app\discord_native\window.js:132)
    at Module._compile (internal/modules/cjs/loader.js:880)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:892)
    at Module.load (internal/modules/cjs/loader.js:735)
    at Module._load (internal/modules/cjs/loader.js:648)
    at Module._load (electron/js2c/asar.js:717)
    at Function.Module._load (electron/js2c/asar.js:717)
    at Module.require (internal/modules/cjs/loader.js:775)
    at require (internal/modules/cjs/helpers.js:68)
(anonymous) @ init.ts:177
8e225751b5d02f707bd5.js:16 [BUILD INFO] Release Channel: stable, Build Number: 55236, Version Hash: 52bd1b87a49db89e1da0ed64c6e0b46bfb8d02b5
8e225751b5d02f707bd5.js:16 unsupported locale en-GB
(anonymous) @ 8e225751b5d02f707bd5.js:16
8e225751b5d02f707bd5.js:16 unsupported locale en
(anonymous) @ 8e225751b5d02f707bd5.js:16
VM107:12 Refused to load the stylesheet 'https://clearvision.gitlab.io/v6/main.css' because it violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline' https://cdn.discordapp.com". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback.

window.applyCSS @ VM107:12
VM107:12 Refused to load the stylesheet 'https://fonts.googleapis.com/css?family=Titillium+Web' because it violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline' https://cdn.discordapp.com". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback.

window.applyCSS @ VM107:12
app?_=1582833462585:1 Refused to load the stylesheet 'https://clearvision.gitlab.io/v6/main.css' because it violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline' https://cdn.discordapp.com". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback.

app?_=1582833462585:1 Refused to load the stylesheet 'https://fonts.googleapis.com/css?family=Titillium+Web' because it violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline' https://cdn.discordapp.com". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback.

image It doesn't even display any text any more.

viocar commented 4 years ago

Yep, I can't connect with similar errors. Even reverting the core.asar doesn't fix the problem. I've had to reinstall the whole program.

Sentinent commented 4 years ago

Try updating your BD, that method to bypass https was changed in https://github.com/leovoel/BeautifulDiscord/commit/1848f2a244a75c13549af61393b278322e8d47ea.