Skip to content

Instantly share code, notes, and snippets.

View erenworld's full-sized avatar

Eren Türkoğlu erenworld

View GitHub Profile
@erenworld
erenworld / gist:7064a37692bc27308257437a99cc6e12
Last active December 31, 2025 08:31
Simple script to sort Markdown lists

Run this with something like deno run sort-markdown-list.ts < list_to_sort.md:

import { toText } from "jsr:@std/streams/to-text";
import { remark } from "npm:remark";
import strip from "npm:strip-markdown";

const cleanLine = (markdown: string): string =>
  remark()
 .use(strip)
@erenworld
erenworld / extract.js
Last active December 24, 2025 12:11
Endpoint extractor
javascript:(function () {
const scripts = document.getElementsByTagName("script"),
regex = /(?<=(\"|\%27|\`))\/[a-zA-Z0-9_?&=\/\-\#\.]*(?=(\"|\'|\%60))/g;
const results = new Set;
for (let i = 0; i < scripts.length; i++) {
let t = scripts[i].src;
"" != t &&