Skip to content

Commit

Permalink
Host changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TyHil committed Apr 11, 2024
1 parent b84b6bd commit a3624f5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@
"nativeMessaging"
],
"host_permissions": [
"https://utdallas.collegescheduler.com/terms/*/courses/*",
"https://www.ratemyprofessors.com/",
"https://trends.utdnebula.com/"
"https://utdallas.collegescheduler.com/*",
"https://www.ratemyprofessors.com/*",
"https://trends.utdnebula.com/*"
],
"browser_specific_settings": {
"gecko": {
Expand Down
2 changes: 0 additions & 2 deletions src/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export async function scrapeCourseData() {
async function getCourseInfo(): Promise<CourseHeader> {
const course = await waitForElement('h1');
const courseData = course.innerText.split(' ');
console.log({ subjectPrefix: courseData[0], courseNumber: courseData[1] });
return { subjectPrefix: courseData[0], courseNumber: courseData[1] };
}

Expand Down Expand Up @@ -97,7 +96,6 @@ export async function scrapeCourseData() {
// collapse section details
sectionDetailsButton.click();
});
console.log([...new Set(professors)]);
return [...new Set(professors)];
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/data/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const SCHOOL_ID = '1273';
export const RMP_GRAPHQL_URL = 'https://www.ratemyprofessors.com/graphql';

export const neededOrigins = [
'https://utdallas.collegescheduler.com/terms/*/courses/*',
'https://www.ratemyprofessors.com/',
'https://trends.utdnebula.com/',
'https://utdallas.collegescheduler.com/*',
'https://www.ratemyprofessors.com/*',
'https://trends.utdnebula.com/*',
];
1 change: 0 additions & 1 deletion src/pages/CoursePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export const CoursePage = () => {
if (!state) {
setOnCoursebook(true);
getCourseData().then((payload) => {
console.log(payload);
if (payload === null) {
setOnCoursebook(false);
} else {
Expand Down

0 comments on commit a3624f5

Please sign in to comment.