Skip to content

Instantly share code, notes, and snippets.

@mat-1
mat-1 / youtube-livedvr.js
Last active March 16, 2024 21:35
Allow rewinding in YouTube livestreams that have it disabled
// ==UserScript==
// @name Force enable YouTube Live Dvr
// @namespace http://tampermonkey.net/
// @version 2024-01-08
// @description Allow rewinding in YouTube livestreams that have it disabled
// @author mat
// @match https://www.youtube.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant GM_webRequest
// @run-at document-start
// ==UserScript==
// @name Photopea Premium
// @namespace http://tampermonkey.net/
// @version 2024-02-03
// @description Unlock Photopea Premium by patching their JS
// @author mat
// @match https://www.photopea.com/
// @match https://www.photopea.com/?utm_source=homescreen
// @icon https://www.google.com/s2/favicons?sz=64&domain=photopea.com
// @grant GM_webRequest
@mat-1
mat-1 / config.json
Last active December 7, 2023 03:37
Automatically run "git pull" and deploy your app when it's pushed to your repo.
{
"user": "mat",
"interval": 5,
"directory": put the directory of your project here,
"deploy": "npm i && npm run compile && node build/index.js"
}
@mat-1
mat-1 / update.py
Last active February 21, 2022 23:01
Put this in your mods folder and run it to automatically update your Fabric mods.
try:
from simplejson.errors import JSONDecodeError
except:
from json import JSONDecodeError
import traceback
import requests
import hashlib
import shutil
import array
import time
@mat-1
mat-1 / wacky_domains.py
Created May 15, 2021 06:32
Find wacky websites without a second level domain
import requests
from threading import Thread
tlds = [tld for tld in requests.get('https://data.iana.org/TLD/tlds-alpha-by-domain.txt').text.splitlines() if not tld.startswith('#')]
def check_domain(tld):
r = requests.get(f'https://cloudflare-dns.com/dns-query?name={tld}&type=A', headers={
'accept': 'application/dns-json'
})
data = r.json()
[
{
"name": "installer",
"raw": "https://gist.githubusercontent.com/mat-1/988098939dca9d25897edd5f191dd91c/raw/installer.lua",
"author": "mat"
},
{
"name": "turtleutils",
"raw": "https://raw.githubusercontent.com/mat-1/computercraft-utils/main/turtleutils.lua",
"author": "mat"
@mat-1
mat-1 / forums.json
Created August 2, 2020 12:36
1.5k Hypixel SkyBlock forum threads
This file has been truncated, but you can view the full file.
[{"title": "Regarding recent wipes from a few recent ban waves (July 15th)", "body": "Recently we have been banning and wiping quite a few accounts and profiles as you've noticed. While this is an important move for the health of this community, sadly, some of our most recent waves have been a bit too harsh and some players have been affected that shouldn't have.\n\nWe've noticed that our system went at it the wrong way - it would ban all profiles on players who were caught boosting, then spread itself to all profiles this person was a part of, then spread itself further to all profiles people in affected coops were a part of. As one may obviously guess, that's way more bans than there should have been.\n\nThis morning, we undid a lot of the bans and wipes that went out in the last few days - just a quick reset. Please note that this does not mean that all of these were false - we're just starting over. In the next few days, expect some of these bans and wipes to come back.\n\nPlease note that we had warned e
import gzip
import base64
import struct
def TAG_End(b):
return None, b
def TAG_byte(b):
return b[0], b[1:]
// ==UserScript==
// @name Auto Imposter Bot
// @namespace https://matdoes.dev
// @version 0.2
// @description Plays r/imposter for you
// @author mat
// @match https://gremlins-api.reddit.com/*
// @grant none
// ==/UserScript==