Skip to content

Instantly share code, notes, and snippets.

@MarvNC
MarvNC / get-discord-token-from-browser.md
Last active July 27, 2026 10:59
How to Get Your Discord Token From the Browser Developer Console

How to Get Your Discord Token From the Browser Console

  1. Open the browser developer tools (F12 or Ctrl + Shift + I) and click the Console tab.
  2. Paste the following code into the console and press Enter:
(w=webpackChunkdiscord_app).push([[Symbol()],{},o=>{try{Object.values(o.c).some(e=>e.exports?.setToken&&(w.t=e.exports.getToken()))}catch{}}]),w.t

(Contributed by @Risim-hanse)

# 2026年5月6日
# port: 7890 # HTTP(S) 代理服务器端口
# socks-port: 7891 # SOCKS5 代理端口
mixed-port: 10801 # HTTP(S) 和 SOCKS 代理混合端口
redir-port: 7891 # 透明代理端口,用于 Linux 和 MacOS
# Transparent proxy server port for Linux (TProxy TCP and TProxy UDP)
tproxy-port: 1536
import colorsys
import csv
from datetime import datetime
from pathlib import Path
import matplotlib.colors as mcolors
import matplotlib.pyplot as plt
import numpy as np
from matplotlib import markers
from matplotlib.path import Path as pPath
@LightArrowsEXE
LightArrowsEXE / getfscaler.py
Last active December 15, 2023 15:57
getfscaler: getscaler with frac descaling support
"""
Minimum Python version required: 3.10.
Minimum required VapourSynth version: R63
This is an unofficial "companion" script to getfnative <https://github.com/YomikoR/GetFnative>.
Note that the results of this are **NOT** conclusive on their own!
When using this script, be extra mindful that results may be inaccurate,
and that you should always double-check yourself!
@pree62
pree62 / PCA Assignment.ipynb
Created August 3, 2023 10:05
!excelR/assignments/Gists/PCA Assignment.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bambooGHT
bambooGHT / asmrDownload.user.js
Last active September 25, 2024 08:31
筛选文件下载脚本
// ==UserScript==
// @name filterDownFile
// @namespace https://github.com/bambooGHT
// @version 1.3.2
// @description dom改了,改一下代码
// @author bambooGHT
// @match https://www.asmr.one/*
// @match https://asmr.one/*
// @match https://asmr-100.com/*
// @match https://www.asmr-100.com/*
@gbraad
gbraad / README.md
Last active June 7, 2024 15:23
Cloudflare for Teams enrollment

Cloudflare for Teams enrollment (headless)

$ curl -fsSl https://pkg.cloudflareclient.com/cloudflare-warp-ascii.repo | sudo tee /etc/yum.repos.d/cloudflare-warp.repo
$ dnf install warp cloudflare-warp
  1. open the browser to https://.cloudflareaccess.com/warp
背景信息:
===
当让你搜索时,你要使用 WebPilot 插件并用如下 URL 结构来进行 Google 搜索:
https://google.com/search?q={query}&hl=en&gl=US&tbs={time}
参数:
- {query} :搜索关键字。
- {time} [optional] :时间要求,比如'qdr:d2' 表示过去两天内的搜索。
===
@Areha11Fz
Areha11Fz / gs
Last active April 28, 2023 06:46
HoYoLab Auto Sign In
const token = "ltoken=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; ltuid=xxxxxxxx;"
const genshin = false
const honkai_star_rail = true
const honkai_3 = false
const discord_notify = false
const myDiscordID = "xxxxxxxxxxxxxxxxxxxxxxxxxx"
const myDiscordName = "xxxxxxxxxx"
const discordWebhook = "https://discord.com/api/webhooks/xxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"