您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Streamlined login experience, autosaving of comments, and better attendance colors.
I wrote this because, as a TA, some things about BCSv2 are very frustrating. This script currently solves two problems of different importance.
The most important issue has to do with BCS automatically logging out users without regard for the beautifully-crafted homework feedback that they were about to submit. This userscript saves comments in localStorage (i.e. your browser) on every keystroke to minimize the amount of damage BCS can do. You'll still get kicked out of BCS, but after you login you'll see a big "Load comment from localStorage" button inside the text field.
Note that only one comment is saved at a time, and it is not attached to any particular student or homework.
Note that this userscript never clears a saved comment unless you manually select everything and delete the text. As a side-effect, you may have the option to "reload" a comment on Student B's homework that you've written and submitted on Student A's homework. Whether this is a feature or a bug is up to you.
The attendance section tries to be helpful with colored dots for easy identification of student attendance status. But the colored dots are very small, and they're a bit harder to scan than if they were aligned vertically. This userscript helps by repositioning and resizing the dots:
The lesser peeve is how the login page requires you to click a button before entering your credentials. I know my mouse works, let me log in already! This userscript clicks it for you. Additionally, if your browser has saved your login credentials, it makes the Login button huge, because hitting a large target is much easier than hitting a tiny target. On Firefox the script may even log you in immediately! I know for a fact that Chrome prevents this behavior for security reasons.
I write scripts to make sites better (for me). My Github account. I posted this script as a Gist if you don't like Greasyfork.
Do whatever you want with this code. Give me credit if you feel like it.
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址