Skip to content

Instantly share code, notes, and snippets.

View radian628's full-sized avatar

Segmentation fault (core dumped) radian628

  • 0x00000000
View GitHub Profile
export async function corsText(url) {
return await (await fetch("https://corsproxy.io/?url=" + encodeURIComponent(url))).text();
}
export function parseIncludeParameters(text) {
return text.split("|").map(e => {
let firstEqualsSign = [...e].indexOf("=");
if (firstEqualsSign === -1) return;
return [e.slice(0, firstEqualsSign), e.slice(firstEqualsSign + 1)];
}).filter(e => e);
// ==UserScript==
// @name Safe Wikidot Preprocessor
// @namespace Violentmonkey Scripts
// @match *://*.wikidot.com/*
// @grant none
// @version 1.0
// @author -
// @description 9/2/2025, 12:02:48 PM
// ==/UserScript==
(async () => {
const mediabunny = await import("https://unpkg.com/mediabunny@1.11.0/dist/bundles/mediabunny.min.mjs");
const c = document.createElement("canvas");
c.width = 512;
(async () => {
const mediabunny = await import("https://unpkg.com/mediabunny@1.11.0/dist/bundles/mediabunny.min.mjs");
const c = document.createElement("canvas");
c.width = 512;
<script>
function slope(ax, ay, bx, by) {
return (by - ay) / (bx - ax);
}
function lineIntersectLine(ax, ay, bx, by, cx, cy, dx, dy) {
const s1x = bx - ax;
const s1y = by - ay;
const s2x = dx - cx;
const s2y = dy - cy;
(async () => {
// can also set this to link to another page
const URL = window.location.href.replace(/\/offset\/\d+$/g, "").replace(/\/$/g, "");
let offset = 0;
let lastOffset = "";
let words = 0;
// get all offsets
for (;offset < 100;offset++) {
data:image/webp;base64,UklGRmQNAABXRUJQVlA4IFgNAABwigCdASo3AaUBPwl+t1Mrtb0wKxPpu6AhCWVuulx6Jr5QfWzNp6HloVueXnonSMZsjUvKVW2BgE1Z5RmgLBI5iaAKl7d69tZTiLyyHOHxolfk54wiWeTA+yoYmD82uCo7uqQ7z/flFKUKWw1eEr6Op+Q9QCvILrF4MflyKNwWexX/bmWICNi0XICbuvKVSaqp/aAjqZV7K7Iycyy/g4HF3PHOURtiWeO6SCgQqsf7+uoPyE0RDctDSHfKm+wjM6GN5ME8bfqYR8NfB8BrU8ltBAHcTmjzsZuo158GtbVU7ylZLeBQuVdJgZ5P3zn4no8/P317Ofnyy0nQcoNGzyduX4FIv9mek9puVqzFQd5SqaVoLtL/7ktEiJ1jKevinoHRtRS3KtkRFqALuSIDscxYxa5QLbT14rqO2yM4N/UE12I+mJRt17i2xqXe7QfjHzQJe8xHvqazls94W9x+mbXQxKP/guQPBxucYb0CtQ5804CPjF+UUsZNegaKmw0j4ms3My3uWqncDvN7mSCgKKmS/NTQi8SMH0sCBL3RxKzuq4/PI1DO84UZeJtiU05DziOmdP9BkAIbZ9dSO/r4sINk8NwZBsVFefYVJiiXvg9gy5LrILcfE3CGkD5PCO2dFvBY+dxmPFHmyjVLZvZeRSN/avfbuq5YF3xJX/mDhtXoZInECABghzkaQGQP83fMsaFSqhfMXkZ9wT7ip51i5M9rLKvuEeFMxVJPHCnTpDK7uax8ZcJa6NDVnF7NWMZSXLZrY5j9U8pIQHCN+XXsIfCLqG0/Zkc7bmSz80paUhIyZdK8Xo2FJaX6wloRKRdHhfY/1mjs/crV0lxKTSk0Hc4eayYk2CRSGy1awEXMTcz7tXct+h5ETMKQ2s+s02wAtSMBErTQ3qvlpi1Tvo2lDkp43QixEkJ7gJj9Pnp473X8XpNknV7o8zvk4vwWhOLrzzNF5hWAVrnT2OHaP
window.substitute = function (SUBSTITUTIONS) {
function applySubstitution(str, subs) {
let normstr = str.toLowerCase();
if (!subs[normstr]) return str;
const sub = subs[normstr];
let outstr = "";
let upperCaseCount = 0;
let i = 0;
for (i = 0; i < Math.min(str.length, sub.length); i++) {
// ==UserScript==
// @name Custom CSS On Mobile
// @namespace Violentmonkey Scripts
// @grant none
// @version 1.0
// @author radian628
// @description 8/17/2025, 6:27:10 PM
// ==/UserScript==
const textarea =
// ==UserScript==
// @name keyboard speed checker
// @namespace Violentmonkey Scripts
// @match *://**/*
// @grant GM_setValue
// @grant GM_getValue
// @version 1.0
// @author radian628
// @description 8/12/2025, 10:26:06 PM
// ==/UserScript==