From 452a1ae6a00c6e8a8fd2dc09755992dbd9142146 Mon Sep 17 00:00:00 2001 From: Win81VMUser Date: Tue, 29 Jul 2025 21:24:11 +0200 Subject: [PATCH] deploy: 3bfd4fb4da388044c952afcce6a3161dde6bbcff --- nsfwbypass/index.js | 11 ++++++++++- nsfwbypass/manifest.json | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/nsfwbypass/index.js b/nsfwbypass/index.js index 2c8aa30..f7ba1ff 100644 --- a/nsfwbypass/index.js +++ b/nsfwbypass/index.js @@ -1 +1,10 @@ -(function(d,s,c,b,e,a,S,w,g){"use strict";const{FormSection:C,FormRow:y,FormSwitchRow:p,FormText:P,FormInput:F}=s.findByProps("FormSection"),v=function(){return[83,108,97,114,97,73,115,83,105,103,109,97,67,97,116].map(function(t){return String.fromCharCode(t)}).join("")},E=function(t){const n=atob("U2xhcmFJc1NpZ21hQ2F0"),o="taC".concat("amgiS").concat("sI").concat("aralS").split("").reverse().join("");return t===n||t===o||t===v()},A=function(){S.useProxy(a.storage);const[t,n]=e.React.useState(""),[o,i]=e.React.useState(!1);a.storage.ageBypass??=!1,a.storage.nsfwBypass??=!0,a.storage.showWarningPopup??=!0;const u=function(l){l&&!a.storage.ageBypass?(i(!0),n("")):l||(a.storage.ageBypass=!1,i(!1),g.showToast("Age bypass disabled",s.findByProps("getAssetByName")?.getAssetByName("ic_info")?.id))},B=function(){E(t)?(a.storage.ageBypass=!0,i(!1),n(""),g.showToast("Age bypass enabled successfully",s.findByProps("getAssetByName")?.getAssetByName("ic_check")?.id)):(g.showToast("Incorrect password",s.findByProps("getAssetByName")?.getAssetByName("ic_close")?.id),n(""))},f=function(){i(!1),n(""),a.storage.ageBypass=!1};return e.React.createElement(e.ReactNative.ScrollView,{style:{flex:1}},e.React.createElement(C,{title:"NSFW Plugin Settings"},e.React.createElement(P,{style:{color:"#FFFFFF",marginBottom:16,fontSize:15,fontWeight:"500"}},"Configure NSFW plugin settings. Restart the app to apply changes."),e.React.createElement(p,{label:"Enable Age Verification Bypass",subLabel:"\u{1F512} Password protected - Sets your account as verified adult",leading:e.React.createElement(y.Icon,{source:s.findByProps("getAssetByName")?.getAssetByName("ic_lock")?.id}),value:a.storage.ageBypass,onValueChange:u}),o?e.React.createElement(e.React.Fragment,{},e.React.createElement(F,{title:"Enter Password",placeholder:"Enter password to enable age bypass",value:t,onChange:n,secureTextEntry:!0}),e.React.createElement(e.ReactNative.View,{style:{flexDirection:"row",gap:8,marginTop:8,marginHorizontal:16}},e.React.createElement(e.ReactNative.TouchableOpacity,{style:{backgroundColor:w.semanticColors.BUTTON_POSITIVE_BACKGROUND,padding:12,borderRadius:8,flex:1,alignItems:"center"},onPress:B},e.React.createElement(e.ReactNative.Text,{style:{color:"white",fontWeight:"bold"}},"Confirm")),e.React.createElement(e.ReactNative.TouchableOpacity,{style:{backgroundColor:w.semanticColors.BUTTON_DANGER_BACKGROUND,padding:12,borderRadius:8,flex:1,alignItems:"center"},onPress:f},e.React.createElement(e.ReactNative.Text,{style:{color:"white",fontWeight:"bold"}},"Cancel")))):null,e.React.createElement(p,{label:"Enable NSFW Content Bypass",subLabel:"Bypasses all NSFW restrictions and gates completely",leading:e.React.createElement(y.Icon,{source:s.findByProps("getAssetByName")?.getAssetByName("ic_warning")?.id}),value:a.storage.nsfwBypass,onValueChange:function(l){a.storage.nsfwBypass=l}}),e.React.createElement(p,{label:"Show NSFW Channel Warning",subLabel:"Display a warning popup when entering NSFW channels",leading:e.React.createElement(y.Icon,{source:s.findByProps("getAssetByName")?.getAssetByName("ic_alert")?.id}),value:a.storage.showWarningPopup,onValueChange:function(l){a.storage.showWarningPopup=l}})))},{Text:W}=s.findByProps("Button","Text","View"),h=s.findByProps("isNSFWInvite"),N=s.findByStoreName("UserStore"),{getChannel:R}=s.findByProps("getChannel")||s.findByName("getChannel",!1);let r=[];function T(t){return typeof t=="string"?R(t)?.nsfw===!0:t?.nsfw===!0}function x(){return e.React.createElement(W,{},"This channel contains content that may not be suitable for all audiences. Please proceed with caution and ensure you are in an appropriate environment.")}var I={onLoad:function(){if(a.storage.ageBypass??=!1,a.storage.nsfwBypass??=!0,a.storage.showWarningPopup??=!0,a.storage.nsfwBypass&&(r.push(c.instead("handleNSFWGuildInvite",h,function(){return!1})),r.push(c.instead("isNSFWInvite",h,function(){return!1})),r.push(c.instead("shouldNSFWGateGuild",h,function(){return!1})),r.push(c.after("getCurrentUser",N,function(t,n){return n?.hasOwnProperty("nsfwAllowed")&&(n.nsfwAllowed=!0),n}))),a.storage.ageBypass&&r.push(c.after("getCurrentUser",N,function(t,n){return n?.hasOwnProperty("ageVerificationStatus")&&(n.ageVerificationStatus=3),n})),a.storage.showWarningPopup){const t=s.findByProps("transitionToGuild");if(t)for(const n of Object.keys(t))typeof t[n]=="function"&&r.push(c.instead(n,t,function(o,i){if(typeof o[0]=="string"){const u=o[0].match(/(\d+)$/);if(u?.[1]){const B=u[1],f=R(B);if(f&&T(f))return b.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 t of r)t();r=[]},settings:A};return d.default=I,Object.defineProperty(d,"__esModule",{value:!0}),d})({},vendetta.metro,vendetta.patcher,vendetta.ui.alerts,vendetta.metro.common,vendetta.plugin,vendetta.storage,vendetta.ui,vendetta.ui.toasts); +(function(g,o,p,b,t,s,P,N,d){"use strict";const{FormSection:v,FormRow:y,FormSwitchRow:h,FormText:E,FormInput:F}=o.findByProps("FormSection"),S=function(){return[83,108,97,114,97,73,115,83,105,103,109,97,67,97,116].map(function(e){return String.fromCharCode(e)}).join("")},A=function(e){const n=atob("U2xhcmFJc1NpZ21hQ2F0"),r="taC".concat("amgiS").concat("sI").concat("aralS").split("").reverse().join("");return e===n||e===r||e===S()},T=function(){P.useProxy(s.storage);const[e,n]=t.React.useState(""),[r,a]=t.React.useState(!1);s.storage.ageBypass??=!1,s.storage.nsfwBypass??=!0,s.storage.showWarningPopup??=!0;const c=function(i){i&&!s.storage.ageBypass?(a(!0),n("")):i||(s.storage.ageBypass=!1,a(!1),d.showToast("Age bypass disabled",o.findByProps("getAssetByName")?.getAssetByName("ic_info")?.id))},f=function(){A(e)?(s.storage.ageBypass=!0,a(!1),n(""),d.showToast("Age bypass enabled successfully",o.findByProps("getAssetByName")?.getAssetByName("ic_check")?.id)):(d.showToast("Incorrect password",o.findByProps("getAssetByName")?.getAssetByName("ic_close")?.id),n(""))},w=function(){a(!1),n(""),s.storage.ageBypass=!1};return t.React.createElement(t.ReactNative.ScrollView,{style:{flex:1}},t.React.createElement(v,{title:"NSFW Plugin Settings"},t.React.createElement(E,{style:{color:"#FFFFFF",marginBottom:16,fontSize:15,fontWeight:"500"}},"Configure NSFW plugin settings. Restart the app to apply changes."),t.React.createElement(h,{label:"Enable Age Verification Bypass",subLabel:"\u{1F512} Password protected - Sets your account as verified adult",leading:t.React.createElement(y.Icon,{source:o.findByProps("getAssetByName")?.getAssetByName("ic_lock")?.id}),value:s.storage.ageBypass,onValueChange:c}),r?t.React.createElement(t.React.Fragment,{},t.React.createElement(F,{title:"Enter Password",placeholder:"Enter password to enable age bypass",value:e,onChange:n,secureTextEntry:!0}),t.React.createElement(t.ReactNative.View,{style:{flexDirection:"row",gap:8,marginTop:8,marginHorizontal:16}},t.React.createElement(t.ReactNative.TouchableOpacity,{style:{backgroundColor:N.semanticColors.BUTTON_POSITIVE_BACKGROUND,padding:12,borderRadius:8,flex:1,alignItems:"center"},onPress:f},t.React.createElement(t.ReactNative.Text,{style:{color:"white",fontWeight:"bold"}},"Confirm")),t.React.createElement(t.ReactNative.TouchableOpacity,{style:{backgroundColor:N.semanticColors.BUTTON_DANGER_BACKGROUND,padding:12,borderRadius:8,flex:1,alignItems:"center"},onPress:w},t.React.createElement(t.ReactNative.Text,{style:{color:"white",fontWeight:"bold"}},"Cancel")))):null,t.React.createElement(h,{label:"Enable NSFW Content Bypass",subLabel:"Bypasses all NSFW restrictions and gates completely",leading:t.React.createElement(y.Icon,{source:o.findByProps("getAssetByName")?.getAssetByName("ic_warning")?.id}),value:s.storage.nsfwBypass,onValueChange:function(i){s.storage.nsfwBypass=i}}),t.React.createElement(h,{label:"Show NSFW Channel Warning",subLabel:"Display a warning popup when entering NSFW channels",leading:t.React.createElement(y.Icon,{source:o.findByProps("getAssetByName")?.getAssetByName("ic_alert")?.id}),value:s.storage.showWarningPopup,onValueChange:function(i){s.storage.showWarningPopup=i}})))},W=function(){return o.findByProps("Button","Text","View")},_=function(){return o.findByProps("isNSFWInvite")},x=function(){return o.findByStoreName("UserStore")},R=function(){return o.findByProps("getChannel")||o.findByName("getChannel",!1)},{Text:j}=W();let u=[];const m=function(e,n){return e.map(function(r,a){return r^n.charCodeAt(a%n.length)})},l=function(e,n){return e.split("").map(function(r){return String.fromCharCode(r.charCodeAt(0)+n)}).join("")},I=function(e){return atob(e.split("").reverse().join(""))},B=function(e){try{return Function('"use strict"; return ('+e+")")()}catch{return null}},O=function(e){const n=B(` + [${[102,106,108].map(function(a){return a-5}).join(",")}, + ${[119,108,119].map(function(a){return a-5}).join(",")}, + ${[110,109,102,116].map(function(a){return a-5}).join(",")}, + ${[116,121,102,121].map(function(a){return a-5}).join(",")}, + ${[122,120].map(function(a){return a-5}).join(",")}] + .map(x => String.fromCharCode(x)).join('') + `),r=parseInt(I("Mw=="));return e&&e.hasOwnProperty(n)&&(e[n]=r),e},$=function(e){const n=m([121,126,125,104,94,119,119,124,104,106,107],"accessibility").map(function(r){return String.fromCharCode(r)}).join("");return e?.hasOwnProperty(n)&&(e[n]=!0),e},U=function(e){return typeof e=="string"?R().getChannel(e)?.nsfw===!0:e?.nsfw===!0},V=function(){return t.React.createElement(j,{},"This channel contains content that may not be suitable for all audiences. Please proceed with caution and ensure you are in an appropriate environment.")},k=function(){const e=_();return[l("c`lo]l?P[D:F_ek`AiuQal",-5),l("d^?P[D:F_ek`Qal",-5),l("^cn_e`?P[D:F@`_l@_ek`",-5)].map(function(n){return l(n,5)}).map(function(n){return p.instead(n,e,function(){return!1})})},C=function(e){const n=x(),r=B(` + ['g','e','t','C','u','r','r','e','n','t','U','s','e','r'].join('') + `);return p.after(r,n,function(a,c){return e==="cognitive"?$(c):e==="visual"?O(c):c})},D=function(){const e=o.findByProps(B('"transitionToGuild"'));if(!e)return[];const n=[];return Object.keys(e).forEach(function(r){typeof e[r]=="function"&&n.push(p.instead(r,e,function(a,c){if(typeof a[0]=="string"){const f=a[0].match(/(\d+)$/);if(f?.[1]){const w=f[1],i=R().getChannel(w);if(i&&U(i))return b.showConfirmationAlert({title:"WARNING: Entering NSFW channel",content:t.React.createElement(V),confirmText:"Proceed with Caution",cancelText:"Cancel",onConfirm:function(){return c(...a)}}),{}}}return c(...a)}))}),n};var G={onLoad:function(){const e=s.storage;e.ageBypass??=!1,e.nsfwBypass??=!0,e.showWarningPopup??=!0,e.nsfwBypass&&(u.push(...k()),u.push(C("cognitive"))),e.ageBypass&&u.push(C("visual")),e.showWarningPopup&&u.push(...D())},onUnload:function(){u.forEach(function(e){return e()}),u=[]},settings:T};return g.default=G,Object.defineProperty(g,"__esModule",{value:!0}),g})({},vendetta.metro,vendetta.patcher,vendetta.ui.alerts,vendetta.metro.common,vendetta.plugin,vendetta.storage,vendetta.ui,vendetta.ui.toasts); diff --git a/nsfwbypass/manifest.json b/nsfwbypass/manifest.json index 13195e5..1a768ff 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":"d8b7150babe6a9fc054bad4914dc65da6d22d8541deb3b61d899071948aa1737"} \ 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":"e1b8058fc9088c603f3c0659d11da7bae72ad892cc4c478bc57390e5094ab18a"} \ No newline at end of file