testing vencord

This commit is contained in:
Malte Jürgens 2022-10-11 19:51:09 +02:00
parent 27cdd9f9a5
commit f750b76068
No known key found for this signature in database
GPG Key ID: D29FBD5F93C0CFC3
3 changed files with 30 additions and 2 deletions

28
assets/vencord.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -2,6 +2,7 @@
<RCC>
<qresource>
<file>assets/userscript.js</file>
<file>assets/vencord.js</file>
<file>assets/de.shorsh.discord-screenaudio.png</file>
</qresource>
</RCC>

View File

@ -54,8 +54,7 @@ DiscordPage::DiscordPage(QWidget *parent) : QWebEnginePage(parent) {
setUrl(QUrl("https://discord.com/app"));
injectScriptFile("userscript.js", ":/assets/userscript.js");
injectScriptUrl("vencord.js", "https://github.com/Vendicated/Vencord/"
"releases/download/devbuild/browser.js");
injectScriptFile("vencord.js", ":/assets/vencord.js");
injectScriptText("version.js",
QString("window.discordScreenaudioVersion = '%1';")