Last active
August 28, 2020 23:37
-
-
Save unex/cccd21b261c5cafbc2810d49cfded5a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"embeds": [ | |
{ | |
"title": "Major", | |
"description": ":computer: for Computer Science\n:zap: for Computer Engineering\n:adult: for Human Centered Computing", | |
"color": 2201331 | |
}, | |
{ | |
"title": "Programming Languages", | |
"description": ":snake: for Python\n:hotsprings: for Java\n<:c_:748602040044748880> for C\n<:cplusplus:748602446795898994> for C++\n<:csharp:748603240203026514> for C#", | |
"color": 2201331 | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name YAGPDB ADD CS COURSES | |
// @version 1 | |
// @grant none | |
// @match https://yagpdb.xyz/manage/*/rolecommands/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js | |
// ==/UserScript== | |
const classes = ["CS110", "CS150", "CS152", "CS155", "CS156", "CS157", "CS163", "CS164", "CS165", "CS192", "CS220", "CS253", "CS270", "CT310", "CS314", "CS320", "CT320", "CS356", "CS370", "CS410", "CS414", "CS420", "CS425", "CS430", "CS435", "CS440", "CS445", "CS453", "CS455", "CS456", "CS457", "CS464", "CS475", "CS480A4", "CS481A3", "CS510", "CS514", "CS520", "CS530", "CS533", "CS535", "CS540", "CS545", "CS548", "CS553", "CS555", "CS556", "CS557", "CS559", "CS560", "CS561/ECE561", "CS575", "CS/ECE581C1", "CS/EE658", "CS692", "CS696", "CS793"] | |
classes.reverse() | |
unsafeWindow.roles = exportFunction(function() { | |
classes.forEach((c, i) => { | |
setTimeout(function() { | |
let $name = $("#new-role-command-name"); | |
console.log($name, c); | |
$name.val(c).trigger("input"); | |
$name.parents("form").find("button[type='submit']").click(); | |
}, 1000 * i); | |
}) | |
}, unsafeWindow) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment