2017-11-13 01:23:39 -05:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
export const DEBUG = localStorage.ffzDebugMode === 'true' && document.body.classList.contains('ffz-dev');
|
|
|
|
export const SERVER = DEBUG ? '//localhost:8000' : 'https://cdn.frankerfacez.com';
|
|
|
|
|
2017-11-15 21:59:13 -05:00
|
|
|
export const CLIENT_ID = 'a3bc9znoz6vi8ozsoca0inlcr4fcvkl';
|
2017-11-13 01:23:39 -05:00
|
|
|
export const API_SERVER = '//api.frankerfacez.com';
|
2018-04-12 02:29:43 -04:00
|
|
|
export const NEW_API = '//api-test.frankerfacez.com';
|
2017-11-13 01:23:39 -05:00
|
|
|
|
2018-04-11 17:05:31 -04:00
|
|
|
export const SENTRY_ID = 'https://18f42c65339d4164b3fdebfc8c8bc99b@sentry.io/1186960';
|
|
|
|
|
2018-05-18 02:10:00 -04:00
|
|
|
|
|
|
|
export const LV_SERVER = 'https://cbenni.com/api';
|
|
|
|
export const LV_SOCKET_SERVER = 'wss://cbenni.com/socket.io/';
|
|
|
|
|
|
|
|
|
2019-02-05 14:24:45 -05:00
|
|
|
export const KEYS = {
|
|
|
|
Space: 32,
|
|
|
|
Enter: 13,
|
|
|
|
Escape: 27,
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2018-04-06 21:12:12 -04:00
|
|
|
export const TWITCH_EMOTE_BASE = '//static-cdn.jtvnw.net/emoticons/v1/';
|
|
|
|
|
|
|
|
export const KNOWN_CODES = {
|
|
|
|
'#-?[\\\\/]': '#-/',
|
|
|
|
':-?(?:7|L)': ':-7',
|
|
|
|
'\\<\\;\\]': '<]',
|
|
|
|
'\\:-?(S|s)': ':-S',
|
|
|
|
'\\:-?\\\\': ':-\\',
|
|
|
|
'\\:\\>\\;': ':>',
|
|
|
|
'B-?\\)': 'B-)',
|
|
|
|
'\\:-?[z|Z|\\|]': ':-Z',
|
|
|
|
'\\:-?\\)': ':-)',
|
|
|
|
'\\:-?\\(': ':-(',
|
|
|
|
'\\:-?(p|P)': ':-P',
|
|
|
|
'\\;-?(p|P)': ';-P',
|
|
|
|
'\\<\\;3': '<3',
|
|
|
|
'\\:-?[\\\\/]': ':-/',
|
|
|
|
'\\;-?\\)': ';-)',
|
|
|
|
'R-?\\)': 'R-)',
|
|
|
|
'[oO](_|\\.)[oO]': 'O.o',
|
|
|
|
'[o|O](_|\\.)[o|O]': 'O.o',
|
|
|
|
'\\:-?D': ':-D',
|
|
|
|
'\\:-?(o|O)': ':-O',
|
|
|
|
'\\>\\;\\(': '>(',
|
|
|
|
'Gr(a|e)yFace': 'GrayFace'
|
|
|
|
};
|
|
|
|
|
2018-04-09 19:57:05 -04:00
|
|
|
export const REPLACEMENT_BASE = '//cdn.frankerfacez.com/script/replacements/';
|
|
|
|
|
|
|
|
export const REPLACEMENTS = {
|
|
|
|
15: '15-JKanStyle.png',
|
|
|
|
16: '16-OptimizePrime.png',
|
|
|
|
17: '17-StoneLightning.png',
|
|
|
|
18: '18-TheRinger.png',
|
|
|
|
//19: '19-PazPazowitz.png',
|
|
|
|
//20: '20-EagleEye.png',
|
|
|
|
//21: '21-CougarHunt.png',
|
|
|
|
22: '22-RedCoat.png',
|
|
|
|
26: '26-JonCarnage.png',
|
|
|
|
//27: '27-PicoMause.png',
|
|
|
|
30: '30-BCWarrior.png',
|
|
|
|
33: '33-DansGame.png',
|
|
|
|
36: '36-PJSalt.png'
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2017-11-13 01:23:39 -05:00
|
|
|
export const WS_CLUSTERS = {
|
|
|
|
Production: [
|
|
|
|
['wss://catbag.frankerfacez.com/', 0.25],
|
2019-05-31 16:42:26 -04:00
|
|
|
['wss://andknuckles.frankerfacez.com/', 0.8],
|
2017-11-14 04:11:43 -05:00
|
|
|
['wss://tuturu.frankerfacez.com/', 1],
|
2018-05-31 18:34:15 -04:00
|
|
|
['wss://lilz.frankerfacez.com/', 1],
|
2019-06-09 19:48:26 -04:00
|
|
|
['wss://yoohoo.frankerfacez.com/', 1],
|
|
|
|
['wss://pog.frankerfacez.com/', 1]
|
2017-11-13 01:23:39 -05:00
|
|
|
],
|
|
|
|
|
|
|
|
Development: [
|
|
|
|
['wss://127.0.0.1:8003/', 1]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
export const IS_OSX = navigator.platform ? navigator.platform.indexOf('Mac') !== -1 : /OS X/.test(navigator.userAgent);
|
|
|
|
export const IS_WIN = navigator.platform ? navigator.platform.indexOf('Win') !== -1 : /Windows/.test(navigator.userAgent);
|
2017-11-28 02:03:59 -05:00
|
|
|
export const IS_WEBKIT = navigator.userAgent.indexOf('AppleWebKit/') !== -1 && navigator.userAgent.indexOf('Edge/') === -1;
|
2018-07-09 21:35:31 -04:00
|
|
|
export const IS_FIREFOX = navigator.userAgent.indexOf('Firefox/') !== -1;
|
2017-11-28 02:03:59 -05:00
|
|
|
|
|
|
|
export const WEBKIT_CSS = IS_WEBKIT ? '-webkit-' : '';
|