Skip to content

Instantly share code, notes, and snippets.

View Jonghakseo's full-sized avatar
🕶️
be good

JongHak Seo Jonghakseo

🕶️
be good
View GitHub Profile
https://excalidraw.com/#json=MerJRiKt49ryTnFFYJIR-,ZZzylocjGjAPkzuJ3_lO3Q
@Jonghakseo
Jonghakseo / syncStoreWithURL.ts
Last active November 23, 2024 04:47
Zustand sync with querystring (for SPA)
import type { StoreApi } from 'zustand/vanilla';
type RemoveFunctionFromObject<T> = {
[key in keyof T as T[key] extends Function ? never : key]: T[key];
};
type CustomSerializeDeserialize<Value> = {
serialize?: (value: Value) => string;
deserialize?: (value: string) => Value;
};
@Jonghakseo
Jonghakseo / zendesk.js
Created January 13, 2025 02:11
Zendesk chatbot sdk AI로 난독화 제거
(() => {
// Module definitions
var moduleCache,
moduleExports,
moduleDefinitions = {
271: (module) => {
function getQueryParamsString(url) {
const link = document.createElement('a');
link.href = url;
return link.search.split('?').at(1) || '';