WaldoJS Bookmarklet

Waldo lets you search globally or within specificied objects. You can search by property name, property type or property value. You can also create your own custom search functions. Waldo can be run as an npm module, or a global file and there's also an autogenerated bookmarklet you can use for quick checks in the console.

More info - https://github.com/angus-c/waldojs#overview

Source (github.com)


Download Bookmarklet:


View Bookmarklet Code:

Bookmarklet Source Code:

javascript%3A%28function%28%29%7B%21function%28t%29%7Bvar%20e%3D%7B%7D%3Bfunction%20r%28n%29%7Bif%28e%5Bn%5D%29return%20e%5Bn%5D.exports%3Bvar%20o%3De%5Bn%5D%3D%7Bi%3An%2Cl%3A%211%2Cexports%3A%7B%7D%7D%3Breturn%20t%5Bn%5D.call%28o.exports%2Co%2Co.exports%2Cr%29%2Co.l%3D%210%2Co.exports%7Dr.m%3Dt%2Cr.c%3De%2Cr.d%3Dfunction%28t%2Ce%2Cn%29%7Br.o%28t%2Ce%29%7C%7CObject.defineProperty%28t%2Ce%2C%7Benumerable%3A%210%2Cget%3An%7D%29%7D%2Cr.r%3Dfunction%28t%29%7B%22undefined%22%21%3Dtypeof%20Symbol%26%26Symbol.toStringTag%26%26Object.defineProperty%28t%2CSymbol.toStringTag%2C%7Bvalue%3A%22Module%22%7D%29%2CObject.defineProperty%28t%2C%22__esModule%22%2C%7Bvalue%3A%210%7D%29%7D%2Cr.t%3Dfunction%28t%2Ce%29%7Bif%281%26e%26%26%28t%3Dr%28t%29%29%2C8%26e%29return%20t%3Bif%284%26e%26%26%22object%22%3D%3Dtypeof%20t%26%26t%26%26t.__esModule%29return%20t%3Bvar%20n%3DObject.create%28null%29%3Bif%28r.r%28n%29%2CObject.defineProperty%28n%2C%22default%22%2C%7Benumerable%3A%210%2Cvalue%3At%7D%29%2C2%26e%26%26%22string%22%21%3Dtypeof%20t%29for%28var%20o%20in%20t%29r.d%28n%2Co%2Cfunction%28e%29%7Breturn%20t%5Be%5D%7D.bind%28null%2Co%29%29%3Breturn%20n%7D%2Cr.n%3Dfunction%28t%29%7Bvar%20e%3Dt%26%26t.__esModule%3Ffunction%28%29%7Breturn%20t.default%7D%3Afunction%28%29%7Breturn%20t%7D%3Breturn%20r.d%28e%2C%22a%22%2Ce%29%2Ce%7D%2Cr.o%3Dfunction%28t%2Ce%29%7Breturn%20Object.prototype.hasOwnProperty.call%28t%2Ce%29%7D%2Cr.p%3D%22%22%2Cr%28r.s%3D2%29%7D%28%5Bfunction%28t%2Ce%29%7Bfunction%20r%28t%2Ce%29%7Breturn%20t%3D%3D%3De%7C%7C%28t%21%3Dt%26%26e%21%3De%7C%7C%7B%7D.toString.call%28t%29%3D%3D%7B%7D.toString.call%28e%29%26%26%28t%3D%3D%3DObject%28t%29%26%26%28%21%21t%26%26%28Array.isArray%28t%29%3Ffunction%28t%2Ce%29%7Bvar%20n%3Dt.length%3Bif%28n%21%3De.length%29return%211%3Bfor%28var%20o%3D%210%2Cu%3D0%3Bu%3Cn%3Bu++%29if%28%21r%28t%5Bu%5D%2Ce%5Bu%5D%29%29%7Bo%3D%211%3Bbreak%7Dreturn%20o%7D%28t%2Ce%29%3A%22%5Bobject%20Object%5D%22%3D%3D%7B%7D.toString.call%28t%29%3Ffunction%28t%2Ce%29%7Bvar%20n%3DObject.keys%28t%29.sort%28%29%2Co%3DObject.keys%28e%29.sort%28%29%2Cu%3Dn.length%3Bif%28u%21%3Do.length%29return%211%3Bfor%28var%20i%3D0%3Bi%3Cu%3Bi++%29%7Bvar%20a%3Dn%5Bi%5D%2Cc%3Do%5Bi%5D%3Bif%28a%21%3Dc%7C%7C%21r%28t%5Ba%5D%2Ce%5Bc%5D%29%29return%211%7Dreturn%210%7D%28t%2Ce%29%3Afunction%28t%2Ce%29%7Breturn%20t.toString%28%29%3D%3D%3De.toString%28%29%7D%28t%2Ce%29%29%29%29%29%7Dt.exports%3Dr%7D%2Cfunction%28t%2Ce%29%7Bvar%20r%3Br%3Dfunction%28%29%7Breturn%20this%7D%28%29%3Btry%7Br%3Dr%7C%7CFunction%28%22return%20this%22%29%28%29%7C%7C%280%2Ceval%29%28%22this%22%29%7Dcatch%28t%29%7B%22object%22%3D%3Dtypeof%20window%26%26%28r%3Dwindow%29%7Dt.exports%3Dr%7D%2Cfunction%28t%2Ce%2Cr%29%7B%22use%20strict%22%3Br.r%28e%29%2Cfunction%28t%29%7Bvar%20n%3Dr%280%29%2Co%3Dr.n%28n%29%3Bconst%20u%3D%22object%22%3D%3Dtypeof%20window%3Fwindow%3At%2Ci%3D%7BbyName%28t%2Ce%29%7Breturn%20this.searchMaybe%28%22propName%22%2C%22string%22%2Ct%2Ce%29%7D%2CbyType%28t%2Ce%29%7Breturn%20this.searchMaybe%28%22type%22%2C%22function%22%2Ct%2Ce%29%7D%2CbyValue%28t%2Ce%29%7Breturn%20this.searchMaybe%28%22value%22%2Cnull%2Ct%2Ce%29%7D%2CbyValueCoerced%28t%2Ce%29%7Breturn%20this.searchMaybe%28%22valueCoerced%22%2Cnull%2Ct%2Ce%29%7D%2Ccustom%28t%2Ce%29%7Breturn%20this.searchMaybe%28t%2Cnull%2Cnull%2Ce%29%7D%2CsearchMaybe%28t%2Ce%2Cr%2Cn%29%7Bif%28e%26%26typeof%20r%21%3De%29throw%20new%20Error%28%60%24%7Br%7Dmust%20be%20%24%7Be%7D%60%29%3Breturn%20this%3D%3D%3Du.waldo%26%26%28u.DEBUG%3D%210%29%2Cfunction%28t%2Ce%2Cr%3Du%29%7Blet%20n%2Ci%3Bt%3Da%5Bt%5D%7C%7Ct%3Blet%20l%3D%5B%7Bwhere%3Ar%2Cpath%3Ar%3D%3Du%3F%22GLOBAL%22%3A%22SRC%22%7D%5D%2Cs%3D%5B%5D%2Cf%3D%5B%5D%3Bf.log%3Dfunction%28%29%7Bthis.forEach%28t%3D%3Et.log%28%29%29%7D%3Bfor%28%3Bn%3Dl.pop%28%29%3B%29%7Blet%7Bwhere%3Ar%2Cpath%3Aa%7D%3Dn%3Bfor%28const%20p%20in%20r%29try%7Bif%28r.hasOwnProperty%28p%29%29%7Bif%28%22%5Bobject%20Object%5D%22%3D%3D%5Br%5Bp%5D%5D%29%7Bfor%28var%20h%3D-1%3Bs%5B++h%5D%26%26%21%28i%3Do%28%29%28s%5Bh%5D.where%2Cr%5Bp%5D%29%26%26s%5Bh%5D%29%3B%29%3Bi%7C%7C%28n%3D%7Bwhere%3Ar%5Bp%5D%2Cpath%3A%60%24%7Ba%7D.%24%7Bp%7D%60%7D%2Cl.push%28n%29%2Cs.push%28n%29%29%7Dif%28t%28e%2Cr%2Cp%29%29%7Bconst%20t%3Di%3F%60%3C%24%7Bi.path%7D%3E%60%3Atypeof%20r%5Bp%5D%2Ce%3Dnew%20c%28%7Bpath%3A%60%24%7Ba%7D.%24%7Bp%7D%60%2Cobj%3Ar%2Cprop%3Ap%2Ctype%3At%7D%29%3Bf.push%28e%29%2Cu.DEBUG%26%26e.log%28%29%7D%7D%7Dcatch%28t%29%7B%7D%7Dreturn%20f%7D%28t%2Cr%2Cn%29%7D%7D%3Bconst%20a%3D%7BpropName%3A%28t%2Ce%2Cr%29%3D%3Et%3D%3Dr%2Ctype%3A%28t%2Ce%2Cr%29%3D%3Ee%5Br%5Dinstanceof%20t%2Cvalue%3A%28t%2Ce%2Cr%29%3D%3Ee%5Br%5D%3D%3D%3Dt%2CvalueCoerced%3A%28t%2Ce%2Cr%29%3D%3Ee%5Br%5D%3D%3Dt%7D%3Bclass%20c%7Bconstructor%28t%29%7BObject.assign%28this%2Ct%29%2Cthis.value%3Dthis.obj%5Bthis.prop%5D%7DtoString%28%29%7Blet%7Bpath%3At%2Ctype%3Ae%7D%3Dthis%3Breturn%60%24%7Bt%7D-%3E%28%24%7Be%7D%29%24%7Bthis.logValue%28%29%7D%60%7DlogValue%28%29%7Bconst%20t%3Dthis.value%3Breturn%28t%3D%3EObject%28t%29%21%3D%3Dt%29%28t%29%7C%7CArray.isArray%28t%29%3Ft%3A%7B%7D.toString.call%28t%29%7Dlog%28%29%7Bconsole.log%28this.toString%28%29%29%7D%7Du.waldo%3DObject.assign%28%7B%7D%2Ci%2C%7Bdebug%3A%210%7D%29%2Ce.default%3Di%7D.call%28this%2Cr%281%29%29%7D%5D%29%3B%7D%29%28%29%3B


Rate it:


Tags:

Comments

Comments so far. Add yours.