Code Injector for sssh coding platform

A script to insert code via a small window into the sssh computer science platform code editor where in most of times copy and paste are restricted.

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
Harvy Liu
1日のインストール数
0
累計インストール数
2
評価
0 0 0
バージョン
0.0.1.20260122135937
作成日
2026/01/22
更新日
2026/01/22
大きさ
1.81KB
ライセンス
MIT
対象サイト

Ace Editor Logic Injector (SSSH Edition)

Stop fighting with copy-paste restrictions! This script is designed specifically for students using the Ace Editor on educational platforms only in course.sssh.tp.edu.tw. It adds a floating "Control Panel" to your screen that allows you to bypass blocked paste events by injecting code directly into the editor's API.


Features

  • Persistent UI: A sleek, dark-mode floating box that stays on your screen even after page refreshes.
  • Direct API Injection: Uses the ace.setValue() method to bypass JavaScript onpaste blocks and "Trusted Event" checks.
  • Zero-Lag: Highly optimized script that only activates on the target code editor.
  • Code Preservation: Correctly handles multi-line indentation for C++, Python, and Java.

How to Use

  1. Navigate to your assignment or programming task page.
  2. Paste your code into the "Paste your C++ code here..." text area in the floating box at the top-right.
  3. Click "Inject to Editor".
  4. Your code will instantly appear in the official assignment box, perfectly formatted and ready for submission!

Why this works

Many educational sites use Ace Editor, which captures keyboard events to prevent pasting. Standard "Enable Right Click" extensions often fail because the editor isn't a standard text box. This script works by communicating directly with the editor's "brain" (the JavaScript Object), making the injection invisible to the site's restriction listeners.


Note: For educational purposes only. Make sure you understand the code you are injecting! Also, this script is mostly AI-generated; only the core idea of how it works was thought by man, so it may contain mistakes and bugs. Keep this in mind and use with caution!