Terminal Keep-Alive (with clean input)

通过粘贴字符,保持 SSH 会话活跃

作者
chyxhtc
今日安裝
0
安裝總數
0
評價
0 0 0
版本
1.4
建立日期
2025-07-30
更新日期
2025-08-01
尺寸
1.5 KB
授權條款
MIT
腳本執行於

📌 What it does

This userscript keeps web-based SSH terminals alive by simulating human activity. It:

  • Pasts an invisible character (zero-width space \u200B)
  • This triggers activity but leaves the terminal clean

Works with canvas-based terminals embedded in <iframe>s, like those built on xterm.js or similar.


✅ Features

  • Canvas terminal compatible
  • Multi-tab / multi-iframe friendly
  • No focus required
  • Adjustable random intervals (2.8–3.5 mins by default)

🛠️ Customize

If needed, you can change the interval range inside the script:

getRandomInterval(min = 170000, max = 210000)  // milliseconds