It's great for beginners. Then it turns into a mess.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Numerics; | |
namespace Common | |
{ | |
/// <summary> | |
/// Arbitrary precision decimal. | |
/// All operations are exact, except for division. Division never determines more digits than the given precision. | |
/// Source: https://gist.github.com/JcBernack/0b4eef59ca97ee931a2f45542b9ff06d | |
/// Based on https://stackoverflow.com/a/4524254 |