11/**
22 * @name NitroByPass
3- * @version v1.1 Hotfix
4- * @updateURL https://raw.githubusercontent.com/SubCoderHUN/NitroByPass/main/NitroByPass.plugin.js
5- * @invite https://discord.gg/2Y6CSsPspF
3+ * @version 1.1
4+ * @invite https://discord.gg/XC9pMSJ
65 * @source https://github.com/SubCoderHUN/NitroByPass
6+ * @updateURL https://raw.githubusercontent.com/SubCoderHUN/NitroByPass/main/NitroByPass.plugin.js
77 */
8-
98 /*
109 This library was made by ZackRauen, and below, NitroByPass made by SubCoder.
1110 */
12- /*@cc_o
11+
12+ /*@cc_on
1313@if (@_jscript)
1414
1515 // Offer to self-install for clueless users that try to run this directly.
@@ -36,6 +36,7 @@ module.exports =
3636/******/ ( function ( modules ) { // webpackBootstrap
3737/******/ // The module cache
3838/******/ var installedModules = { } ;
39+
3940/******/
4041/******/ // The require function
4142/******/ function __webpack_require__ ( moduleId ) {
@@ -132,7 +133,7 @@ module.exports = {
132133 info : {
133134 name : "NitroByPass" ,
134135 authors : [ {
135- name : "SubCoder#4911 " ,
136+ name : "SubCoder" ,
136137 } ] ,
137138 } ,
138139 changelog : [
@@ -726,11 +727,17 @@ __webpack_require__.r(__webpack_exports__);
726727 get GuildSettingsWindow ( ) { return _webpackmodules__WEBPACK_IMPORTED_MODULE_1__ [ "default" ] . getByProps ( "open" , "updateGuild" ) ; } ,
727728
728729 /* Modals */
729- get ModalActions ( ) { return _webpackmodules__WEBPACK_IMPORTED_MODULE_1__ [ "default" ] . getByProps ( "openModal" , "updateModal" ) ; } ,
730+ get ModalActions ( ) {
731+ return {
732+ openModal : WebpackModules . getModule ( m => m ?. toString ( ) . includes ( "onCloseCallback" ) && m ?. toString ( ) . includes ( "Layer" ) ) ,
733+ closeModal : WebpackModules . getModule ( m => m ?. toString ( ) . includes ( "onCloseCallback()" ) )
734+ } ;
735+ } ,
730736 get ModalStack ( ) { return _webpackmodules__WEBPACK_IMPORTED_MODULE_1__ [ "default" ] . getByProps ( "push" , "update" , "pop" , "popWithKey" ) ; } ,
731737 get UserProfileModals ( ) { return _webpackmodules__WEBPACK_IMPORTED_MODULE_1__ [ "default" ] . getByProps ( "fetchMutualFriends" , "setSection" ) ; } ,
732738 get AlertModal ( ) { return _webpackmodules__WEBPACK_IMPORTED_MODULE_1__ [ "default" ] . getByPrototypes ( "handleCancel" , "handleSubmit" ) ; } ,
733- get ConfirmationModal ( ) { return _webpackmodules__WEBPACK_IMPORTED_MODULE_1__ [ "default" ] . findByDisplayName ( "ConfirmModal" ) ; } ,
739+ get ConfirmationModal ( ) { return WebpackModules . getModule ( m => m ?. toString ( ) ?. includes ( "confirmText" ) ) ; } ,
740+
734741 // Grab with react components or open with UserProfileModals
735742 // get UserProfileModal() {
736743 // return WebpackModules.find(m => {
@@ -7833,9 +7840,9 @@ __webpack_require__.r(__webpack_exports__);
78337840
78347841
78357842
7836- const AccessibilityProvider = modules__WEBPACK_IMPORTED_MODULE_1__ [ "WebpackModules" ] . getByProps ( "AccessibilityPreferencesContext" ) . AccessibilityPreferencesContext . Provider ;
7837- const LayerProvider = modules__WEBPACK_IMPORTED_MODULE_1__ [ "WebpackModules" ] . getByProps ( "AppReferencePositionLayer" ) . AppLayerProvider ( ) . props . layerContext . Provider ; // eslint-disable-line new-cap
7838-
7843+ // const AccessibilityProvider = modules__WEBPACK_IMPORTED_MODULE_1__["WebpackModules"].getByProps("AccessibilityPreferencesContext").AccessibilityPreferencesContext.Provider;
7844+ // const LayerProvider = modules__WEBPACK_IMPORTED_MODULE_1__["WebpackModules"].getByProps("AppReferencePositionLayer").AppLayerProvider().props.layerContext.Provider; // eslint-disable-line new-cap
7845+ const LayerProvider = modules__WEBPACK_IMPORTED_MODULE_1__ [ "WebpackModules" ] . getModule ( m => m ?. displayName === "AppLayerProvider" ) ?. ( ) . props . layerContext . Provider ; // eslint-disable-line new-cap
78397846/**
78407847 * Setting field to extend to create new settings
78417848 * @memberof module:Settings
@@ -8987,11 +8994,11 @@ module.exports = (() => {
89878994 "info" : {
89888995 "name" : "NitroByPass" ,
89898996 "authors" : [ {
8990- "name" : "SubCoder#4911 " ,
8997+ "name" : "SubCoder" ,
89918998 "github_username" : "SubCoderHUN"
89928999 } ] ,
8993- "version" : "1.1 Hotfix " ,
8994- "description" : "Unlock all screensharing modes, and use cross-server emotes & gif emotes. You CANNOT upload 100MB files though. :/ " ,
9000+ "version" : "1.2 " ,
9001+ "description" : "Unlock all screensharing modes, and use cross-server emotes & gif emotes. You CANNOT upload 100MB files! " ,
89959002 "github" : "https://github.com/SubCoderHUN/NitroByPass" ,
89969003 "github_raw" : "https://raw.githubusercontent.com/SubCoderHUN/NitroByPass/main/NitroByPass.plugin.js"
89979004 } ,
0 commit comments