Skip to content

Instantly share code, notes, and snippets.

@advilm
Created November 22, 2021 23:59
Show Gist options
  • Save advilm/2b648634014f39d3159529f092e9a833 to your computer and use it in GitHub Desktop.
Save advilm/2b648634014f39d3159529f092e9a833 to your computer and use it in GitHub Desktop.
ZyBooks Font Changer
// ==UserScript==
// @name zybooks font changer
// @namespace Violentmonkey Scripts
// @match https://learn.zybooks.com/*
// @grant GM_addStyle
// @version 1.0
// @author advil
// @description 11/18/2021, 11:47:49 AM
// ==/UserScript==
// styles
GM_addStyle(`.about-page-modal, .about-page-modal .new-sections-table, .accessibility-modal h1, .ace-editor-container .accessible-editor, .ace-editor-container .accessible-restricted-editor, .ace-editor-container .drop-file-message, .activity-filter, .add-zylab-options, .add-zylab-options h1, .alert-app-error, .application-notification, .application-notification .c-notification__content, .assignment-details, .assignment-due-date-help-modal .section-content .graphic-row .arrow-date-container .arrow-date-row .due-date-extension, .assignment-due-date-lms-details, .assignment-due-date-lms-details .due-date-button, .assignment-section-summary .assignment-section-content .assignment-section-activity-info .activity-type-info-container .activity-list .activity-completion span, .assignment-section-summary .next-section-link, .assignment-summary, .assignment-summary .assignment-points-text, .availability-options .copy-pw-clipboard, .basic-options .additionalflags-label, .basic-options .command-label, .body-text, .bread-crumbs, .catalog-extension-modal, .catalog-item-info-modal, .catalog-item-info-modal h2, .catalog-page .class-instructions .instructions, .catalog-page h1, .catalog-take-class-modal h1, .chapter-item .section-list-container .empty-chapter-text, .class-statistics .lab-statistics-row .stat-container, .contact-information .additional-comments-text-area, .content-resource.container-content-resource.table .table-insert-editor .fr-toolbar .fr-btn-text_button, .definition-match-payload .definition-row .definition .explanation-text, .develop-mode .instructions, .develop-mode .load-data-label, .exercise-info-modal h2, .file-io .add-file-container .error-message, .file-io .instructions, .insert-content.in-side-menu .zb-card-content, .instructor-note-container .show-edit-instructor-note-icon, .instructor-verify-page .instructor-verify-section .eval-text, .instructor-verify-page .instructor-verify-section .info-text, .instructor-verify-page .instructor-verify-section .required-text, .instructor-view-student-submissions .bailey-boxes .box, .instructor-view-student-submissions .manual-test, .instructor-view-student-submissions p, .interactive-activity-container .activity-payload, .interactive-activity-container .activity-title-bar, .interactive-activity-container .activity-title-bar .activity-description, .lab-statistics-charts .chart-container, .lti-instructions-panel .assignment-info-text, .lti-instructions-panel .hidden-assignments-text, .lti-instructions-panel .no-assignments-text, .manage-class-modal .confirmation-message, .manage-class-modal .updated-message, .manage-class-modal .warning-message, .manage-class-modal h3, .markdown-to-html, .material-icons .label, .material-icons-outlined .label, .material-icons-round .label, .material-icons-sharp .label, .material-icons-two-tone .label, .mathworks-editor-card .message, .mathworks-tos-modal, .modify-section .alignment-grid .side-menu ul, .modify-section .toolbar-container .toolbar-card .show-me-how-link, .modify-section .toolbar-container .toolbar-card .zb-card-content, .my-class-instructor-panel .panel-content .scrollable-content .manage-class-ul, .not-found-page .copy-pw-clipboard, .not-found-page .instructor-hidden-message, .not-found-page .section-banner, .not-found-page .section-header-row .section-action-container .edit-lab-link, .not-found-page .time-remaining-toast .zb-card-content, .not-found-page .zybook-section, .not-found-page .zybook-section .zybook-section-title, .power-select-label, .primary-font-light, .privacy-page, .python-course-modal, .pythonTutor .ExecutionVisualizer #vcrControls .button, .removeable-user-info .user-info-container, .request-refund-modal h1, .result-set-test .load-data-label, .review-adoption, .review-adoption .back-to-library-link, .review-test .header-row h2, .search-input .search-suggestions, .section-activity-details .activity-group-list .activity-list-item, .section-assignment-details .assignment-choices-container .button-chevron-container .activity-point-text, .section-assignment-details .assignment-choices-container .no-activities-text, .section-preview-modal .copy-pw-clipboard, .section-preview-modal .instructor-hidden-message, .section-preview-modal .section-banner, .section-preview-modal .section-header-row .section-action-container .edit-lab-link, .section-preview-modal .time-remaining-toast .zb-card-content, .section-preview-modal .zybook-section, .section-preview-modal .zybook-section .zybook-section-title, .share-zylabs-modal, .share-zylabs-modal .component-label, .share-zylabs-modal .copy-link-button, .share-zylabs-modal .info-text, .share-zylabs-modal .search-error, .strict-equal-assert-result .actual-type, .strict-equal-assert-result .expected-type, .strict-equal-assert-result .type-message, .student-instructions-modal .copy-instructions-to-clipboard-button, .student-instructions-modal .instructions-text, .student-instructions-modal h1, .student-submit-assignment-modal .zb-modal-content, .subscribe-student-panel .already-paid, .table-of-contents .activity-selection-header .header-title, .table-of-contents .configure-header .header-title, .table-of-contents .detail-text, .table-of-contents .section-assignment-header .header-title, .table-of-contents .section-selection-header .header-title, .test-question, .test-question-container, .top-toolbar, .top-toolbar .title, .top-toolbar .toolbar-button, .top-toolbar .toolbar-menu-toggle, .top-toolbar .zb-menu button, .top-toolbar .zb-menu li, .tos-page, .unknown-content-resource .zb-card-content, .validator-text, .verify-steps-assert-result .steps-list .step-item, .view-receipt-modal, .view-receipt-modal .table-label, .view-request-card, .view-request-card .back-to-library-link, .webinar-info-modal h1, .zb-button, .zb-card .zb-card-content, .zb-checkbox, .zb-feedback .expanded-feedback .question-selection .ember-power-select-trigger, .zb-feedback .expanded-feedback .zb-control-row .more-info, .zb-footer, .zb-input-container, .zb-input-container input, .zb-input-container label, .zb-input-label, .zb-nav-menu, .zb-nav-menu .chapter-labels .nav-item-label, .zb-nav-menu .chapter-labels .nav-item-label-empty, .zb-nav-menu .chapter-labels .nav-item-label-hidden, .zb-nav-menu .chapter-labels .nav-item-label-lab, .zb-nav-menu .chapter-labels .nav-item-label-optional, .zb-nav-menu .section-labels .nav-item-label, .zb-nav-menu .section-labels .nav-item-label-empty, .zb-nav-menu .section-labels .nav-item-label-hidden, .zb-nav-menu .section-labels .nav-item-label-lab, .zb-nav-menu .section-labels .nav-item-label-optional, .zb-nav-menu button, .zb-power-select-container, .zb-power-select-container .ember-power-select-trigger, .zb-power-select-container label, .zb-progress-circular, .zb-radio-button, .zb-rich-text-editor .fr-view, .zb-scrollin-modal .zb-modal-content .zb-modal-card-container .zb-modal-card h2, .zb-simple-expandable .title, .zb-textarea, .zybook-analytics-dashboard .highcharts-axis-title, .zybook-analytics-dashboard .highcharts-title, .zybook-analytics-dashboard .tooltip-container, .zybook-chapter-add-lab-page .add-lab-card, .zybook-chapter-add-lab-page .description, .zybook-chapter-add-lab-page .select-label, .zybook-chapter-add-lab-page .selected-labs-text, .zybook-chapter-add-lab-page .zb-table table .name-column .lab-summary, .zybook-chapter-add-lab-page .zb-table table .name-column .lab-title, .zybook-chapter-add-lab-page .zb-table table .section-column-header th, .zybook-chapter-add-lab-page h3, .zybook-chapter-print-page .copy-pw-clipboard, .zybook-chapter-print-page .instructor-hidden-message, .zybook-chapter-print-page .section-banner, .zybook-chapter-print-page .section-header-row .section-action-container .edit-lab-link, .zybook-chapter-print-page .time-remaining-toast .zb-card-content, .zybook-chapter-print-page .zybook-section, .zybook-chapter-print-page .zybook-section .zybook-section-title, .zybook-chapter-section-loading-page .copy-pw-clipboard, .zybook-chapter-section-loading-page .instructor-hidden-message, .zybook-chapter-section-loading-page .section-banner, .zybook-chapter-section-loading-page .section-header-row .section-action-container .edit-lab-link, .zybook-chapter-section-loading-page .time-remaining-toast .zb-card-content, .zybook-chapter-section-loading-page .zybook-section, .zybook-chapter-section-loading-page .zybook-section .zybook-section-title, .zybook-chapter-section-page .assignment-completion-summary-card, .zybook-chapter-section-page .assignment-section-announcement .section-announcement-block-content, .zybook-chapter-section-page .copy-pw-clipboard, .zybook-chapter-section-page .instructor-hidden-message, .zybook-chapter-section-page .section-banner, .zybook-chapter-section-page .section-header-row .section-action-container .edit-lab-link, .zybook-chapter-section-page .time-remaining-toast .zb-card-content, .zybook-chapter-section-page .zybook-section, .zybook-chapter-section-page .zybook-section .zybook-section-title, .zybook-configure-panel .error-message, .zybook-configure-panel .panel-content .instructions-text, .zybook-configure-panel .panel-content .move-sections-button, .zybook-content-explorer-page .outline .resource-info-container .resource-caption, .zybook-content-explorer-page .outline .term-definition, .zybook-content-explorer-printable-page .outline .resource-info-container .resource-caption, .zybook-content-explorer-printable-page .outline .term-definition, .zybook-create-section-page .copy-pw-clipboard, .zybook-create-section-page .instructor-hidden-message, .zybook-create-section-page .section-banner, .zybook-create-section-page .section-header-row .section-action-container .edit-lab-link, .zybook-create-section-page .time-remaining-toast .zb-card-content, .zybook-create-section-page .zybook-section, .zybook-create-section-page .zybook-section .zybook-section-title, .zybook-edit-section-page .copy-pw-clipboard, .zybook-edit-section-page .instructor-hidden-message, .zybook-edit-section-page .section-banner, .zybook-edit-section-page .section-header-row .section-action-container .edit-lab-link, .zybook-edit-section-page .time-remaining-toast .zb-card-content, .zybook-edit-section-page .zybook-section, .zybook-edit-section-page .zybook-section .zybook-section-title, .zybook-error-page .copy-pw-clipboard, .zybook-error-page .instructor-hidden-message, .zybook-error-page .section-banner, .zybook-error-page .section-header-row .section-action-container .edit-lab-link, .zybook-error-page .time-remaining-toast .zb-card-content, .zybook-error-page .zybook-section, .zybook-error-page .zybook-section .zybook-section-title, .zybook-extension-modal, .zybook-getting-started-page .explanatory-text, .zybook-getting-started-page .menu, .zybook-getting-started-page .video-list, .zybook-index-page .update-modal, .zybook-ordering-preview .info-list, .zybook-outline-filter, .zybook-outline-filter .options .option .parts-count, .zybook-renew-page .renew-card .action-row .error, .zybook-renew-page .renew-card .copy-row .copy-text, .zybook-renew-page .renew-card .error-message, .zybook-renew-page .renew-card .zybook-info-row .customization-container .zb-truncate-text, .zybook-renew-page .renew-card .zybook-info-row .zb-graphic-container, .zybook-section .instructor-note, .zybook-unit-test-help-page .zybook-section-title, .zybook-unit-test-help-page p, .zybook-unused-section-loading-page .copy-pw-clipboard, .zybook-unused-section-loading-page .instructor-hidden-message, .zybook-unused-section-loading-page .section-banner, .zybook-unused-section-loading-page .section-header-row .section-action-container .edit-lab-link, .zybook-unused-section-loading-page .time-remaining-toast .zb-card-content, .zybook-unused-section-loading-page .zybook-section, .zybook-unused-section-loading-page .zybook-section .zybook-section-title, .zybook-unused-section-page .copy-pw-clipboard, .zybook-unused-section-page .instructor-hidden-message, .zybook-unused-section-page .section-banner, .zybook-unused-section-page .section-header-row .section-action-container .edit-lab-link, .zybook-unused-section-page .time-remaining-toast .zb-card-content, .zybook-unused-section-page .zybook-section, .zybook-unused-section-page .zybook-section .zybook-section-title, .zybook-zylab-similarity-page, .zybook-zylab-similarity-page .zb-toolbar .exit-button, .zylab-table-section-header .info-text, .zylab-table-section-header .zybook-graphic-container .zybook-details, .zylab-ui-page .copy-pw-clipboard, .zylab-ui-page .instructor-hidden-message, .zylab-ui-page .section-banner, .zylab-ui-page .section-header-row .section-action-container .edit-lab-link, .zylab-ui-page .time-remaining-toast .zb-card-content, .zylab-ui-page .zybook-section, .zylab-ui-page .zybook-section .zybook-section-title, .zylabs-edit .code, .zylabs-edit .lab-section-base h2, .zylabs-edit .lab-spec .lab-instructions-label, .zylabs-edit .lab-spec .markdown-text-area, .zylabs-edit .lab-spec .matlab-points, .zylabs-edit .lab-spec .section-card, .zylabs-edit .run-message, .zylabs-edit .save-lab-modal p, .zylabs-edit .save-lab-modal td, .zylabs-edit .student-files .file-editor .editor-container .ace-editor-header .description, .zylabs-edit .test-bench .test-summary, .zylabs-edit .test-results-modal .testing-instructions-list, .zylabs-view-test-bench, .zylabs-view-test-bench .test .test-description {
font-family: "Open Sans" !important;
font-weight: 400 !important;
}`);
GM_addStyle(`.code, code, kbd, pre, samp, .ace_editor, .zb-text-area {
font-family: "Jetbrains Mono" !important;
}`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment