13 lines
420 B
JavaScript
13 lines
420 B
JavaScript
|
window.onload = function () {
|
||
|
const adminLinkElement = document.querySelector(".article-detail .metadata a.admin-link");
|
||
|
if (adminLinkElement === undefined || adminLinkElement === null) {
|
||
|
return;
|
||
|
}
|
||
|
const adminLocation = adminLinkElement.href;
|
||
|
document.addEventListener("keydown", event => {
|
||
|
if (event.code === "KeyE") {
|
||
|
window.location = adminLocation;
|
||
|
}
|
||
|
})
|
||
|
}
|