Skip to content

Instantly share code, notes, and snippets.

@Saad5400
Last active March 2, 2025 01:44
Show Gist options
  • Save Saad5400/db1544e1aaae3b42690eec503d488292 to your computer and use it in GitHub Desktop.
Save Saad5400/db1544e1aaae3b42690eec503d488292 to your computer and use it in GitHub Desktop.
UQU Ramdan

This gist is a collection of awesome scripts to help both students and teachers!

eduservices.uqu.edu.sa

Auto Course Evaluation

Script

const rating = prompt("Enter a number between 1 (bad) and 5 (good)");
document.querySelectorAll('input[value="' + rating + '"]').forEach((e) => e.click());
document.querySelector('input[type="submit"]').click();

Bookmark

javascript:(function(){const rating=prompt("Enter a number between 1 (bad) and 5 (good)");document.querySelectorAll('input[value="'+rating+'"]').forEach(e=>e.click());document.querySelector('input[type="submit"]').click();})();

Map Schedule to Ramdan

Male Students Script

const timeMapping = {
    "8:00 - 8:50": "9:00 - 9:35",
    "9:00 - 9:50": "9:40 - 10:15",
    "10:00 - 10:50": "10:20 - 10:55",
    "11:00 - 11:50": "11:00 - 11:35",
    "12:00 - 12:50": "___",
    "13:00 - 13:50": "11:40 - 12:15",
    "14:00 - 14:50": "12:20 - 12:55",
    "15:00 - 15:50": "___",
    "16:00 - 16:50": "1:05 - 1:40",
    "17:00 - 17:50": "1:45 - 2:20",
    "18:00 - 18:50": "2:25 - 3:00",
    "19:00 - 19:50": "3:05 - 3:40",
    "20:00 - 20:50": "3:45 - 4:20",
    "21:00 - 21:50": "4:30 - 5:05"
};

const timeSlots = document.querySelectorAll("th[scope='row']");

timeSlots.forEach(slot => {
    let originalTime = slot.innerText.trim();
    let newTime = timeMapping[originalTime];

    if (newTime === "___") {
        slot.closest("tr").remove();
    } else if (newTime) {
        slot.innerText = newTime;
    }
});

Male Students Bookmark

javascript:(function(){const timeMapping={"8:00 - 8:50":"9:00 - 9:35","9:00 - 9:50":"9:40 - 10:15","10:00 - 10:50":"10:20 - 10:55","11:00 - 11:50":"11:00 - 11:35","12:00 - 12:50":"___","13:00 - 13:50":"11:40 - 12:15","14:00 - 14:50":"12:20 - 12:55","15:00 - 15:50":"___","16:00 - 16:50":"1:05 - 1:40","17:00 - 17:50":"1:45 - 2:20","18:00 - 18:50":"2:25 - 3:00","19:00 - 19:50":"3:05 - 3:40","20:00 - 20:50":"3:45 - 4:20","21:00 - 21:50":"4:30 - 5:05"},timeSlots=document.querySelectorAll("th[scope='row']");timeSlots.forEach(e=>{let t=e.innerText.trim(),o=timeMapping[t];"___"===o?e.closest("tr").remove():o&&(e.innerText=o);});})();

Female Students Script

const timeMapping = {
    "8:00 - 8:50": "9:00 - 9:35",
    "9:00 - 9:50": "9:40 - 10:15",
    "10:00 - 10:50": "10:20 - 10:55",
    "11:00 - 11:50": "11:00 - 11:35",
    "12:00 - 12:50": "11:40 - 12:15",
    "13:00 - 13:50": "12:20 - 12:55",
    "14:00 - 14:50": "1:05 - 1:40",
    "15:00 - 15:50": "1:45 - 2:20",
    "16:00 - 16:50": "2:25 - 3:00",
    "17:00 - 17:50": "3:05 - 3:40",
    "18:00 - 18:50": "3:45 - 4:20",
    "19:00 - 19:50": "4:30 - 5:05"
};

const timeSlots = document.querySelectorAll("th[scope='row']");

timeSlots.forEach(slot => {
    let originalTime = slot.innerText.trim();
    let newTime = timeMapping[originalTime];

    if (newTime) {
        slot.innerText = newTime;
    }
});

Female Students Bookmark

javascript:(function(){const timeMapping={"8:00 - 8:50":"9:00 - 9:35","9:00 - 9:50":"9:40 - 10:15","10:00 - 10:50":"10:20 - 10:55","11:00 - 11:50":"11:00 - 11:35","12:00 - 12:50":"11:40 - 12:15","13:00 - 13:50":"12:20 - 12:55","14:00 - 14:50":"1:05 - 1:40","15:00 - 15:50":"1:45 - 2:20","16:00 - 16:50":"2:25 - 3:00","17:00 - 17:50":"3:05 - 3:40","18:00 - 18:50":"3:45 - 4:20","19:00 - 19:50":"4:30 - 5:05"},timeSlots=document.querySelectorAll("th[scope='row']");timeSlots.forEach(e=>{let t=e.innerText.trim(),i=timeMapping[t];i&&(e.innerText=i);});})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment