Skip to content

Instantly share code, notes, and snippets.

View mix2zeta's full-sized avatar
🌿
Simping

MizChaChip mix2zeta

🌿
Simping
View GitHub Profile
class User {
constructor(public email: string) {}
}
const user = new User('[email protected]')
user.email // '[email protected]'
class User {
public email: string;
constructor(email: string) {
this.email = email
}
}
const user = new User('[email protected]')
user.email // '[email protected]'
/// twitch-videoad.js
const origFetch = window.fetch;
window.fetch = (url, init, ...args) => {
if (typeof url === "string") {
if (url.includes("/access_token")) {
// url = url.replace("player_type=site", "player_type=site");
} else if (
url.includes("/gql") &&
init &&
typeof init.body === "string" &&