Skip to content

Instantly share code, notes, and snippets.

View RienNeVaPlus's full-sized avatar
🔌
Plugged in

RienNeVaPlus RienNeVaPlus

🔌
Plugged in
View GitHub Profile
@DorkForce
DorkForce / scanScope.txt
Last active May 10, 2024 03:08
Console script - Search breakpoint model for value. SYNTAX: scanScope($scope.model, 'Fred');
console.log("Usage Syntax: scanScope(objectToScan, 'scanFor', ['whatToIgnore']); %c(whatToIgnore is optional and can be a string, or an array of strings) (scanScope can be shortened to ss)", 'color: red');
var abortAtLevel = 20,
callStack = 0,
errArray = [],
funArray = [],
scanLoop = function (whatToScan, scanValue, whatToIgnore, parentTree) {
scanValue = scanValue.toLowerCase();
if (Array.isArray(whatToIgnore)) {
whatToIgnore.forEach(function (ignoreVal) {
ignoreVal = lowerCase(ignoreVal);