diff --git a/package.json b/package.json index 0c4662e..1edf93f 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/content.ts b/src/content.ts index 9fdd358..b09051a 100644 --- a/src/content.ts +++ b/src/content.ts @@ -47,7 +47,6 @@ export async function scrapeCourseData() { async function getCourseInfo(): Promise { 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] }; } @@ -97,7 +96,6 @@ export async function scrapeCourseData() { // collapse section details sectionDetailsButton.click(); }); - console.log([...new Set(professors)]); return [...new Set(professors)]; } } diff --git a/src/data/config.ts b/src/data/config.ts index ba0a21b..e239ad9 100644 --- a/src/data/config.ts +++ b/src/data/config.ts @@ -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/*', ]; diff --git a/src/pages/CoursePage.tsx b/src/pages/CoursePage.tsx index e61460a..5d81ba0 100644 --- a/src/pages/CoursePage.tsx +++ b/src/pages/CoursePage.tsx @@ -28,7 +28,6 @@ export const CoursePage = () => { if (!state) { setOnCoursebook(true); getCourseData().then((payload) => { - console.log(payload); if (payload === null) { setOnCoursebook(false); } else {