PUP Survey Helper

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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