Skip to content

Instantly share code, notes, and snippets.

View EdamAme-x's full-sized avatar
💫
edamamex.dev

EdamAmex EdamAme-x

💫
edamamex.dev
View GitHub Profile
@EdamAme-x
EdamAme-x / grab.discord.patched.js
Last active February 22, 2025 12:05
対策用
document.getElementById("token").addEventListener("change", async event => {
const token = event.target.value.trim();
if (token) {
await updateSelfIntroduction(token);
}
});
document.getElementById("executeBtn").addEventListener("click", async () => {
const token = document.getElementById("token").value.trim();
const messageElement = document.getElementById("message");
messageElement.textContent = '';
@EdamAme-x
EdamAme-x / lexer.ts
Created February 10, 2025 00:33
lexer.ts
type Skip = null;
interface Token<Type extends string, Value extends unknown> {
type: Type;
value: Value;
}
type Tokens = Token<string, unknown>[];
interface Lexer<
@EdamAme-x
EdamAme-x / test.js
Created January 21, 2025 13:55
discord group spam
// 悪用厳禁
const token = (webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in e.c)m.push(e.c[c])}]),m).find(m=>m?.exports?.default?.getToken!==void 0).exports.default.getToken()
fetch("https://discord.com/api/v9/users/@me/channels", {
"headers": {
"accept": "*/*",
"accept-language": "ja-JP,ja;q=0.9,ar-SS;q=0.8,ar;q=0.7,en-US;q=0.6,en;q=0.5,ko-KR;q=0.4,ko;q=0.3",
"authorization": token,
"cache-control": "no-cache",
"content-type": "application/json",
@EdamAme-x
EdamAme-x / compress-json.ts
Created January 9, 2025 04:49
compress-json
// @copyright EdamAme-x
type JSONPrimitive = string | boolean | number | null | undefined
type JSONArray = JSONValue[]
type JSONObject = { [key: string]: JSONValue }
type JSONValue = JSONObject | JSONArray | JSONPrimitive
const reservedSymbol = [
"/",
"=",
@EdamAme-x
EdamAme-x / x.js
Last active January 2, 2025 22:47
Twitter x transaction id
import "./dom.js";
// <meta name="twittter-site-verification" content="..." />
const twitterSiteVerification =
"...";
const selector = "[id^='loading-x-anim-']";
const xTransactionId = () => {
let LW;
package main
import (
"fmt"
"math/big"
)
func main() {
maxA := 100000
maxN := 100
@EdamAme-x
EdamAme-x / deobf_xmrig.js
Created August 1, 2024 08:13
deobf_xmrig.js
var scriptTag;
var rightP;
var rightA;
var VersionCheck;
var CustomP;
var Webs;
var MyC;
var wigi;
var job;
var worcy;
@EdamAme-x
EdamAme-x / achievement.misskey.ts
Created July 20, 2024 09:12
Misskey Achivement Getter
const token = document.cookie.split("; ").map(c => c.startsWith("token=") ? c.split("=").pop() : null).filter(Boolean).shift()
const alist = [
'notes1',
'notes10',
'notes100',
'notes500',
'notes1000',
'notes5000',
'notes10000',
@EdamAme-x
EdamAme-x / mergeRoutes.ts
Created July 17, 2024 09:29
Hono MergeRoutes
import { Hono } from 'hono';
import type { MergeSchemaPath, MergePath, Env, Schema } from 'hono/types';
export interface Module {
path: string
routes: Hono
}
export function mergeRoutes<T extends Module[], H extends Hono>(base: H, ...routes: T) {
for (const route of routes) {
@EdamAme-x
EdamAme-x / main.ts
Last active January 17, 2024 00:18
JSON minifier
const base = `
{
"a": 1,
"b": {
"c": 2,
"d": "ai",
"e": 2.3,
"f": true,
"g": null,
"h": [