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> <RCC>
<qresource> <qresource>
<file>assets/userscript.js</file> <file>assets/userscript.js</file>
<file>assets/vencord.js</file>
<file>assets/de.shorsh.discord-screenaudio.png</file> <file>assets/de.shorsh.discord-screenaudio.png</file>
</qresource> </qresource>
</RCC> </RCC>

View File

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