From 89f70122c6f87f05ef2a3738773cf502b2482bd5 Mon Sep 17 00:00:00 2001 From: yofukashino Date: Sat, 14 Sep 2024 18:32:56 +0530 Subject: [PATCH] fixes and logs --- .editorconfig | 14 +-- .gitignore | 212 ++++++++++++++++---------------- .prettierrc.json | 28 ++--- .vscode/extensions.json | 14 +-- LICENSE.MD | 48 ++++---- README.md | 10 +- manifest.json | 6 +- src/index.ts | 2 +- src/injections/AudioResolver.ts | 42 +++---- src/lib/requiredModules.ts | 9 +- 10 files changed, 194 insertions(+), 191 deletions(-) diff --git a/.editorconfig b/.editorconfig index 16f3fce..9410277 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,7 +1,7 @@ -root = true - -[*] -end_of_line = lf -indent_style = space -indent_size = 2 -insert_final_newline = true +root = true + +[*] +end_of_line = lf +indent_style = space +indent_size = 2 +insert_final_newline = true diff --git a/.gitignore b/.gitignore index e6b27c2..ed8c499 100644 --- a/.gitignore +++ b/.gitignore @@ -1,106 +1,106 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* - -# Diagnostic reports (https://nodejs.org/api/report.html) -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage -*.lcov - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# TypeScript v1 declaration files -typings/ - -# TypeScript cache -*.tsbuildinfo - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Microbundle cache -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env -.env.test - -# parcel-bundler cache (https://parceljs.org/) -.cache - -# Next.js build output -.next - -# Nuxt.js build / generate output -.nuxt -dist - -# Gatsby files -.cache/ -# Comment in the public line in if your project uses Gatsby and *not* Next.js -# https://nextjs.org/blog/next-9-1#public-directory-support -# public - -# vuepress build output -.vuepress/dist - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -# DynamoDB Local files -.dynamodb/ - -# TernJS port file -.tern-port - -/bundle +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env +.env.test + +# parcel-bundler cache (https://parceljs.org/) +.cache + +# Next.js build output +.next + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and *not* Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +/bundle diff --git a/.prettierrc.json b/.prettierrc.json index 469066e..1647d71 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1,14 +1,14 @@ -{ - "printWidth": 100, - "tabWidth": 2, - "useTabs": false, - "semi": true, - "singleQuote": false, - "quoteProps": "as-needed", - "jsxSingleQuote": false, - "trailingComma": "all", - "bracketSpacing": true, - "bracketSameLine": true, - "arrowParens": "always", - "proseWrap": "always" -} +{ + "printWidth": 100, + "tabWidth": 2, + "useTabs": false, + "semi": true, + "singleQuote": false, + "quoteProps": "as-needed", + "jsxSingleQuote": false, + "trailingComma": "all", + "bracketSpacing": true, + "bracketSameLine": true, + "arrowParens": "always", + "proseWrap": "always" +} diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 23d8e87..5032e51 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,7 +1,7 @@ -{ - "recommendations": [ - "dbaeumer.vscode-eslint", - "EditorConfig.EditorConfig", - "esbenp.prettier-vscode" - ] -} +{ + "recommendations": [ + "dbaeumer.vscode-eslint", + "EditorConfig.EditorConfig", + "esbenp.prettier-vscode" + ] +} diff --git a/LICENSE.MD b/LICENSE.MD index fdddb29..f50ef62 100644 --- a/LICENSE.MD +++ b/LICENSE.MD @@ -1,24 +1,24 @@ -This is free and unencumbered software released into the public domain. - -Anyone is free to copy, modify, publish, use, compile, sell, or -distribute this software, either in source code form or as a compiled -binary, for any purpose, commercial or non-commercial, and by any -means. - -In jurisdictions that recognize copyright laws, the author or authors -of this software dedicate any and all copyright interest in the -software to the public domain. We make this dedication for the benefit -of the public at large and to the detriment of our heirs and -successors. We intend this dedication to be an overt act of -relinquishment in perpetuity of all present and future rights to this -software under copyright law. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR -OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. - -For more information, please refer to +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to diff --git a/README.md b/README.md index ca28837..4a1d25f 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,11 @@ Show that you are deafened to others, while in reality you can still hear them. It's also possible to fake mute and fake video. Direct Download Link: -[![dev.tharki.ShowHiddenChannels.asar](https://img.shields.io/github/downloads/YofukashiNo/FakeDeafen/total.svg?style=social&label=Direct%20Download)](https://github.com/YofukashiNo/FakeDeafen/releases/latest/download/dev.tharki.FakeDeafen.asar) +[![dev.tharki.ShowHiddenChannels.asar](https://img.shields.io/github/downloads/yofukashino/FakeDeafen/total.svg?style=social&label=Direct%20Download)](https://github.com/yofukashino/FakeDeafen/releases/latest/download/dev.tharki.FakeDeafen.asar) Install Link: -[![Safe](https://img.shields.io/github/downloads/YofukashiNo/FakeDeafen/total.svg?style=social&label=Install%20in%20Replugged&logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMjQ1NzkgMjQ1NzkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnNYbGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeG1sU3BhY2U9InByZXNlcnZlIiB4bWxuczpzZXJpZj0iaHR0cDovL3d3dy5zZXJpZi5jb20vIiBjbGFzcz0iX3BsdWdfM2J3NmNfMjIiIHN0eWxlPSJmaWxsLXJ1bGU6IGV2ZW5vZGQ7IGNsaXAtcnVsZTogZXZlbm9kZDsgc3Ryb2tlLWxpbmVqb2luOiByb3VuZDsiPjxnPjxjbGlwUGF0aCBpZD0iX2NsaXAxIj48cGF0aCBkPSJNMjIyMjAuMywyMjQ3NC44YzM5LjI1LDQ0LjU3MSA3MS40NjcsOTQuODcxIDk1LjU0MiwxNDkuMTYzYzE2NC4wOTYsMzY4LjQyNSAxNjIuNDI5LDc5Ni42MDggLTE3Ljk0MiwxMTcwLjFjLTQzLjE0MSw4OS4zMzMgLTk1LjA4NywxNzIuNiAtMTU0LjUwOCwyNDguOTcxYy0yODEuNzMzLDM2My41NjcgLTc2OS43NjcsNDk3LjI5NiAtMTE5Ny40OCwzMjguMTI5Yy0xNzc3LjgyLC02NzguMzc1IC00MTIxLjMyLC0xMjgyLjAzIC01NjcwLjA0LC0yMTQ1Ljg1Yy0zMDExLjE4LC0xNjc5LjU0IC01MDg0LjY3LC0zMjgzLjI4IC0zNjQ2LjE3LC03NzMxLjI5YzI2LjEzNywtODAuODgzIDk4LjgxNiwtMTM3Ljc1NCAxODMuNjA4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MTQ5My40NSAtMTU2OS41NSwzODkwLjMgLTE3My44MjEsNTQ3NS40NmM4NzguMyw5OTcuNTE3IDE1NzkuNjUsMTc5NC4wNSAxNzY3LjM2LDIwMDcuMjVsLTAuMDA0LDAuMDQxWiI+PC9wYXRoPjwvY2xpcFBhdGg+PGcgY2xpcC1wYXRoPSJ1cmwoI19jbGlwMSkiPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIyNDU3OSIgaGVpZ2h0PSIyNDU3OSIgc3R5bGU9ImZpbGw6IHVybCgmcXVvdDsjX0xpbmVhcjImcXVvdDspOyI+PC9yZWN0PjwvZz48L2c+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJfTGluZWFyMiIgeDE9IjAiIHkxPSIwIiB4Mj0iMSIgeTI9IjAiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiBncmFkaWVudFRyYW5zZm9ybT0ibWF0cml4KDI0NTc5LC0yNDU3OSwyNDU3OSwyNDU3OSwwLDI0NTc5KSI+PHN0b3Agb2Zmc2V0PSIwIiBzdHlsZT0ic3RvcC1jb2xvcjogcmdiKDI1NSwgMzIsIDYyKTsgc3RvcC1vcGFjaXR5OiAxOyI+PC9zdG9wPjxzdG9wIG9mZnNldD0iMSIgc3R5bGU9InN0b3AtY29sb3I6IHJnYig4MCwgNiwgMjU1KTsgc3RvcC1vcGFjaXR5OiAxOyI+PC9zdG9wPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjwvc3ZnPg==)](https://replugged.dev/install?identifier=YofukashiNo/FakeDeafen&source=github) +[![Safe](https://img.shields.io/github/downloads/yofukashino/FakeDeafen/total.svg?style=social&label=Install%20in%20Replugged&logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMjQ1NzkgMjQ1NzkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnNYbG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VhcjImcXVvdDspOyI+PC9yZWN0PjwvZz48L2c+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJfTGluZWFyMiIgeDE9IjAiIHkxPSIwIiB4Mj0iMSIgeTI9IjAiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiBncmFkaWVudFRyYW5zZm9ybT0ibWF0cml4KDI0NTc5LC0yNDU3OSwyNDU3OSwyNDU3OSwwLDI0NTc5KSI+PHN0b3Agb2Zmc2V0PSIwIiBzdHlsZT0ic3RvcC1jb2xvcjogcmdiKDI1NSwgMzIsIDYyKTsgc3RvcC1vcGFjaXR5OiAxOyI+PC9zdG9wPjxzdG9wIG9mZnNldD0iMSIgc3R5bGU9InN0b3AtY29sb3I6IHJnYig4MCwgNiwgMjU1KTsgc3RvcC1vcGFjaXR5OiAxOyI+PC9zdG9wPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjwvc3ZnPg==)](https://replugged.dev/install?identifier=yofukashino/FakeDeafen&source=github) ![fd](https://i.imgur.com/pDJorfP.gif) @@ -37,17 +37,17 @@ Install Link: - Just make a pull request ### How Do I support without pull request? -- You Can Donate on my [ko-fi](https://ko-fi.com/yofukashino) or UPI at `yofukashi.no.singh@fam` +- You Can Donate on my [ko-fi](https://ko-fi.com/yofukashino) or UPI at `yofukashinooo@oksbi` [![Buy Me a Coffee at ko-fi.com](https://storage.ko-fi.com/cdn/kofi3.png?v=3)](https://ko-fi.com/yofukashino) ### Where can I find other plugins by you? -You can find them [here](https://github.com/YofukashiNo/RepluggedPlugins) +You can find them [here](https://github.com/yofukashino/RepluggedPlugins) ### This plugin isn't listed in the all plugin list? -PRs are appreciated or just make an issue on the [repo](https://github.com/YofukashiNo/RepluggedPlugins) +PRs are appreciated or just make an issue on the [repo](https://github.com/yofukashino/RepluggedPlugins) ### Where can I find the support? diff --git a/manifest.json b/manifest.json index 40a57e0..2e96b5b 100644 --- a/manifest.json +++ b/manifest.json @@ -3,16 +3,16 @@ "name": "FakeDeafen", "description": "Fake your audio status, to make it look like you are muted or deafened from other's perspective when you're not.", "image": "https://i.imgur.com/pDJorfP.gif", - "source": "https://github.com/YofukashiNo/FakeDeafen", + "source": "https://github.com/yofukashino/FakeDeafen", "author": { "name": "Nanakusa", "discordID": "1121961711080050780", - "github": "YofukashiNo" + "github": "yofukashino" }, "version": "1.1.8", "updater": { "type": "github", - "id": "YofukashiNo/FakeDeafen" + "id": "yofukashino/FakeDeafen" }, "license": "MIT", "type": "replugged-plugin", diff --git a/src/index.ts b/src/index.ts index a181fb5..df8fee9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,7 +12,7 @@ import Listeners from "./listeners/index"; export const start = (): void => { Settings.registerSettings(); - void Injections.applyInjections(); + void Injections.applyInjections().catch((err) => PluginLogger.error(err)); void Listeners.addListeners(); }; diff --git a/src/injections/AudioResolver.ts b/src/injections/AudioResolver.ts index 530ab39..e0df148 100644 --- a/src/injections/AudioResolver.ts +++ b/src/injections/AudioResolver.ts @@ -1,21 +1,21 @@ -import { PluginInjector } from "../index"; -import Modules from "../lib/requiredModules"; -import { Sounds } from "../lib/consts"; - -export default async (): Promise => { - const AudioResolver = await Modules.AudioResolverPromise; - PluginInjector.instead(AudioResolver, "exports", ([sound]: [string], res) => { - switch (sound) { - case `./${Sounds.Enable}.mp3`: { - return Sounds.EnableURL; - } - case `./${Sounds.Disable}.mp3`: { - return Sounds.DisableURL; - } - default: - if (AudioResolver.exports.keys().includes(sound)) { - return res(sound); - } - } - }); -}; +import { PluginInjector } from "../index"; +import Modules from "../lib/requiredModules"; +import { Sounds } from "../lib/consts"; + +export default async (): Promise => { + const AudioResolver = await Modules.AudioResolverPromise; + PluginInjector.instead(AudioResolver, "exports", ([sound]: [string], res) => { + switch (sound) { + case `./${Sounds.Enable}.mp3`: { + return Sounds.EnableURL; + } + case `./${Sounds.Disable}.mp3`: { + return Sounds.DisableURL; + } + default: + if (AudioResolver.exports.keys().includes(sound)) { + return res(sound); + } + } + }); +}; diff --git a/src/lib/requiredModules.ts b/src/lib/requiredModules.ts index 972910b..331339f 100644 --- a/src/lib/requiredModules.ts +++ b/src/lib/requiredModules.ts @@ -40,9 +40,12 @@ Modules.loadModules = async (): Promise => { }); Modules.CenterControlTray ??= await webpack - .waitForModule(webpack.filters.bySource('.BROADCAST="BROADCAST"'), { - timeout: 10000, - }) + .waitForModule( + webpack.filters.bySource(".VOICE_CONTROL_TRAY,children"), + { + timeout: 10000, + }, + ) .catch(() => { throw new Error("Failed To Find CenterControlTray Module"); });