PUP Survey Helper

Adds a button to help fill out PUP faculty evaluation surveys with organic randomization

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Meinard Francisco
日安装量
0
总安装量
11
评分
0 0 0
版本
3.0
创建于
2025-01-27
更新于
2025-11-29
大小
8.6 KB
许可证
MIT
适用于

PUP SIS Helper

This script helps PUP students automate faculty evaluations by setting survey ratings to achieve a desired average score. It dynamically adjusts responses, ensures accuracy, and works for any number of questions, saving time and simplifying the feedback process.

Instructions

Browser Developer Console

  1. Open your web browser (e.g., Chrome, Firefox).
  2. Navigate to the faculty evaluation page on the PUP SIS portal.
  3. Open the Developer Console:
    • For Chrome: Press Ctrl + Shift + J (Windows/Linux) or Cmd + Option + J (Mac).
    • For Firefox: Press Ctrl + Shift + K (Windows/Linux) or Cmd + Option + K (Mac).
  4. Copy and paste the entire script below into the console.
  window.se = (a = prompt("Avg?")) => {
    q = document.querySelectorAll('input[name^="q"]').length / 5;
    h = Math.ceil(a);
    l = Math.floor(a);
    n = Math.round(a * q) - l * q;
    for (i = 1; i <= q; i++)
      document.getElementById("q" + i + (i <= n ? h : l)).checked = 1;
  };
  1. Press Enter to execute the script.

[!NOTE] If the console blocks pasting, type allow pasting and press Enter.

Userscript Manager (Recommended)

For a better experience, install the script permanently using a userscript manager. This way, the script will automatically run every time you visit the faculty evaluation page.

Installing

  1. Choose and install a userscript manager extension for your browser (e.g., Tampermonkey, Violentmonkey, or Greasemonkey).
  2. Click on the raw userscript.js file link in this gist (your userscript manager should automatically detect it and prompt you to install).
  3. Click Install or Confirm Installation

Usage

  • Navigate to the faculty evaluation page on the PUP SIS portal:
  • The script will automatically load and display a floating helper panel in the top-right corner
  • Use the panel features:
    • Preset buttons (2.0, 2.5, 3.0, 3.5, 4.0, 5.0): Click any preset to instantly fill the survey with that average
    • Apply button: Enter a custom average rating (1.0-5.0)
    • Auto Comment button: Automatically fill all empty comment boxes with a default message
    • Keyboard shortcut: Press Ctrl+Shift+E to quickly apply your last used rating
  • The script uses organic randomization to make responses look natural