only works with vichan + tinyboard shits
目前為
// ==UserScript==
// @name ctrl+enter
// @namespace made for soyjak.party
// @match http*://soyjak.party/*
// @match http*://www.soyjak.party/*
// @match http*://theribbitrally.org/*
// @match http*://sturdychan.help/*
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_xmlhttpRequest
// @grant GM_addStyle
// @connect *
// @license MIT
// @version 1.000
// @author Glisterald and Xyl
// @description only works with vichan + tinyboard shits
// ==/UserScript==
// ctrl + enter to post
window.addEventListener("keydown", e => {
if (e.key == "Enter" && (e.ctrlKey || e.metaKey)) {
if (form = e.target.closest("form[name=post]")) {
form.querySelector("input[type=submit]").click();
}
}
});