New Plugin: QuestFocused (#303)

* Create index.tsx

* Update constants.ts

* Added missing styles

* Revert "Added missing styles"

This reverts commit 6d01e8b4dbfcf2262510bab62cc1a8b0b8a4c0a9.

* Update README.md

Added plugin to plugin list on README file

* Update index.tsx

---------

Co-authored-by: thororen <78185467+thororen1234@users.noreply.github.com>
This commit is contained in:
Kofhisho 2025-07-16 06:04:32 +01:00 • committed by GitHub
parent 2bed97fa4d
commit ec3c31df25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 44 additions and 0 deletions

View file

@ -142,6 +142,7 @@ You can join our [discord server](https://discord.gg/equicord-117327988606502929
- PlatformSpoofer by Drag
- PolishWording by Samwich
- PurgeMessages by bhop & nyx
- QuestFocused by secp192k1
- QuestionMarkReplacement by nyx
- Quoter by Samwich
- RandomVoice by xijexo, omaw, thororen

View file

@ -0,0 +1,39 @@
/*
* Vencord, a Discord client mod
* Copyright (c) 2024 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import "@equicordplugins/_misc/styles.css";
import { EquicordDevs } from "@utils/constants";
import definePlugin from "@utils/types";
import { Forms } from "@webpack/common";
export default definePlugin({
name: "QuestFocused",
description: "Prevent the quests player from pausing and possibly skip it all together.",
settingsAboutComponent: () => <>
<Forms.FormText className="plugin-warning">
You might need to spam left mouse button on the video to skip it.
</Forms.FormText>
</>,
authors: [EquicordDevs.secp192k1],
patches: [
// Block pausing
{
find: "[QV] | updatePlayerState | playerState",
replacement: {
match: /(?<=case \i\.\i\.PAUSED:.{0,25})\i\.current\.pause\(\),/,
replace: ""
}
},
{
find: "[QV] | updatePlayerState | playerState:",
replacement: {
match: /(?<=case \i\.\i\.PLAYING:)\i\.current\.paused/,
replace: "false"
}
},
],
});

View file

@ -1108,6 +1108,10 @@ export const EquicordDevs = Object.freeze({
veygax: {
name: "veygax",
id: 1119938236245094521n
},
secp192k1: {
name: "secp192k1",
id: 477497542205243392n
}
} satisfies Record<string, Dev>);