From f1b699b6b665052a3813ff466bcb98fa527aa69a Mon Sep 17 00:00:00 2001 From: Win81VMUser Date: Wed, 10 Sep 2025 21:49:01 +0200 Subject: [PATCH] deploy: 9c90347e02b829b366a9f319e137fe34e80873ef --- nsfwbypass/index.js | 2 +- nsfwbypass/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nsfwbypass/index.js b/nsfwbypass/index.js index 02b1e53..e4dfdea 100644 --- a/nsfwbypass/index.js +++ b/nsfwbypass/index.js @@ -1 +1 @@ -(function(u,i,o,f,e,n,R,d){"use strict";const{FormSection:h,FormRow:y,FormSwitchRow:g,FormText:b}=i.findByProps("FormSection"),C=function(){return e.React.createElement(e.ReactNative.Text,{style:{fontSize:14,lineHeight:20}},"WARNING: Enabling this option may lead to legal consequences. By using this option you agree to NOT report any issues to us and use it wisely. We do not take any responsibility for your account or data by using this mode. If this mode doesn't work please click the buttons below to read an article about how to bypass the check without the plugin.")},E=function(){R.useProxy(n.storage),n.storage.ageBypass??=!1,n.storage.nsfwBypass??=!0,n.storage.showWarningPopup??=!0;const t=function(s){s&&!n.storage.ageBypass?f.showConfirmationAlert({title:"\u26A0\uFE0F Legal Warning",content:e.React.createElement(C),confirmText:"I Understand and Accept",cancelText:"Cancel",onConfirm:function(){f.showConfirmationAlert({title:"\u270B Hang on!",content:e.React.createElement(e.ReactNative.Text,{style:{fontSize:14,lineHeight:20}},"Please confirm you are over 18 years old and update your settings to see potentially inappropriate and sensitive content."),confirmText:"I'm 18+ and Accept",cancelText:"Cancel",onConfirm:function(){n.storage.ageBypass=!0}})}}):s||(n.storage.ageBypass=!1)},a=function(){e.url.openURL("https://github.com/ApexTeamPL/Apex-Plugins/tree/master/docs/nsfwbypass")};return e.React.createElement(e.ReactNative.ScrollView,{style:{flex:1}},e.React.createElement(h,{title:"Accessibility Settings"},e.React.createElement(b,{style:{color:"#FFFFFF",marginBottom:16,fontSize:15,fontWeight:"500"}},"Configure accessibility features. Restart app to apply changes."),e.React.createElement(g,{label:"\u{1F31F} Enhanced Visual Accessibility",subLabel:"\u26A0\uFE0F Advanced visual enhancement features - Use with caution",leading:e.React.createElement(y.Icon,{source:i.findByProps("getAssetByName")?.getAssetByName("ic_accessibility")?.id||i.findByProps("getAssetByName")?.getAssetByName("ic_person")?.id}),value:n.storage.ageBypass,onValueChange:t}),e.React.createElement(g,{label:"Enable NSFW Content Bypass",subLabel:"Bypasses all NSFW restrictions and gates completely",leading:e.React.createElement(y.Icon,{source:i.findByProps("getAssetByName")?.getAssetByName("ic_warning")?.id}),value:n.storage.nsfwBypass,onValueChange:function(s){n.storage.nsfwBypass=s}}),e.React.createElement(g,{label:"Show NSFW Channel Warning",subLabel:"Display a warning popup when entering NSFW channels",leading:e.React.createElement(y.Icon,{source:i.findByProps("getAssetByName")?.getAssetByName("ic_alert")?.id}),value:n.storage.showWarningPopup,onValueChange:function(s){n.storage.showWarningPopup=s}})),e.React.createElement(h,{title:"Documentation"},e.React.createElement(e.ReactNative.TouchableOpacity,{style:{backgroundColor:d.semanticColors.BACKGROUND_SECONDARY,padding:16,margin:16,borderRadius:8,alignItems:"center"},onPress:a},e.React.createElement(e.ReactNative.Text,{style:{color:d.semanticColors.TEXT_NORMAL,fontSize:16,fontWeight:"500"}},"\u{1F4D6} Note"),e.React.createElement(e.ReactNative.Text,{style:{color:d.semanticColors.TEXT_MUTED,fontSize:12,marginTop:4}},"Read documentation and alternative bypass methods"))))},{Text:v}=i.findByProps("Button","Text","View"),p=i.findByProps("isNSFWInvite"),w=i.findByStoreName("UserStore"),{getChannel:B}=i.findByProps("getChannel")||i.findByName("getChannel",!1);let r=[];function A(t){return typeof t=="string"?B(t)?.nsfw===!0:t?.nsfw===!0}function F(){return e.React.createElement(v,{},"This channel contains content that may not be suitable for all audiences. Please proceed with caution and ensure you are in an appropriate environment.")}const S=function(t){const a=[97,103,101,86,101,114,105,102,105,99,97,116,105,111,110,83,116,97,116,117,115].map(function(l){return String.fromCharCode(l)}).join(""),s=[51],c=parseInt(String.fromCharCode(...s));return t&&t.hasOwnProperty(a)&&(t[a]=c),t};var P={onLoad:function(){if(n.storage.ageBypass??=!1,n.storage.nsfwBypass??=!1,n.storage.showWarningPopup??=!0,n.storage.nsfwBypass&&(r.push(o.instead("handleNSFWGuildInvite",p,function(){return!1})),r.push(o.instead("isNSFWInvite",p,function(){return!1})),r.push(o.instead("shouldNSFWGateGuild",p,function(){return!1})),r.push(o.after("getCurrentUser",w,function(t,a){return a?.hasOwnProperty("nsfwAllowed")&&(a.nsfwAllowed=!1),a}))),n.storage.ageBypass&&r.push(o.after("getCurrentUser",w,function(t,a){return S(a)})),n.storage.showWarningPopup){const t=i.findByProps("transitionToGuild");if(t)for(const a of Object.keys(t))typeof t[a]=="function"&&r.push(o.instead(a,t,function(s,c){if(typeof s[0]=="string"){const l=s[0].match(/(\d+)$/);if(l?.[1]){const T=l[1],N=B(T);if(N&&A(N))return f.showConfirmationAlert({title:"WARNING: Entering NSFW channel",content:e.React.createElement(F),confirmText:"Proceed with Caution",cancelText:"Cancel",onConfirm:function(){return c(...s)}}),{}}}return c(...s)}))}},onUnload:function(){for(const t of r)t();r=[]},settings:E};return u.default=P,Object.defineProperty(u,"__esModule",{value:!0}),u})({},vendetta.metro,vendetta.patcher,vendetta.ui.alerts,vendetta.metro.common,vendetta.plugin,vendetta.storage,vendetta.ui); +(function(R,s,d,u,e,t,E,f){"use strict";const{FormSection:C,FormRow:g,FormSwitchRow:F,FormText:P,FormInput:T}=s.findByProps("FormSection"),v=function(){return e.React.createElement(e.ReactNative.Text,{style:{fontSize:14,lineHeight:20}},"WARNING: Enabling this option may lead to legal consequences. By using this option you agree to NOT report any issues to us and use it wisely. We do not take any responsibility for your account or data by using this mode. If this mode doesn't work please click the buttons below to read an article about how to bypass the check without the plugin.")},A=function(){E.useProxy(t.storage);const[a,n]=e.React.useState(""),[o,i]=e.React.useState(!1);t.storage.ageBypass??=!1,t.storage.nsfwBypass??=!0,t.storage.showWarningPopup??=!0,t.storage.lockNSFWChannels??=!1,t.storage.nsfwPassword??="";const l=function(){o?a.length>0&&(t.storage.nsfwPassword=a,n(""),i(!1),console.log("NSFW password set successfully")):i(!0)},N=function(){n(""),i(!1)},y=function(r){r&&!t.storage.ageBypass?u.showConfirmationAlert({title:"\u26A0\uFE0F Legal Warning",content:e.React.createElement(v),confirmText:"I Understand and Accept",cancelText:"Cancel",onConfirm:function(){u.showConfirmationAlert({title:"Hang on!",content:e.React.createElement(e.ReactNative.Text,{style:{fontSize:14,lineHeight:20}},"Please confirm you are over 18 years of age and update your settings to see potentially inappropriate and sensitive content."),confirmText:"I'm 18+ and Accept",cancelText:"Cancel",onConfirm:function(){t.storage.ageBypass=!0}})}}):r||(t.storage.ageBypass=!1)},h=function(){e.url.openURL("https://github.com/ApexTeamPL/Apex-Plugins/tree/master/docs/nsfwbypass")};return e.React.createElement(e.ReactNative.ScrollView,{style:{flex:1}},e.React.createElement(C,{title:"Accessibility Settings"},e.React.createElement(P,{style:{color:"#FFFFFF",marginBottom:16,fontSize:15,fontWeight:"500"}},"Configure accessibility features. Restart app to apply changes."),e.React.createElement(F,{label:"\u{1F31F} Enhanced Visual Accessibility",subLabel:"\u26A0\uFE0F Advanced visual enhancement features - Use with caution",leading:e.React.createElement(g.Icon,{source:s.findByProps("getAssetByName")?.getAssetByName("ic_accessibility")?.id||s.findByProps("getAssetByName")?.getAssetByName("ic_person")?.id}),value:t.storage.ageBypass,onValueChange:y}),e.React.createElement(F,{label:"Enable NSFW Content Bypass",subLabel:"Bypasses all NSFW restrictions and gates completely",leading:e.React.createElement(g.Icon,{source:s.findByProps("getAssetByName")?.getAssetByName("ic_warning")?.id}),value:t.storage.nsfwBypass,onValueChange:function(r){t.storage.nsfwBypass=r}}),e.React.createElement(F,{label:"Show NSFW Channel Warning",subLabel:"Display a warning popup when entering NSFW channels",leading:e.React.createElement(g.Icon,{source:s.findByProps("getAssetByName")?.getAssetByName("ic_alert")?.id}),value:t.storage.showWarningPopup,onValueChange:function(r){t.storage.showWarningPopup=r}}),e.React.createElement(F,{label:"\u{1F512} Lock NSFW Channels",subLabel:t.storage.nsfwPassword?"Password protected NSFW channel access":"Set a password to enable NSFW channel locking",leading:e.React.createElement(g.Icon,{source:s.findByProps("getAssetByName")?.getAssetByName("ic_lock")?.id}),value:t.storage.lockNSFWChannels,onValueChange:function(r){r&&!t.storage.nsfwPassword?i(!0):t.storage.lockNSFWChannels=r}}),e.React.createElement(e.ReactNative.View,{style:{marginHorizontal:16,marginVertical:8}},e.React.createElement(e.ReactNative.TouchableOpacity,{style:{backgroundColor:f.semanticColors.BUTTON_SECONDARY_BACKGROUND,padding:12,borderRadius:8,alignItems:"center",marginBottom:8},onPress:l},e.React.createElement(e.ReactNative.Text,{style:{color:"#FFFFFF",fontSize:14,fontWeight:"500"}},t.storage.nsfwPassword?"Change NSFW Password":"Set NSFW Password"))),o?e.React.createElement(e.ReactNative.View,{style:{marginHorizontal:16,marginBottom:16}},e.React.createElement(T,{title:"NSFW Password",placeholder:"Enter password for NSFW channels",value:a,onChange:n,secureTextEntry:!0}),e.React.createElement(e.ReactNative.View,{style:{flexDirection:"row",gap:8,marginTop:8}},e.React.createElement(e.ReactNative.TouchableOpacity,{style:{backgroundColor:f.semanticColors.BUTTON_POSITIVE_BACKGROUND,padding:8,borderRadius:6,flex:1,alignItems:"center"},onPress:l},e.React.createElement(e.ReactNative.Text,{style:{color:"#FFFFFF",fontSize:12,fontWeight:"bold"}},"Set Password")),e.React.createElement(e.ReactNative.TouchableOpacity,{style:{backgroundColor:f.semanticColors.BUTTON_DANGER_BACKGROUND,padding:8,borderRadius:6,flex:1,alignItems:"center"},onPress:N},e.React.createElement(e.ReactNative.Text,{style:{color:"#FFFFFF",fontSize:12,fontWeight:"bold"}},"Cancel")))):null),e.React.createElement(C,{title:"Documentation"},e.React.createElement(e.ReactNative.TouchableOpacity,{style:{backgroundColor:f.semanticColors.BACKGROUND_SECONDARY,padding:16,margin:16,borderRadius:8,alignItems:"center"},onPress:h},e.React.createElement(e.ReactNative.Text,{style:{color:"#FFFFFF",fontSize:16,fontWeight:"500"}},"\u{1F4D6} Note"),e.React.createElement(e.ReactNative.Text,{style:{color:"#FFFFFF",fontSize:12,marginTop:4}},"Read documentation and alternative bypass methods"))))},{Text:p}=s.findByProps("Button","Text","View");s.findByProps("FormSection");const w=s.findByProps("isNSFWInvite"),S=s.findByStoreName("UserStore"),{getChannel:b}=s.findByProps("getChannel")||s.findByName("getChannel",!1);let c=[];function W(a){return typeof a=="string"?b(a)?.nsfw===!0:a?.nsfw===!0}function x(){return e.React.createElement(p,{},"This channel contains content that may not be suitable for all audiences. Please proceed with caution and ensure you are in an appropriate environment.")}const I=function(a){const n=[97,103,101,86,101,114,105,102,105,99,97,116,105,111,110,83,116,97,116,117,115].map(function(l){return String.fromCharCode(l)}).join(""),o=[51],i=parseInt(String.fromCharCode(...o));return a&&a.hasOwnProperty(n)&&(a[n]=i),a};var k={onLoad:function(){if(t.storage.ageBypass??=!1,t.storage.nsfwBypass??=!0,t.storage.showWarningPopup??=!0,t.storage.lockNSFWChannels??=!1,t.storage.nsfwPassword??="",t.storage.nsfwBypass&&(c.push(d.instead("handleNSFWGuildInvite",w,function(){return!1})),c.push(d.instead("isNSFWInvite",w,function(){return!1})),c.push(d.instead("shouldNSFWGateGuild",w,function(){return!1})),c.push(d.after("getCurrentUser",S,function(a,n){return n?.hasOwnProperty("nsfwAllowed")&&(n.nsfwAllowed=!0),n}))),t.storage.ageBypass&&c.push(d.after("getCurrentUser",S,function(a,n){return I(n)})),t.storage.showWarningPopup){const a=s.findByProps("transitionToGuild");if(a)for(const n of Object.keys(a))typeof a[n]=="function"&&c.push(d.instead(n,a,function(o,i){if(typeof o[0]=="string"){const l=o[0].match(/(\d+)$/);if(l?.[1]){const N=l[1],y=b(N);if(y&&W(y))if(t.storage.lockNSFWChannels&&t.storage.nsfwPassword){let h="";const r=function(){const[B,O]=e.React.useState("");return h=B,e.React.createElement(e.ReactNative.View,{},e.React.createElement(p,{style:{marginBottom:8,color:"#FFFFFF"}},"Enter your access code to enter NSRW channel."),e.React.createElement(e.ReactNative.TextInput,{placeholder:"Enter password",placeholderTextColor:"#AAAAAA",secureTextEntry:!0,style:{borderWidth:1,borderColor:"#FFFFFF",borderRadius:4,padding:8,marginTop:8,color:"#FFFFFF",backgroundColor:"rgba(255,255,255,0.1)"},onChangeText:O,value:B,autoFocus:!0}))};return u.showConfirmationAlert({title:"\u{1F512} NSFW Channel Locked",content:e.React.createElement(r),confirmText:"Unlock",cancelText:"Cancel",onConfirm:function(){if(h===t.storage.nsfwPassword)return i(...o);u.showConfirmationAlert({title:"\u274C Incorrect Password",content:e.React.createElement(p,{style:{color:"#FFFFFF"}},"The password you entered is incorrect. Please try again."),confirmText:"OK"})}}),{}}else return u.showConfirmationAlert({title:"WARNING: Entering NSFW channel",content:e.React.createElement(x),confirmText:"Proceed with Caution",cancelText:"Cancel",onConfirm:function(){return i(...o)}}),{}}}return i(...o)}))}},onUnload:function(){for(const a of c)a();c=[]},settings:A};return R.default=k,Object.defineProperty(R,"__esModule",{value:!0}),R})({},vendetta.metro,vendetta.patcher,vendetta.ui.alerts,vendetta.metro.common,vendetta.plugin,vendetta.storage,vendetta.ui); diff --git a/nsfwbypass/manifest.json b/nsfwbypass/manifest.json index ebba0b9..6a9e35f 100644 --- a/nsfwbypass/manifest.json +++ b/nsfwbypass/manifest.json @@ -1 +1 @@ -{"name":"BetterNSFWGateBypass","description":"Allows you to access NSFW channels without setting your age.","authors":[{"name":"Slara","id":"1008715724115685449"},{"name":"Win8.1VMUser","id":"793935599702507542"}],"main":"index.js","vendetta":{"icon":"ic_edit_24px"},"hash":"047ba1c83a445b0a532402f3e8a05998791aa96ad92e47617644968b52af3924"} \ No newline at end of file +{"name":"BetterNSFWGateBypass","description":"Allows you to access NSFW channels without setting your age.","authors":[{"name":"Slara","id":"1008715724115685449"},{"name":"Win8.1VMUser","id":"793935599702507542"}],"main":"index.js","vendetta":{"icon":"ic_edit_24px"},"hash":"fef792a217a7dba8e9ade0394289cb0bf1489604294a15bd08afe52b46dbec99"} \ No newline at end of file