Skip to content

Instantly share code, notes, and snippets.

@Raz-js
Last active November 19, 2022 19:53
Show Gist options
  • Save Raz-js/233a04df66f2a9376014e3ca05850037 to your computer and use it in GitHub Desktop.
Save Raz-js/233a04df66f2a9376014e3ca05850037 to your computer and use it in GitHub Desktop.
Snapchat-Web Javascript Documentation

Remove Blur and ViewBlock when snapchat isn't focused

let stylescss = document.createElement('style');
stylescss.type = 'text/css';
stylescss.innerText = `.MibAa{visibility:visible!important;}.IBqK8{filter:blur(0px)!important;}.ejVI4{display:none;}`;
document.head.appendChild(stylescss);

Snapchat Blue Theme

let bluetheme = document.createElement('style');
bluetheme.type = 'text/css';
bluetheme.innerText = `:root[theme=dark] {    --sigIconPrimary: #00e5ff;    --sigIconSecondary: #000;    --sigIconTertiary: #560dff;    --sigIconNegative: #5536ff;    --sigTextPrimary: #dedede;    --sigTextPrimaryInverse: #000;    --sigTextSecondary: #999;    --sigTextTertiary: #616161;    --sigTextPlayer: #fff;    --sigTextNegative: #3c8ff2;    --sigColorBackgroundBorder: rgba(255, 255, 255, 0.1);    --sigBackgroundPrimary: #121212;    --sigBackgroundSecondary: #1e1e1e;    --sigBackgroundSecondaryHover: #2b2b2b;    --sigBackgroundFeedHover: rgba(255, 255, 255, 0.1);    --sigBackgroundMessageHover: #292929;    --sigBackgroundMessageSaved: #333232;    --sigBackgroundMessageSavedHover: #3a3a3a;    --sigMediaControlContainerBackground: rgba(255, 255, 255, 0.1);    --sigButtonPrimary: #0fadff;    --sigButtonPrimaryHover: #42bfff;    --sigButtonSecondary: #2b2b2b;    --sigButtonSecondaryHover: #424242;    --sigButtonSecondaryActive: #5c5c5c;    --sigButtonTertiary: #4e565f;    --sigButtonQuaternary: #fff;    --sigButtonInactive: #1e1e1e;    --sigButtonNegative: #008cff;    --sigButtonOnPrimary: #fff;    --sigButtonOnSecondary: #dedede;    --sigButtonOnTertiary: #fff;    --sigButtonOnQuaternary: #1e1e1e;    --sigButtonOnInactive: rgba(255, 255, 255, 0.3);    --sigButtonOnNegative: #fff;    --sigMain: #121212;    --sigSubscreen: #121212;    --sigOverlay: rgba(0, 0, 0, 0.4);    --sigOverlayHover: rgba(0, 0, 0, 0.35);    --sigSurface: #1e1e1e;    --sigSurfaceRGB: 30, 30, 30;    --sigSurfaceDown: #212121;    --sigAboveSurface: #292929;    --sigObject: rgba(255, 255, 255, 0.1);    --sigObjectDown: rgba(255, 255, 255, 0.19);    --sigConversationBoxBackground: rgba(255, 255, 255, 0.25);    --sigDivider: rgba(255, 255, 255, 0.1);    --sigDividerLight: rgba(255, 255, 255, 0.2);    --sigPlaceholder: #1e1e1e;    --sigDisabled: rgba(255, 255, 255, 0.1);    --sigCallTileHighlight: rgba(255, 255, 255, 0.8);    --sigChat: #0fadff;    --sigSnapWithoutSound: #005dff;    --sigSnapWithSound: #a05dcd;    --sigChatSurfaceCalling: #39ca8e;    --sigChatSurfaceCallingDisabled: #105e3d;    --sigChatPending: #767676;    --sigChatPendingHover: #8f8f8f;    --sigChatIcon: #0fadff;    --sigChatIconCaret: #f8616d;    --sigChatShadowOne: 0 0 17pxrgba(33, 33, 33, 0.07), 0 0 22pxrgba(0, 0, 0, 0.06), 0 0 8pxrgba(84, 84, 84, 0.1);    --selectedMiddleColorGradient: rgba(4, 4, 4, 0.1);    --selectedRightColorGradient: rgba(4, 4, 4, 0);    --nonFriendFeedItemCellGradient: linear-gradient( 270deg, rgb(0 10 255 / 30%) 0%, rgba(255, 252, 0, 0) 100% );}`;
document.head.appendChild(bluetheme);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment