iris.to Ctrl-Enter to Post

You can post with CTRL+Enter at iris.to

目前為 2023-02-12 提交的版本,檢視 最新版本

// ==UserScript==
// @name     iris.to Ctrl-Enter to Post
// @version  1.00
// @grant    none
// @include  https://iris.to/*
// @description You can post with CTRL+Enter at iris.to
// @license WTFPL
// @namespace https://gf.qytechs.cn/users/114367
// ==/UserScript==

addEventListener('click', e => {
  if (location.pathname === '/') return;
  if (!e.target.classList.contains('main-view')) return;
  if (document.getElementsByClassName('new-msg')[0]?.value) {
    if (!confirm('You are typing a note.\nAre you sure you want to go back?')) return;
  }
  history.back();
});

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址