Skip to content

Instantly share code, notes, and snippets.

@OrangeDrangon
OrangeDrangon / README.md
Last active March 31, 2024 20:08
BitBurner Contract Solvers

All of the scripts for contracts in Bitburner.

@stracker-phil
stracker-phil / global-search.js
Last active March 14, 2024 19:10
Recursively searches the entire object tree for a given value
/**
* Recursively searches the startObject for the given value.
*
* All matches are displayed in the browser console and stored in the global variable "gsResults"
* The function tries to simplify DOM element names by using their ID, when possible.
*
* Usage samples:
*
* globalSearch( document, 'someValue' ); // Search entire DOM document for the string value.
* globalSearch( document, '^start' ); // Simple regex search (function recognizes prefix/suffix patterns: "^..." or "...$").