blob: 852d357327827b44bdbbb0706e86b253eb502931 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// ==UserScript==
// @name Github PR helper
// @namespace phenax.github.io
// @version 0.0.0
// @description Github PR helper
// @author Akshay Nair
// @match *://hris.peoplelabs.com/attendance/regularization/apply-regularization/*
// ==/UserScript==
const $ = document.querySelector.bind(document);
const keys = {
r: () => {
$('#firstintime').value = '10:30';
$('#lastouttime').value = '18:30';
$('#reason').value = 'Work from home';
setTimeout(() => $('input[type="submit"]').click(), 500);
},
};
document.addEventListener('keydown', (e) => {
if (keys[e.key] && e.ctrlKey) {
keys[e.key]();
}
});
|