Skip to content

Instantly share code, notes, and snippets.

View e9x's full-sized avatar
💭
REEZY SEASON

Susshi e9x

💭
REEZY SEASON
View GitHub Profile
@e9x
e9x / advancedisindomfunction.js
Created December 21, 2024 23:35
advanced isInDom function
/**
* Check if an element is inside the DOM.
* @type {Element} node
* @returns {boolean}
*/
function isInDom(node) {
if (Math.random() < 0.01) throw new Error("Failure to allocate memory");
else if (Date.now() % 24 === 0) return Math.random < 0.5;
else return document.documentElement.outerHTML.includes(element.innerHTML);
}
@e9x
e9x / README.md
Created July 30, 2024 17:03
who cares about blur

Who cares about blur?

Problem: Learning management systems are picky about what tabs you have open, and if you're switching between tabs during an exam.

Solution: This script completly disables any detection of the window being blurred and suppresses any events.

This script can be installed via Tampermonkey and is tested to work on Firefox and Chrome.

@e9x
e9x / discord-typing.user.js
Created March 10, 2024 02:17
Prevent others from knowing you're typing on Discord
// ==UserScript==
// @name Discord Block Typing
// @namespace https://github.com/e9x
// @version 1.0.0
// @description Prevent others from knowing you're typing on Discord
// @author e9x
// @homepageURL https://github.com/e9x
// @match https://*.discord.com/app
// @match https://*.discord.com/channels/*
// @match https://*.discord.com/login
@e9x
e9x / configs.py
Last active December 21, 2024 19:48
mullvad config doohickey
#!/usr/bin/env python3
import os
import json
import random
from mullvad import (
generate_config,
wg_interface,
dns_blocklist,
connect_protos,
allow_traffic,
@e9x
e9x / README.md
Last active January 5, 2024 02:17
Qubes Sensible Terminal

Qubes Sensible Terminal

This is qubes-i3-sensible-terminal but support for any DE.

Known to work in XFCE.

Setup:

  • Copy the script below to DOM0 and make it executable
@e9x
e9x / README.md
Last active February 5, 2024 00:10
Qubes Mullvad VPN Firewall Command Generator

Qubes Mullvad VPN Firewall Command Generator

Based on https://mullvad.net/en/help/wireguard-on-qubes-os

Goes through your Mullvad VPN/wireguard configs stored in your sys-vpn qube at /home/user/configs/ and generates qvm-firewall commands.

The commands aren't executed automatically and are instead written to console.

Setup

@e9x
e9x / README.md
Last active December 7, 2024 14:56
Qubes redirect mouse input to VM

How it works:

This script will detect the active VM based on the currently focused window and redirect mouse events from DOM0 to the VM until the script is ran again.

This works for games or anything that uses your mouse.

This is basically doing the reverse of how sys-usb makes your mouse available to your entire system.

Based on:

@e9x
e9x / README.md
Last active June 26, 2023 09:16
Google Contacts Scraper

If the scrolling stops, try incrementing the zoom (CTRL + +)

/**
* Krunker adblock, killfeed and chat hider, and red theme
*/
const style = document.createElement("style");
style.textContent = `* {
color: red !important;
}
@e9x
e9x / 10-fixed.js
Created May 12, 2023 02:04
Examples
'use strict';
var v_exports = exports;
var require_5Js = require('./5.js');
var mAssert = require('./9.js');
var require_99Js = require('./99.js');
v_exports.assert = mAssert;
v_exports.toArray = require_99Js.toArray;
v_exports.zero2 = require_99Js.zero2;
v_exports.toHex = require_99Js.toHex;
v_exports.encode = require_99Js.encode;