Fix Patches

This commit is contained in:
thororen1234 2025-08-06 19:07:26 -04:00
parent cd793f862a
commit d94f9e1d44
No known key found for this signature in database
5 changed files with 5 additions and 5 deletions

View file

@ -79,7 +79,7 @@ export default definePlugin({
patches: [
{
find: "=!0,toolbar:",
find: ".controlButtonWrapper,",
replacement: {
match: /(function \i\(\i\){)(.{1,200}toolbar.{1,100}mobileToolbar)/,
replace: "$1$self.toolbarAction(arguments[0]);$2"

View file

@ -262,7 +262,7 @@ export default definePlugin({
}
},
{
find: "=!0,toolbar:",
find: ".controlButtonWrapper,",
predicate: () => settings.store.ShowLogsButton,
replacement: {
match: /(function \i\(\i\){)(.{1,200}toolbar.{1,100}mobileToolbar)/,

View file

@ -277,7 +277,7 @@ export default definePlugin({
predicate: () => !settings.store.useNavBar
},
{
find: "=!0,toolbar:",
find: ".controlButtonWrapper,",
replacement: {
match: /(function \i\(\i\){)(.{1,200}toolbar.{1,200}mobileToolbar)/,
replace: "$1$self.toolbarAction(arguments[0]);$2"

View file

@ -136,7 +136,7 @@ export default definePlugin({
settings,
patches: [
{
find: "=!0,toolbar:",
find: ".controlButtonWrapper,",
replacement: {
match: /(function \i\(\i\){)(.{1,200}toolbar.{1,450}mobileToolbar)/,
replace: "$1$self.addIconToToolBar(arguments[0]);$2"

View file

@ -26,7 +26,7 @@ export default definePlugin({
patches: [
{
predicate: () => settings.store.IconLocation === "toolbar",
find: "=!0,toolbar:",
find: ".controlButtonWrapper,",
replacement: {
match: /(function \i\(\i\){)(.{1,500}toolbar.{1,500}mobileToolbar)/,
replace: "$1$self.addSBIconToToolBar(arguments[0]);$2"