Skip to content

Instantly share code, notes, and snippets.

View crashmax-dev's full-sized avatar
:octocat:
Meow

Vitalij Ryndin crashmax-dev

:octocat:
Meow
  • Russia
  • 16:08 (UTC +08:00)
View GitHub Profile
// ==UserScript==
// @name LastSticker
// @version 0.1
// @author crashmax
// @match https://www.laststicker.ru/cards/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=laststicker.ru
// @grant none
// ==/UserScript==
const missingCardsList = []
@crashmax-dev
crashmax-dev / index.html
Last active July 16, 2023 07:05
form-submit
<form method="POST" action="/login">
<label for="username">
Username:
<input name="username" type="text" required />
</label>
<label for="password">
Password:
<input name="password" type="password" required />
</label>
<button type="submit">Login</button>
function run() {
return new Promise((resolve) => {
setTimeout(() => resolve('Hello'), 500)
})
}
// что будет выведено?
const data = await run().then((data) => console.log('then', data))
console.log('await', data)
console.log('here')
import { entries } from '@zero-dependency/utils'
type LogMethod = 'debug' | 'log' | 'warn' | 'error'
const colors: Record<LogMethod, string> = {
debug: `#7f8c8d`,
log: `#2ecc71`,
warn: `#f39c12`,
error: `#c0392b`
}
const whitelist = [
{
uuid: 'dfeed5c9-ea1d-3006-9690-4ae6fd4379e6',
name: 'mndzk'
},
{
uuid: '83425100-5501-303a-a132-df4f554b079d',
name: 'MrPandir'
},
{
// ==UserScript==
// @name Improve Imgur
// @version 0.2
// @author crashmax
// @match https://imgur.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=imgur.com
// @grant GM_addStyle
// ==/UserScript==
GM_addStyle(`
import 'reflect-metadata'
import { databaseTokens } from './database/index.js'
import { ApiService } from './twitch/api.service.js'
import { AuthService } from './twitch/auth.service.js'
const authService = new AuthService(databaseTokens)
await authService.init()
const apiService = new ApiService(authService)
type Data = Record<string, any>
type KeyOf<T> = Extract<keyof T, string>
type Listener<T = any> = (value: T, action: ObserveAction) => void
enum ObserveAction {
Read = 'read',
Write = 'write'
}
class ObserveValue<T extends Data> {
// ==UserScript==
// @name Terraria Wiki Redirect
// @author crashmax
// @match https://terraria.fandom.com/ru/wiki/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=terraria.org
// @grant none
// @run-at document-start
// ==/UserScript==
const NEW_WIKI_HREF = 'https://terraria-game.fandom.com/ru/wiki/'
package main
import (
"fmt"
"github.com/rprtr258/simpdb"
)
type Emote struct {
Name string `json:"name"`