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
1 ' Get your encrypted password from your registry Computer\HKEY_CURRENT_USER\SOFTWARE\HeidiSQL\Servers\ | |
2 ' Open your connection node and find the Password key | |
3 ' You can try this on https://msxpen.com/ | |
4 ' Credit to https://gist.github.com/jpatters/4553139 for the original version | |
10 CLS: COLOR 12, 1: KEY OFF | |
20 PRINT "Enter your encrypted password:" | |
30 LINE INPUT h$ | |
40 st$ = "" | |
50 sh = VAL(RIGHT$(h$, 1)) | |
60 h$ = LEFT$(h$, LEN(h$) -1) |
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
// #1 Select first matched element | |
export function $(selector, elem) { | |
elem = elem || document; | |
return elem.querySelector(selector); | |
} | |
// #2 Select all matched elements | |
export function $$(selector, elem) { | |
elem = elem || document; | |
return elem.querySelectorAll(selector); |