|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
// @description Buttons for managing auditor repository read access from intra
|
|
|
|
|
// @match https://01.kood.tech/*
|
|
|
|
|
// @grant none
|
|
|
|
|
// @version 1.1
|
|
|
|
|
// @version 1.2
|
|
|
|
|
// @author spitko
|
|
|
|
|
// ==/UserScript==
|
|
|
|
|
|
|
|
|
@ -112,6 +112,20 @@ const observer = new MutationObserver(function (mutations) {
|
|
|
|
|
.forEach((elem) => { |
|
|
|
|
insertToggleAllButtons(elem); |
|
|
|
|
}); |
|
|
|
|
mutation.target |
|
|
|
|
.querySelectorAll("#verificationCode-01:not([data-processed])") |
|
|
|
|
.forEach((elem) => { |
|
|
|
|
let input = elem.querySelector("input"); |
|
|
|
|
input.addEventListener("keyup", function (event) { |
|
|
|
|
if (event.keyCode === 13) { |
|
|
|
|
document |
|
|
|
|
.querySelectorAll(`input[value="true"]`) |
|
|
|
|
.forEach((elem) => elem.click()); |
|
|
|
|
document.querySelector("#submit-btn").click(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
elem.dataset.processed = true; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|