Skip to content

Instantly share code, notes, and snippets.

View Ceiridge's full-sized avatar

Ceiridge

  • At home
View GitHub Profile
@Ceiridge
Ceiridge / logNativeJavaScriptFunctions.js
Last active August 18, 2022 05:40
Log/Hook all native JavaScript functions recursively
// This hooks all functions recursively from window to log all native JavaScript functions
// The best way to use this is to inject this script at document-start via TamperMonkey.
// Default ignores (should be most likely extended):
window.__IGNORE_CALLTREE = new Set(["::requestAnimationFrame", "::getComputedStyle", "document::getElementsByTagName", "::setTimeout", "::clearTimeout", "document::getElementById", "Math::random", "Element.prototype::getAttribute", "::parseFloat", "::parseInt", "CSSStyleDeclaration.prototype::getPropertyValue"]);
(function () {
// You can ignore methods the following way:
// window.__IGNORE_CALLTREE = new Set();
// window.__IGNORE_CALLTREE.add("document::yourMethod");
#include <iostream>
#include <string>
#include <Windows.h>
#include <winternl.h>
typedef NTSTATUS(NTAPI* NtCreatePagingFile)(
IN PUNICODE_STRING PageFileName,
IN PLARGE_INTEGER MinimumSize,
IN PLARGE_INTEGER MaximumSize,
OUT PLARGE_INTEGER ActualSize OPTIONAL);
@Ceiridge
Ceiridge / userscript.js
Last active June 25, 2020 18:50
CollabVM Improver - Ceiridge's Userscript
// ==UserScript==
// @name CollabVM Autoscroll and CSS
// @namespace Ceiridge
// @version 1.0
// @description AutoScroll for CollabVM chat and CSS
// @author Ceiridge
// @match *://computernewb.com/collab-vm*
// @grant none
// @run-at document-end
// ==/UserScript==