ctrl+enter

only works with vichan imageboards

  1. // ==UserScript==
  2. // @name ctrl+enter
  3. // @namespace made for soyjak.party
  4. // @match http*://soyjak.party/*
  5. // @match http*://soyak.party/*
  6. // @match http*://soyjak.st/*
  7. // @match http*://theribbitrally.org/*
  8. // @match http*://frogbbs.moot.es/*
  9. // @match http*://sturdychan.help/*
  10. // @match http*://swedishwin.com/*
  11. // @match http*://soygem.party/*
  12. // @match http*://crystal.cafe/*
  13. // @match http*://lolcow.farm/*
  14. // @match http*://*.soyja.cc/*
  15. // @grant GM_getValue
  16. // @grant GM_setValue
  17. // @grant GM_xmlhttpRequest
  18. // @grant GM_addStyle
  19. // @connect *
  20. // @license MIT
  21. // @version 1.001
  22. // @author Glisterald and Xyl
  23. // @description only works with vichan imageboards
  24. // ==/UserScript==
  25.  
  26. // ctrl + enter to post
  27. window.addEventListener("keydown", e => {
  28. if (e.key == "Enter" && (e.ctrlKey || e.metaKey)) {
  29. if (form = e.target.closest("form[name=post]")) {
  30. form.querySelector("input[type=submit]").click();
  31. }
  32. }
  33. });