Userscript template aktualisiert

This commit is contained in:
2021-08-27 18:12:26 +02:00
parent fec9885a64
commit 4283ee6b5c
21 changed files with 9951 additions and 5850 deletions

13
src/debounce.js Normal file
View File

@ -0,0 +1,13 @@
export function debounce (func, wait) {
let timeout
return function executedFunction (...args) {
const later = () => {
clearTimeout(timeout)
func(...args)
}
clearTimeout(timeout)
timeout = setTimeout(later, wait)
}
}