Rearrange assets a bit, fix anything that uses assets folder
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 312 KiB |
@@ -0,0 +1,47 @@
|
||||
const localStorage = window.localStorage;
|
||||
// TODO: remote auth
|
||||
// window.GLOBAL_ENV.REMOTE_AUTH_ENDPOINT = window.GLOBAL_ENV.GATEWAY_ENDPOINT.replace(/wss?:/, "");
|
||||
localStorage.setItem("gatewayURL", window.GLOBAL_ENV.GATEWAY_ENDPOINT);
|
||||
localStorage.setItem(
|
||||
"DeveloperOptionsStore",
|
||||
`{"trace":false,"canary":false,"logGatewayEvents":true,"logOverlayEvents":true,"logAnalyticsEvents":true,"sourceMapsEnabled":false,"axeEnabled":false}`
|
||||
);
|
||||
|
||||
const supportedLocales = [
|
||||
"bg",
|
||||
"cs",
|
||||
"da",
|
||||
"de",
|
||||
"el",
|
||||
"en-GB",
|
||||
"es-ES",
|
||||
"fi",
|
||||
"fr",
|
||||
"hi",
|
||||
"hr",
|
||||
"hu",
|
||||
"it",
|
||||
"ja",
|
||||
"ko",
|
||||
"lt",
|
||||
"nl",
|
||||
"no",
|
||||
"pl",
|
||||
"pt-BR",
|
||||
"ro",
|
||||
"ru",
|
||||
"sv-SE",
|
||||
"th",
|
||||
"tr",
|
||||
"uk",
|
||||
"vi",
|
||||
"zh-CN",
|
||||
"zh-TW"
|
||||
];
|
||||
|
||||
const settings = JSON.parse(localStorage.getItem("UserSettingsStore"));
|
||||
if (settings && !supportedLocales.includes(settings.locale)) {
|
||||
// fix client locale wrong and client not loading at all
|
||||
settings.locale = "en-US";
|
||||
localStorage.setItem("UserSettingsStore", JSON.stringify(settings));
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
{
|
||||
"USER_CHANNELS": "/users/@me/channels",
|
||||
"USER_ACTIVITY_STATISTICS": "/users/@me/activities/statistics/applications",
|
||||
"ACTIVITIES": "/activities",
|
||||
"LOBBIES": "/lobbies",
|
||||
"LOBBY_SEARCH": "/lobbies/search",
|
||||
"NETWORKING_TOKEN": "/networking/token",
|
||||
"USER_GAMES_NOTIFICATIONS": "/users/@me/settings/game-notifications",
|
||||
"USER_GAMES_NOTIFICATIONS_OVERRIDES": "/users/@me/settings/game-notifications/overrides",
|
||||
"UNVERIFIED_APPLICATIONS": "/unverified-applications",
|
||||
"UNVERIFIED_APPLICATIONS_ICONS": "/unverified-applications/icons",
|
||||
"BULK_ACK": "/read-states/ack-bulk",
|
||||
"GUILDS": "/guilds",
|
||||
"CHANNELS": "/channels",
|
||||
"TUTORIAL_INDICATORS": "/tutorial/indicators",
|
||||
"TUTORIAL_INDICATORS_SUPPRESS": "/tutorial/indicators/suppress",
|
||||
"USERS": "/users",
|
||||
"ME": "/users/@me",
|
||||
"DELETE_ACCOUNT": "/users/@me/delete",
|
||||
"DISABLE_ACCOUNT": "/users/@me/disable",
|
||||
"DEVICES": "/users/@me/devices",
|
||||
"SETTINGS": "/users/@me/settings",
|
||||
"SETTINGS_CONSENT": "/users/@me/consent",
|
||||
"PHONE": "/users/@me/phone",
|
||||
"VERIFY_PHONE": "/users/@me/phone/verify",
|
||||
"VERIFY_PHONE_NEW": "/phone-verifications/verify",
|
||||
"RESEND_PHONE": "/phone-verifications/resend",
|
||||
"CONNECTIONS": "/users/@me/connections",
|
||||
"CONNECTION_SYNC_CONTACTS": "/users/@me/connections/contacts/@me/external-friend-list-entries",
|
||||
"NOTES": "/users/@me/notes",
|
||||
"MENTIONS": "/users/@me/mentions",
|
||||
"CAPTCHA": "/users/@me/captcha/verify",
|
||||
"EXPERIMENTS": "/experiments",
|
||||
"LOGIN": "/auth/login",
|
||||
"LOGIN_MFA": "/auth/mfa/totp",
|
||||
"LOGIN_SMS": "/auth/mfa/sms",
|
||||
"LOGIN_SMS_SEND": "/auth/mfa/sms/send",
|
||||
"REMOTE_AUTH_INITIALIZE": "/users/@me/remote-auth",
|
||||
"REMOTE_AUTH_CANCEL": "/users/@me/remote-auth/cancel",
|
||||
"REMOTE_AUTH_FINISH": "/users/@me/remote-auth/finish",
|
||||
"LOGOUT": "/auth/logout",
|
||||
"REGISTER": "/auth/register",
|
||||
"REGISTER_PHONE": "/auth/register/phone",
|
||||
"TRACK": "/science",
|
||||
"SSO": "/sso",
|
||||
"VERIFY": "/auth/verify",
|
||||
"AUTHORIZE_IP": "/auth/authorize-ip",
|
||||
"VERIFY_RESEND": "/auth/verify/resend",
|
||||
"FORGOT_PASSWORD": "/auth/forgot",
|
||||
"RESET_PASSWORD": "/auth/reset",
|
||||
"ICE": "/voice/ice",
|
||||
"REPORT": "/report",
|
||||
"REPORT_V2": "/reports",
|
||||
"REPORT_OPTIONS": "/report/options",
|
||||
"INTEGRATIONS": "/integrations",
|
||||
"GATEWAY": "/gateway",
|
||||
"APPLICATIONS_DETECTABLE": "/applications/detectable",
|
||||
"OAUTH2_AUTHORIZE": "/oauth2/authorize",
|
||||
"OAUTH2_AUTHORIZE_WEBHOOK_CHANNELS": "/oauth2/authorize/webhook-channels",
|
||||
"OAUTH2_CURRENT_AUTH": "/oauth2/@me",
|
||||
"OAUTH2_TOKENS": "/oauth2/tokens",
|
||||
"OAUTH2_WHITELIST_ACCEPT": "/oauth2/whitelist/accept",
|
||||
"MFA_TOTP_ENABLE": "/users/@me/mfa/totp/enable",
|
||||
"MFA_TOTP_DISABLE": "/users/@me/mfa/totp/disable",
|
||||
"MFA_SMS_ENABLE": "/users/@me/mfa/sms/enable",
|
||||
"MFA_SMS_DISABLE": "/users/@me/mfa/sms/disable",
|
||||
"MFA_CODES": "/users/@me/mfa/codes",
|
||||
"DISABLE_EMAIL_NOTIFICATIONS": "/users/disable-email-notifications",
|
||||
"GUILD_PREMIUM_SUBSCRIPTION_COOLDOWN": "/users/@me/guilds/premium/subscriptions/cooldown",
|
||||
"USER_GUILD_PREMIUM_SUBSCRIPTIONS": "/users/@me/guilds/premium/subscriptions",
|
||||
"USER_PREMIUM_GUILD_SUBSCRIPTION_SLOTS": "/users/@me/guilds/premium/subscription-slots",
|
||||
"BILLING_STRIPE_SETUP_INTENT_SECRET": "/users/@me/billing/stripe/setup-intents",
|
||||
"BILLING_PAYMENT_SOURCES": "/users/@me/billing/payment-sources",
|
||||
"BILLING_PAYMENTS": "/users/@me/billing/payments",
|
||||
"BILLING_BRAINTREE_POPUP_BRIDGE": "/billing/braintree/popup-bridge",
|
||||
"BILLING_BRAINTREE_POPUP_BRIDGE_CALLBACK": "/billing/braintree/popup-bridge/callback",
|
||||
"BILLING_SUBSCRIPTIONS": "/users/@me/billing/subscriptions",
|
||||
"BILLING_APPLY_APPLE_RECEIPT": "/billing/apple/apply-receipt",
|
||||
"BILLING_INVOICE_PREVIEW": "/users/@me/billing/invoices/preview",
|
||||
"USER_AGREEMENTS": "/users/@me/agreements",
|
||||
"HANDOFF": "/auth/handoff",
|
||||
"HANDOFF_EXCHANGE": "/auth/handoff/exchange",
|
||||
"LIBRARY": "/users/@me/library",
|
||||
"AUTH_CONSENT_REQUIRED": "/auth/consent-required",
|
||||
"USER_HARVEST": "/users/@me/harvest",
|
||||
"APPLICATION_BRANCHES": "/branches",
|
||||
"APPLICATIONS_PUBLIC": "/applications/public",
|
||||
"APPLICATIONS_TRENDING": "/applications/trending/global",
|
||||
"STORE_PUBLISHED_LISTINGS_APPLICATIONS": "/store/published-listings/applications",
|
||||
"STORE_PUBLISHED_LISTINGS_SKUS": "/store/published-listings/skus",
|
||||
"ENTITLEMENTS_GIFTABLE": "/users/@me/entitlements/gifts",
|
||||
"PROMOTIONS": "/promotions",
|
||||
"PROMOTION_ACK": "/promotions/ack",
|
||||
"HYPESQUAD_ONLINE": "/hypesquad/online",
|
||||
"GIFS_SEARCH": "/gifs/search",
|
||||
"GIFS_TRENDING": "/gifs/trending",
|
||||
"GIFS_TRENDING_GIFS": "/gifs/trending-gifs",
|
||||
"GIFS_SELECT": "/gifs/select",
|
||||
"GIFS_SUGGEST": "/gifs/suggest",
|
||||
"GIFS_TRENDING_SEARCH": "/gifs/trending-search",
|
||||
"USER_GIFT_CODE_CREATE": "/users/@me/entitlements/gift-codes",
|
||||
"USER_GIFT_CODES": "/users/@me/entitlements/gift-codes",
|
||||
"GUILD_DISCOVERY": "/discoverable-guilds",
|
||||
"GUILD_DISCOVERY_CATEGORIES": "/discovery/categories",
|
||||
"GUILD_DISCOVERY_VALID_TERM": "/discovery/valid-term",
|
||||
"USER_AFFINITIES": "/users/@me/affinities/users",
|
||||
"GUILD_AFFINITIES": "/users/@me/affinities/guilds",
|
||||
"XBOX_GAME_PASS_PROMOTION": "/promotions/xbox-game-pass",
|
||||
"XBOX_GAME_PASS_PROMOTION_REDEEM": "/promotions/xbox-game-pass/redeem",
|
||||
"FUNIMATION_PROMOTION": "/promotions/funimation",
|
||||
"PARTNERS_CONNECTIONS": "/partners/connections",
|
||||
"PARTNERS_APPLY": "/partners/apply",
|
||||
"USER_STICKER_PACKS": "/users/@me/sticker-packs",
|
||||
"INTERACTIONS": "/interactions"
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
[
|
||||
"ANIMATED_ICON",
|
||||
"BANNER",
|
||||
"COMMERCE",
|
||||
"COMMUNITY",
|
||||
"DISCOVERABLE",
|
||||
"DISCOVERABLE_DISABLED",
|
||||
"ENABLED_DISCOVERABLE_BEFORE",
|
||||
"HUB",
|
||||
"INVITE_SPLASH",
|
||||
"MONETIZATION_ENABLED",
|
||||
"MORE_EMOJI",
|
||||
"MORE_STICKERS",
|
||||
"NEWS",
|
||||
"PARTNERED",
|
||||
"PREVIEW_ENABLED",
|
||||
"PRIVATE_THREADS",
|
||||
"SEVEN_DAY_THREAD_ARCHIVE",
|
||||
"THREE_DAY_THREAD_ARCHIVE",
|
||||
"THREADS_ENABLED",
|
||||
"TICKETED_EVENTS_ENABLED",
|
||||
"VANITY_URL",
|
||||
"VERIFIED",
|
||||
"VIP_REGIONS",
|
||||
"WELCOME_SCREEN_ENABLED"
|
||||
]
|
||||
@@ -0,0 +1,83 @@
|
||||
/* replace tos acceptance popup */
|
||||
#app-mount > div:nth-child(7) > div > div > div.tooltipContent-bqVLWK {
|
||||
visibility: hidden;
|
||||
}
|
||||
#app-mount > div:nth-child(7) > div > div > div.tooltipContent-bqVLWK::after{
|
||||
visibility: visible;
|
||||
display: block;
|
||||
content: "You need to agree to this instance's rules to continue";
|
||||
margin-top: -32px;
|
||||
}
|
||||
/* replace login header */
|
||||
#app-mount > div.app-1q1i1E > div > div > div > div > form > div > div > div.mainLoginContainer-1ddwnR > h3 {
|
||||
visibility: hidden;
|
||||
}
|
||||
h3.title-jXR8lp.marginBottom8-AtZOdT.base-1x0h_U.size24-RIRrxO::after {
|
||||
margin-top: -32px;
|
||||
content: "Welcome to Slowcord!";
|
||||
visibility: visible;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Logo in top left when bg removed */
|
||||
#app-mount > div.app-1q1i1E > div > a {
|
||||
/* replace me: original dimensions: 130x36 */
|
||||
background: url(https://raw.githubusercontent.com/fosscord/fosscord/master/assets-rebrand/svg/Fosscord-Wordmark-Gradient.svg);
|
||||
width: 130px;
|
||||
height: 23px;
|
||||
background-size: contain;
|
||||
}
|
||||
|
||||
/* replace TOS text */
|
||||
|
||||
#app-mount
|
||||
> div.app-1q1i1E
|
||||
> div
|
||||
> div
|
||||
> div
|
||||
> form
|
||||
> div
|
||||
> div
|
||||
> div.flex-1xMQg5.flex-1O1GKY.horizontal-1ae9ci.horizontal-2EEEnY.flex-1O1GKY.directionRow-3v3tfG.justifyStart-2NDFzi.alignCenter-1dQNNs.noWrap-3jynv6.marginTop20-3TxNs6
|
||||
> label
|
||||
> div.label-cywgfr.labelClickable-11AuB8.labelForward-1wfipV
|
||||
> * {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
#app-mount
|
||||
> div.app-1q1i1E
|
||||
> div
|
||||
> div
|
||||
> div
|
||||
> form
|
||||
> div
|
||||
> div
|
||||
> div.flex-1xMQg5.flex-1O1GKY.horizontal-1ae9ci.horizontal-2EEEnY.flex-1O1GKY.directionRow-3v3tfG.justifyStart-2NDFzi.alignCenter-1dQNNs.noWrap-3jynv6.marginTop20-3TxNs6
|
||||
> label
|
||||
> div.label-cywgfr.labelClickable-11AuB8.labelForward-1wfipV::after {
|
||||
visibility: visible;
|
||||
content: "I have read and agree with the rules set by this instance.";
|
||||
display: block;
|
||||
margin-top: -16px;
|
||||
}
|
||||
|
||||
/* funny styling */
|
||||
.wrapper-6URcxg {
|
||||
justify-content: flex-start !important;
|
||||
|
||||
background: url("/assets/background.png");
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.authBoxExpanded-2jqaBe,
|
||||
.authBox-hW6HRx {
|
||||
width: max(40vw, 500px) !important;
|
||||
height: 100vh !important;
|
||||
padding: 100px !important;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-radius: 0 !important;
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
|
||||
/* loading spinner */
|
||||
#app-mount > div.app-1q1i1E > div.container-16j22k.fixClipping-3qAKRb > div.content-1-zrf2 > video {
|
||||
filter: opacity(1);
|
||||
background: url("http://www.clipartbest.com/cliparts/7ca/6Rr/7ca6RrLAi.gif");
|
||||
background-size: contain;
|
||||
/* width: 64px;
|
||||
height: 64px; */
|
||||
padding-bottom: 64px;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
/* home button icon */
|
||||
#app-mount > div.app-1q1i1E > div > div.layers-3iHuyZ.layers-3q14ss > div > div > nav > ul > div.scroller-1Bvpku.none-2Eo-qx.scrollerBase-289Jih > div.tutorialContainer-2sGCg9 > div > div.listItemWrapper-KhRmzM > div > svg > foreignObject > div > div
|
||||
{
|
||||
background-image: url(https://raw.githubusercontent.com/fosscord/fosscord/master/assets-rebrand/svg/Fosscord-Icon-Rounded-Subtract.svg);
|
||||
background-size: contain;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
#app-mount > div.app-1q1i1E > div > div.layers-3iHuyZ.layers-3q14ss > div > div > nav > ul > div.scroller-1Bvpku.none-2Eo-qx.scrollerBase-289Jih > div.tutorialContainer-2sGCg9 > div > div.listItemWrapper-KhRmzM > div > svg > foreignObject > div > div, #app-mount > div.app-1q1i1E > div > div.layers-3iHuyZ.layers-3q14ss > div > div > nav > ul > div.scroller-1Bvpku.none-2Eo-qx.scrollerBase-289Jih > div.tutorialContainer-2sGCg9 > div > div.listItemWrapper-KhRmzM > div > svg > foreignObject > div > div:hover {
|
||||
background-color: white;
|
||||
}
|
||||
/* Login QR */
|
||||
#app-mount > div.app-1q1i1E > div > div > div > div > form > div > div > div.transitionGroup-aR7y1d.qrLogin-1AOZMt,
|
||||
#app-mount > div.app-1q1i1E > div > div > div > div > form > div > div > div.verticalSeparator-3huAjp,
|
||||
/* Remove login bg */
|
||||
#app-mount > div.app-1q1i1E > div > svg,
|
||||
/* Download bar */
|
||||
#app-mount > div.app-1q1i1E > div > div.layers-3iHuyZ.layers-3q14ss > div > div > div > div.notice-3bPHh-.colorDefault-22HBa0,
|
||||
/* Connection problem links */
|
||||
#app-mount > div.app-1q1i1E > div.container-16j22k.fixClipping-3qAKRb > div.problems-3mgf6w.slideIn-sCvzGz > div:nth-child(2),
|
||||
/* Downloads button */
|
||||
#app-mount > div.app-1q1i1E > div > div.layers-3iHuyZ.layers-3q14ss > div > div > nav > ul > div.scroller-1Bvpku.none-2Eo-qx.scrollerBase-289Jih > div:nth-child(7) > div.listItemWrapper-KhRmzM > div > svg > foreignObject > div,
|
||||
#app-mount > div.app-1q1i1E > div > div.layers-3iHuyZ.layers-3q14ss > div > div > nav > ul > div.scroller-1Bvpku.none-2Eo-qx.scrollerBase-289Jih > div:nth-child(6) > div,
|
||||
/* help button */
|
||||
#app-mount > div.app-1q1i1E > div > div.layers-3iHuyZ.layers-3q14ss > div > div > div > div.content-98HsJk > div.chat-3bRxxu > section > div.toolbar-1t6TWx > a,
|
||||
/* download button start of guild */
|
||||
#chat-messages-899316648933185083 > div > div > div:nth-child(5),
|
||||
/* Thread permissions etc popups */
|
||||
#app-mount > div.app-1q1i1E > div > div.layers-3iHuyZ.layers-3q14ss > div > div > div > div.content-98HsJk > div.sidebar-2K8pFh.hasNotice-1XRy4h > nav > div.container-3O_wAf,
|
||||
/* home button icon */
|
||||
#app-mount > div.app-1q1i1E > div > div.layers-3iHuyZ.layers-3q14ss > div > div > nav > ul > div.scroller-1Bvpku.none-2Eo-qx.scrollerBase-289Jih > div.tutorialContainer-2sGCg9 > div > div.listItemWrapper-KhRmzM > div > svg > foreignObject > div > div > svg
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
/* Your custom CSS goes here, enjoy! */
|
||||
Reference in New Issue
Block a user