Skip to content

Commit

Permalink
Merge branch 'mv3' of github.com:mahfoozm/YorkURMP into mv3
Browse files Browse the repository at this point in the history
  • Loading branch information
mahfoozm committed Jul 8, 2023
2 parents 67a7878 + e2f3880 commit 962ef27
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Rate My Professors extension for the YorkU course portal

Pulls data from the Rate My Professors GraphQL API (https://www.ratemyprofessors.com/graphql)

[Chrome Web Store](https://chrome.google.com/webstore/detail/yorkurmp/cdhfogbjpedkpmapnddalehbjdjahfmp?hl=en)

## Screenshots

Currently, the extension will display the professors RMP rating, avg difficulty, percentage of students that would take again, and num of ratings with a hyperlink to the prof's RMP page.
Expand All @@ -17,10 +19,18 @@ If a professor is found, but they have no ratings, the following error will be d

![No ratings](https://i.imgur.com/wieXkVR.png)

This extension can only be added as an unpacked extension (on chrome) for the time being, as it needs to be converted from MV2 to MV3 to be uploaded on the Chrome Web Store. See the releases tab for an easier download & installation instructions.
## Safari support

Safari support was recently added, however Apple requires that developers purchase a $99 license to publish Safari extensions (no thanks). I've built the extension for Safari anyways and added it to the latest release in case it's possible to install Safari extensions outside of the app store, but I'm not sure if this is possible.

## Releases vs Chrome Web Store

I have recently updated the extension to include support for MV3 (see mv3 branch, background.js rewritten) which enables it to be published on the Chrome Web Store. This update involved several modifications, such as the implementation of a self-hosted CORS proxy. For those who prefer it, I will continue to host the Manifest V2 extension in the releases tab. Note that there is no significant difference in performance between the two versions.

## Privacy Policy

Chrome Web Store extensions require a privacy policy. I am not collecting or storing any of your data.

## Modifying to use with other university course portals

Adapting this extension for use with other universities should be easy-- just change SCHOOL_ID to match your school's unique ID, and then modify the document.querySelectorAll() method to work with your course portal (find the element in which professor names are stored on your universities course portal, and modify querySelectorAll to look for this element). You might need to change the way professor info is displayed on the course portal. Remember to update permissions in manifest.json to match your course portals URL.

0 comments on commit 962ef27

Please sign in to comment.