Skip to content

Instantly share code, notes, and snippets.

View dougwithseismic's full-sized avatar
🎯
For Hire

Doug silkstone dougwithseismic

🎯
For Hire
View GitHub Profile
@dougwithseismic
dougwithseismic / clientsite.html
Last active September 1, 2022 13:21
JavaScript Express / Node : How can I serve different scripts to different customers like Hotjar does?
<script defer src='https://my.backend.io/v1/library/customer-xyz123/ />
import { getCalApi } from "@calcom/embed-react"
import { useRef, useEffect } from "react"
const useCalDotCom = (namespace: string, link: string, config: object) => {
const calRef = useRef<any>(null)
useEffect(() => {
const initCal = async () => {
const cal = await getCalApi()
@dougwithseismic
dougwithseismic / Print Out All React Props From Any Third Party Site.js
Last active June 24, 2024 12:51
Start Reversing Literally ANY React App
// 1. Dump me into the console of any Next site. (Change the querySelector of line 4 to main, or body, or whatever, if it's not Next.js.
// 2. Use the console search (ctrl_f) to find what you want.
// 3. Build cool features.
// Get the root fiber node
const main = document.querySelector('#__next');
const fiberKey = Object.keys(main).find(key => key.startsWith('__react'));
const fiberNode = main[fiberKey];
const collectedGold = [];