This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Viewers AutoReload | |
// @version 0.1 | |
// @author crashmax | |
// @match https://www.twitch.tv/moderator/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitch.tv | |
// @grant none | |
// ==/UserScript== | |
setInterval(() => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { parseArgs } from "node:util"; | |
const args = parseArgs({ | |
options: { | |
name: { | |
type: "string", | |
short: "n", | |
}, | |
verbose: { | |
type: "boolean", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function parseArgs(args) { | |
const parsedArgs = {}; | |
function parseByFlag(args, flag) { | |
for (let i = 0; i < args.length; i++) { | |
if (args[i].startsWith('--')) break | |
if (!parsedArgs[flag]) parsedArgs[flag] = [] | |
parsedArgs[flag].push(args[i]) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// chat.ts | |
class Chat { | |
ws: WebSocket | |
onMessageCallback: (message: string) => void; | |
onMessage(callback: (message: string) => void): void { | |
this.onMessageCallback = callback; | |
} | |
async init(): Promise<void> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable */ | |
// https://github.com/Chronstruct/display-primitives/issues/1#issuecomment-1518496207 | |
// declare global { | |
// namespace JSX { | |
// interface IntrinsicElements<T extends string> { | |
// input: React.DetailedHTMLProps< | |
// React.InputHTMLAttributes<HTMLInputElement>, | |
// HTMLInputElement |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="en"> | |
<head> | |
<meta charset="utf-8"/> | |
<meta name="viewport" content="width=device-width"/> | |
</head> | |
<body style="height: 300vh"> | |
<svg style="position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);" | |
width="655" height="209" viewBox="0 0 655 209" fill="none" xmlns="http://www.w3.org/2000/svg"> | |
<path d="M653 207V62C653 28.8629 626.228 2 593.091 2C519.318 2 391.639 2 292.675 2C270.583 2 252.717 19.9124 252.717 42.0038C252.717 63.5378 252.717 81.7221 252.717 81.7221C252.717 81.7221 252.717 81.7221 252.717 81.7221V167C252.717 189.091 234.808 207 212.717 207H2" | |
stroke="#EAECF0" stroke-width="4" stroke-linecap="round"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { fingerprint } from 'src/infrastructure/fingerprint'; | |
import { Client, fetchExchange, makeOperation, mapExchange } from 'urql'; | |
export const client = new Client({ | |
url: '/api/graphql', | |
requestPolicy: 'network-only', | |
exchanges: [ | |
mapExchange({ | |
async onOperation(operation) { | |
return makeOperation(operation.kind, operation, { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name reyohoho-extended | |
// @version 0.0.0 | |
// @license MIT | |
// @homepage https://github.com/crashmax-dev/reyohoho-extended | |
// @match https://reyohoho.github.io/reyohoho/* | |
// @updateURL https://github.com/crashmax-dev/reyohoho-extended.meta.js | |
// @downloadURL https://github.com/crashmax-dev/reyohoho-extended.user.js | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import antfu from '@antfu/eslint-config' | |
export default antfu({ | |
typescript: true, | |
markdown: true, | |
yaml: true, | |
rules: { | |
'antfu/no-top-level-await': 'off', | |
'curly': 'off', | |
'no-console': 'off', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name fake-random-userscript | |
// @version 0.0.0 | |
// @license MIT | |
// @match https://www.random.org/widgets/integers/* | |
// ==/UserScript== | |
(function() { | |
"use strict"; | |
function l(n, t, o) { |