diff --git a/js/content.js b/js/content.js
index e3e71f30..4c15d0d7 100644
--- a/js/content.js
+++ b/js/content.js
@@ -32,6 +32,10 @@ const butdelay = 75;
//This extension may be super lit, but you know what's even more lit?
//Matthew Tran's twitter and insta: @MATTHEWTRANN and @matthew.trann
+console.log('UT Registration Plus is running on this page.');
+
+
+var utplanner = false;
if (document.querySelector('#fos_fl')) {
let params = (new URL(document.location)).searchParams;
@@ -44,12 +48,26 @@ if (document.querySelector('#fos_fl')) {
}
}
}
+
+
next = $("#next_nav_link");
-chrome.storage.sync.get('loadAll', function (data) {
- if (data.loadAll) {
- $('[title*="next listing"]').remove();
- }
-});
+if(next){
+ chrome.storage.sync.get('loadAll', function (data) {
+ if (data.loadAll) {
+ $('[title*="next listing"]').remove();
+ }
+ });
+}
+if($('html').hasClass('gr__utexas_collegescheduler_com')){
+ utplanner = true;
+ $.initialize("table.section-detail-grid", function() {
+ $(this).find('thead>tr').append('
Plus | tr').each(function(){
+ $(this).append(` | `);
+ })
+ });
+}
+
loadDataBase();
//make heading and modal
@@ -111,7 +129,7 @@ if (!$("#kw_results_table").length) {
//update the conflicts
update(0);
/*Handle the button clicks*/
-$("tbody").on('click', '#distButton', function () {
+$("body").on('click', '#distButton', function () {
var row = $(this).closest('tr');
$('.modal-content').stop().animate({
scrollTop: 0
@@ -338,7 +356,7 @@ function Course(coursename, unique, profname, datetimearr, status, link, registe
/*For a row, get all the course information and add the date-time-lines*/
function getCourseInfo(row) {
- console.log('WHAT');
+ console.log(row);
semesterCode = new URL(window.location.href).pathname.split('/')[4];
$("h2.dateTimePlace").remove();
$('table').find('tr').each(function () {
@@ -789,4 +807,4 @@ function loadBinaryFile(path, success) {
success(arr.join(""));
};
xhr.send();
-};
\ No newline at end of file
+};
diff --git a/js/jquery.initialize.min.js b/js/jquery.initialize.min.js
new file mode 100644
index 00000000..9ea59e98
--- /dev/null
+++ b/js/jquery.initialize.min.js
@@ -0,0 +1 @@
+(function($){"use strict";var combinators=[" ",">","+","~"];var fraternisers=["+","~"];var complexTypes=["ATTR","PSEUDO","ID","CLASS"];function grok(msobserver){if(!$.find.tokenize){msobserver.isCombinatorial=true;msobserver.isFraternal=true;msobserver.isComplex=true;return}msobserver.isCombinatorial=false;msobserver.isFraternal=false;msobserver.isComplex=false;var token=$.find.tokenize(msobserver.selector);for(var i=0;i').html(response).contents();
- console.log(object.find('.error').text());
- if (object.find('.error').text().trim() == 'No class was found for your input.') {
- window.confirm(`Could not find a course with unique number: ${unique}`);
- } else {
- var c = getCourseObject(object, link);
- console.log(c);
- if (c.coursename) {
- chrome.runtime.sendMessage({
- command: "courseStorage",
- course: c,
- action: "add"
- }, function () {
- chrome.runtime.sendMessage({
- command: "updateCourseList"
- });
- setCourseList();
- });
- } else {
- window.confirm("There Was An Error. Please check if you are logged into Utexas.")
- }
- }
- }
+ window.open(link);
+ // $.ajax({
+ // url: link,
+ // success: function (response) {
+ // console.log(response)
+ // if (response) {
+ // var output = "";
+ // var object = $('').html(response).contents();
+ // console.log(object.find('.error').text());
+ // if (object.find('.error').text().trim() == 'No class was found for your input.') {
+ // window.confirm(`Could not find a course with unique number: ${unique}`);
+ // } else {
+ // var c = getCourseObject(object, link);
+ // console.log(c);
+ // if (c.coursename) {
+ // chrome.runtime.sendMessage({
+ // command: "courseStorage",
+ // course: c,
+ // action: "add"
+ // }, function () {
+ // chrome.runtime.sendMessage({
+ // command: "updateCourseList"
+ // });
+ // setCourseList();
+ // });
+ // } else {
+ // window.confirm("There Was An Error. Please check if you are logged into Utexas.")
+ // }
+ // }
+ // }
+ // }
+ // });
}
diff --git a/manifest.json b/manifest.json
index 49843440..2c3e10e2 100644
--- a/manifest.json
+++ b/manifest.json
@@ -9,14 +9,15 @@
"declarativeContent",
"storage",
"*://*.utdirect.utexas.edu/apps/registrar/course_schedule/*",
+ "*://*.utexas.collegescheduler.com/terms/*/schedules/*",
"*://*.catalog.utexas.edu/ribbit/",
"*://*.registrar.utexas.edu/schedules/*",
"*://*.login.utexas.edu/login/*"
],
"content_scripts": [{
"css": ["css/styles.css"],
- "js": ["js/moment.min.js", "js/sql-memory-growth.js", "js/highcharts.js", "js/jquery-3.3.1.min.js", "js/content.js"],
- "matches": ["https://utdirect.utexas.edu/apps/registrar/course_schedule/*"]
+ "js": ["js/moment.min.js", "js/sql-memory-growth.js", "js/highcharts.js", "js/jquery-3.3.1.min.js", "js/jquery.initialize.min.js", "js/content.js"],
+ "matches": ["https://utdirect.utexas.edu/apps/registrar/course_schedule/*", "https://utexas.collegescheduler.com/terms/*"]
}, {
"css": ["css/styles.css"],
"js": ["js/moment.min.js", "js/sql-memory-growth.js", "js/highcharts.js", "js/jquery-3.3.1.min.js", "js/import.js"],
@@ -44,4 +45,4 @@
"48": "icons/icon48.png",
"128": "icons/icon128.png"
}
-}
\ No newline at end of file
+}