Skip to content

Instantly share code, notes, and snippets.

View grafana-air-auto-login.js
(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')),
@cwest-consultch
cwest-consultch / ~io-functions.js
Created November 19, 2022 20:07 — forked from westc/~io-functions.js
JSON.stringify()
@cwest-consultch
cwest-consultch / Export Object Descriptions.md
Last active January 4, 2023 04:17
Salesforce Bookmarklet - Export Object Descriptions
View Export Object Descriptions.md