Terminal Keep-Alive (with clean input)

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

Autor
chyxhtc
Denně instalací
0
Celkem instalací
0
Hodnocení
0 0 0
Verze
1.4
Vytvořeno
30. 07. 2025
Aktualizováno
01. 08. 2025
Size
1,5 KB
Licence
MIT
Spustit na

📌 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