Last active
September 19, 2019 17:18
-
-
Save alecjacobson/b7639ed36f902acd25b0ff4008f4c685 to your computer and use it in GitHub Desktop.
Add hover-over text for course codes on the DCS Course page
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
javascript:(function(){ | |
var h3s = document.getElementsByTagName("h3"); | |
var codes = {}; | |
for (var i = 0; i < h3s.length; i++) | |
{ | |
var splits = h3s[i].textContent.split(" - "); | |
if(splits.length == 2) | |
{ | |
codes[splits[0].trim()] = splits[1].trim(); | |
} | |
} | |
codes["JSC270H1"] = "Data Science I"; | |
codes["MAT137Y1"] = "Calculus"; | |
codes["MAT157Y1"] = "Analysis I"; | |
codes["MAT223H1"] = "Linear Algebra I"; | |
codes["MAT224H1"] = "Linear Algebra II"; | |
codes["MAT235Y1"] = "Calculus II"; | |
codes["MAT237Y1"] = "Multivariable Calculus"; | |
codes["MAT240H1"] = "Algebra I"; | |
codes["MAT247H1"] = "Algebra II"; | |
codes["MAT257Y1"] = "Analysis II"; | |
codes["MAT329Y1"] = "Concepts in Elementary Mathematics"; | |
codes["MAT390H1"] = "History of Mathematics up to 1700"; | |
codes["MAT391H1"] = "History of Mathematics after 1700"; | |
codes["STA130H1"] = "An Introduction to Statistical Reasoning and Data Science"; | |
codes["STA248H1"] = "Statistics for Computer Scientists"; | |
codes["STA257H1"] = "Probability and Statistics I"; | |
codes["STA261H1"] = "Probability and Statistics II"; | |
codes["STA314H1"] = "Statistical Methods for Machine Learning I"; | |
codes["STA347H1"] = "Probability"; | |
codes["STA414H1"] = "Statistical Methods for Machine Learning II"; | |
var as = document.getElementsByTagName("a"); | |
for (var i = 0; i < as.length; i++) | |
{ | |
if(as[i].textContent in codes) | |
{ | |
as[i].title = codes[as[i].textContent]; | |
} | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment