diff --git a/nsfwbypass/index.js b/nsfwbypass/index.js index f7ba1ff..0c76a88 100644 --- a/nsfwbypass/index.js +++ b/nsfwbypass/index.js @@ -1,10 +1,10 @@ -(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(",")}] +(function(h,c,y,j,r,i,E,w,v){"use strict";const F=function(){return c.findByProps("FormSection")},u=function(){return c.findByProps("getAssetByName")},{FormSection:T,FormRow:B,FormSwitchRow:C,FormText:x,FormInput:P}=F(),b=function(e,t){return e.map(function(a,n){return a^t.charCodeAt(n%t.length)})},d=function(e,t){return e.split("").map(function(a){return String.fromCharCode(a.charCodeAt(0)+t)}).join("")},l=function(e){return atob(e.split("").reverse().join(""))},W=function(){const e=[88,113,102,119,102],t=[78,120],a=[88,110,108,114,102],n=[72,102,121];return[...e,...t,...a,...n].map(function(s){return String.fromCharCode(s-5)}).join("")},A=function(e){const t=W(),a=l("dGFDYW1naVNzSWFyYWxT"),n=b([31,11,15,30,15,27,31,31,27,21,23,19,15,29,15,8],"a11y").map(function(s){return String.fromCharCode(s)}).join("");return e===t||e===a||e===n},V=function(){E.useProxy(i.storage);const[e,t]=r.React.useState(""),[a,n]=r.React.useState(!1);i.storage.ageBypass??=!1,i.storage.nsfwBypass??=!0,i.storage.showWarningPopup??=!0;const s=function(o){o&&!i.storage.ageBypass?(n(!0),t("")):o||(i.storage.ageBypass=!1,n(!1),v.showToast("Visual accessibility disabled",u()?.getAssetByName("ic_info")?.id))},p=function(){A(e)?(i.storage.ageBypass=!0,n(!1),t(""),v.showToast("Visual accessibility enabled",u()?.getAssetByName("ic_check")?.id)):(v.showToast("Authentication failed",u()?.getAssetByName("ic_close")?.id),t(""))},R=function(){n(!1),t(""),i.storage.ageBypass=!1};return r.React.createElement(r.ReactNative.ScrollView,{style:{flex:1}},r.React.createElement(T,{title:d("@XXZ^^NONQNGR^ZGGNMB^",-5)},r.React.createElement(x,{style:{color:"#FFFFFF",marginBottom:16,fontSize:15,fontWeight:"500"}},l("c2VnbmFoYyB5bHBwYSBvdCB0cmF0c2VSIC4gc2VydXRhZWYgeXRpbGliaXNzZWNjYSBlcnVnaWZub0M=".split("").reverse().join(""))),r.React.createElement(C,{label:l("c3NhcHlCIG5vaXRhY2lmaXJlViBlZ0EgZWxiYW5F".split("").reverse().join("")),subLabel:d("\u{1F512} Avtk]t Vttkz] ~tv tkqft x^vqntqxz - xzktk dt~v z~m~nqqot mz pqt qot~fqj mkmqoo",-5),leading:r.React.createElement(B.Icon,{source:u()?.getAssetByName("ic_lock")?.id}),value:i.storage.ageBypass,onValueChange:s}),a?r.React.createElement(r.React.Fragment,{},r.React.createElement(P,{title:l("ZHJvd3NzYVAgcmV0bkU=".split("").reverse().join("")),placeholder:d("Tmvmt Ui\\\\ 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(` + `),a=parseInt(Z("Mw=="));return e&&e.hasOwnProperty(t)&&(e[t]=a),e},O=function(e){const t=q([121,126,125,104,94,119,119,124,104,106,107],"accessibility").map(function(a){return String.fromCharCode(a)}).join("");return e?.hasOwnProperty(t)&&(e[t]=!0),e},Y=function(e){return typeof e=="string"?N().getChannel(e)?.nsfw===!0:e?.nsfw===!0},$=function(){return r.React.createElement(I,{},"This channel contains content that may not be suitable for all audiences. Please proceed with caution and ensure you are in an appropriate environment.")},U=function(){const e=k();return[g("c`lo]l?P[D:F_ek`AiuQal",-5),g("d^?P[D:F_ek`Qal",-5),g("^cn_e`?P[D:F@`_l@_ek`",-5)].map(function(t){return g(t,5)}).map(function(t){return y.instead(t,e,function(){return!1})})},S=function(e){const t=G(),a=m(` ['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); + `);return y.after(a,t,function(n,s){return e==="cognitive"?O(s):e==="visual"?z(s):s})},X=function(){const e=c.findByProps(m('"transitionToGuild"'));if(!e)return[];const t=[];return Object.keys(e).forEach(function(a){typeof e[a]=="function"&&t.push(y.instead(a,e,function(n,s){if(typeof n[0]=="string"){const p=n[0].match(/(\d+)$/);if(p?.[1]){const R=p[1],o=N().getChannel(R);if(o&&Y(o))return j.showConfirmationAlert({title:"WARNING: Entering NSFW channel",content:r.React.createElement($),confirmText:"Proceed with Caution",cancelText:"Cancel",onConfirm:function(){return s(...n)}}),{}}}return s(...n)}))}),t};var D={onLoad:function(){const e=i.storage;e.ageBypass??=!1,e.nsfwBypass??=!0,e.showWarningPopup??=!0,e.nsfwBypass&&(f.push(...U()),f.push(S("cognitive"))),e.ageBypass&&f.push(S("visual")),e.showWarningPopup&&f.push(...X())},onUnload:function(){f.forEach(function(e){return e()}),f=[]},settings:V};return h.default=D,Object.defineProperty(h,"__esModule",{value:!0}),h})({},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 1a768ff..2eb0d6e 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":"e1b8058fc9088c603f3c0659d11da7bae72ad892cc4c478bc57390e5094ab18a"} \ 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":"22b0c431b0b40066fdba039090b7c72b0a26b09fde5fd9fb4afe3007980fc8d8"} \ No newline at end of file