Fixes: Questify, Declutter, MiddleClickTweaks, ServerInfo (#1324)
* Fix. * Fixes.
This commit is contained in:
parent
e4fd11f98a
commit
56dac8b012
4 changed files with 5 additions and 4 deletions
|
|
@ -325,12 +325,12 @@ export default definePlugin({
|
|||
predicate: () => settings.store.removeShopAboveDms,
|
||||
},
|
||||
{
|
||||
match: /\.QUEST_HOME\},"quests"\)/,
|
||||
match: /\.QUEST_HOME\)\},"quests"\)/,
|
||||
replace: "$&&&undefined",
|
||||
predicate: () => settings.store.removeQuestsAboveDms,
|
||||
},
|
||||
{
|
||||
match: /\.APPLICATION_LIBRARY\},"library"\)/,
|
||||
match: /\.APPLICATION_LIBRARY\)\},"library"\)/,
|
||||
replace: "$&&&undefined",
|
||||
predicate: () => settings.store.removeLibraryAboveDms,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ export default definePlugin({
|
|||
// Detects paste events triggered by the "browser" outside of input fields.
|
||||
find: 'document.addEventListener("paste",',
|
||||
replacement: {
|
||||
match: /(?<=\.getMigrationStatus\(\)\);.{0,50}\i\((\i)\)\{)/,
|
||||
match: /(?<=APPLICATION_DIRECTORY}\)}\(\);return \i\.useEffect\(\(\)=>{function \i\((\i)\)\{)/,
|
||||
replace: "if($1.target.tagName===\"BUTTON\"||$self.isPastingDisabled(false)){$1.preventDefault?.();$1.stopPropagation?.();return;};"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ export default definePlugin({
|
|||
},
|
||||
{
|
||||
// Hides Quests tab in the DMs tab list.
|
||||
find: ".QUEST_HOME):",
|
||||
find: '.QUEST_HOME)},"quests")',
|
||||
predicate: () => getQuestifySettings().disableQuestsEverything,
|
||||
replacement: [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ export default definePlugin({
|
|||
dependencies: ["DynamicImageModalAPI"],
|
||||
searchTerms: ["guild", "info", "ServerProfile"],
|
||||
isModified: true,
|
||||
settings,
|
||||
contextMenus: {
|
||||
"guild-context": makePatch(false),
|
||||
"guild-header-popout": makePatch(true)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue