This repository has been archived by the owner on May 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
recaptcha_fast.js
56 lines (56 loc) · 1.6 KB
/
recaptcha_fast.js
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
;(async () => {
let i = null,
n = false,
s = false
function a (e) {
let t = e
for (; t && !t.classList?.contains('rc-imageselect-tile'); )
t = t.parentNode
return t
}
function t (e, t, n = false) {
!e ||
(!n && i === e) ||
(((true === t && e.classList.contains('rc-imageselect-tileselected')) ||
(false === t && !e.classList.contains('rc-imageselect-tileselected'))) &&
e.click())
}
document.addEventListener('mousedown', e => {
const t = a(e?.target)
t &&
((s = t.classList.contains('rc-imageselect-tileselected')
? (n = true)
: !(n = true)),
(i = t))
}),
document.addEventListener('mouseup', e => {
;(n = false), (i = null)
}),
document.addEventListener('mousemove', e => {
e = a(e?.target)
n && (i !== e && null !== i && t(i, s, true), t(e, s))
})
window.addEventListener('load', function (e) {
const t = document.body.appendChild(document.createElement('style')).sheet
t.insertRule(
'.rc-imageselect-table-33, .rc-imageselect-table-42, .rc-imageselect-table-44 {transition-duration: 0.5s !important}',
0
),
t.insertRule(
'.rc-imageselect-tile {transition-duration: 2s !important}',
1
),
t.insertRule(
'.rc-imageselect-dynamic-selected {transition-duration: 1s !important}',
2
),
t.insertRule(
'.rc-imageselect-progress {transition-duration: 0.5s !important}',
3
),
t.insertRule(
'.rc-image-tile-overlay {transition-duration: 0.5s !important}',
4
)
})
})()