This GitHub Gist contains the code for the YourJS Bookmarklet that can be used from within the Salesforce Developer Console to easily describe any Salesforce object.
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
JSON.stringify |
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
atob |
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
(function() { | |
const IS_LEGACY = +grafanaBootData.settings.buildInfo.version.split('.')[0] <= 6; | |
const user = prompt('Enter the username:', get(window, 'grafanaBootData.user.login', '')); | |
const pass = prompt(`Enter the password for "${user}":`); | |
const redirect = location.pathname + location.search; | |
const t = IS_LEGACY | |
? { | |
user, | |
pass, | |
logout: /^YES$/i.test(prompt('If a previous user is logged in, should he be logged out? (Yes/No)', 'Yes')), |