Skip to content

Instantly share code, notes, and snippets.

@Teuns
Teuns / disable_simulation_widget.cpp
Created November 2, 2025 16:26
Disable/hide the simulation widget in the match overview of FM26 on macOS.
// Probably easier to just change m_Enabled to 0 in the .asset file, but this also works.
// Depends on https://github.com/BossKoopa/BWSR
#include "InlineHook.h"
#include <cstdio>
#include <cstdint>
#include <cstring>
#include <string>
#include <vector>
#include <mach/mach.h>
@Teuns
Teuns / deSchimmel.js
Last active March 7, 2025 18:24
View blocked posts on Bluesky
// ==UserScript==
// @name DeSchimmel
// @version 2025-03-02
// @description View blocked posts on Bluesky
// @author Antonius Martinus
// @match https://bsky.app/profile/*
// @match https://bsky.app/profile/*/post/*
// @grant none
// ==/UserScript==
@Teuns
Teuns / test.m
Created February 17, 2024 13:56
Show built-in look up menu in iOS, programatically
UIView *view = // The root view.
CGRect screenBounds = [[UIScreen mainScreen] bounds];
UITextView *textView = [[UITextView alloc] initWithFrame:screenBounds];
textView.text = @"Test";
textView.textColor = [UIColor blackColor];
textView.font = [UIFont systemFontOfSize:0.0];
@Teuns
Teuns / ApplauseBlocker.js
Last active September 26, 2020 16:06
ApplauseBlocker
// ==UserScript==
// @name ApplauseBlocker YT
// @version 0.1
// @description Turn off sound when applause is being detected
// @author You
// @match https://www.youtube.com/watch?v=*
// @grant none
// ==/UserScript==
let text, parser, xmlDoc, playTime = 0, applauseTimestamps = [];
// ==UserScript==
// @name Beta Blazor
// @match http://www.beta.blazor.nl/
// @description jQuery test script
// @include *
// ==/UserScript==
(function () {
var test = "<script src='https://cdnjs.cloudflare.com/ajax/libs/url-search-params/1.1.0/url-search-params.js'></script>";
document.body.insertAdjacentHTML('afterbegin', '<script src="https://cdnjs.cloudflare.com/ajax/libs/usertiming/0.1.7/usertiming.min.js"></script><script>try { if (new URLSearchParams("q=%2B").get("q") !== "+") throw {}; }catch (error) {URLSearchParams = void 0;document.write(test); console.log("hi")}');
// ==UserScript==
// @name Beta Blazor
// @match http://www.beta.blazor.nl/
// @description jQuery test script
// @include *
// ==/UserScript==
(function () {
var scriptElement = document.createElement( "script" );
scriptElement.type = "text/javascript";
@Teuns
Teuns / Int64.js
Last active November 23, 2016 18:56 — forked from stuart11n/Int64.js
64-bit Integer type for Javascript based on Int64.js but NodeJS dependency on buffer removed, plus some other small mods.
// Int64.js
//
// Copyright (c) 2012 Robert Kieffer
// MIT License - http://opensource.org/licenses/mit-license.php
/**
* Support for handling 64-bit int numbers in Javascript (node.js)
*
* JS Numbers are IEEE-754 binary double-precision floats, which limits the
* range of values that can be represented with integer precision to: