Skip to content

Commit

Permalink
Adds blacklist to certain buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
arjohnsonn committed Jan 13, 2025
1 parent 467a756 commit ad0e01d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ function injectVideo() {
}

var eventButtons = [];
var blacklisted = ["confirm_unfavorite_course"];

var enabled = true;
var assignments = true;
Expand Down Expand Up @@ -405,7 +406,11 @@ function isValidVideo(url) {
}

function initButton(button, type) {
if (button != null && !eventButtons.includes(button)) {
if (
button != null &&
!eventButtons.includes(button) &&
!blacklisted.includes(button.id)
) {
injectVideo();

eventButtons.push(button);
Expand Down

0 comments on commit ad0e01d

Please sign in to comment.