schoolbox web extension :)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(plugins): remove timetableLabels

willow 19f967cc 58ecc033

-28
-3
src/entrypoints/plugins.content.ts
··· 7 7 // @ts-ignore 8 8 import tabTitle from "./plugins/tabTitle"; 9 9 import homepageSwitcher from "./plugins/homepageSwitcher"; 10 - // @ts-ignore 11 - import timetableLabels from "./plugins/timetableLabels"; 12 10 import legacyTimetable from "./plugins/legacyTimetable"; 13 11 14 12 export default defineContentScript({ ··· 23 21 modernIcons(); 24 22 tabTitle(); 25 23 homepageSwitcher(); 26 - timetableLabels(); 27 24 legacyTimetable(); 28 25 }, 29 26 });
-15
src/entrypoints/plugins/timetableLabels.js
··· 1 - // TODO)) fix this! broken in new schoolbox update 2 - export default function init() { 3 - // defineStPlugin("timetableLabels", (pluginId) => { 4 - // function inject() { 5 - // const days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]; 6 - // if (window.location.pathname === "/timetable" && document.getElementsByClassName("timetable")[0]) { 7 - // for (let i = 0; i < 7; i++) { 8 - // document.querySelector(`.timetable > thead > tr > th:nth-child(${i + 2})`).innerHTML = days[i]; 9 - // document.querySelector(`.timetable-small > div:nth-child(${i + 1}) > h2`).innerHTML = days[i]; 10 - // } 11 - // } 12 - // } 13 - // setTimeout(inject, 500); 14 - // }); 15 - }
-4
src/utils/constants.ts
··· 61 61 name: "Homepage Switcher", 62 62 description: "The logo will switch to existing Schoolbox homepage when available", 63 63 }, 64 - timetableLabels: { 65 - name: "Timetable Labels", 66 - description: "Labels the day of the week from numbers to the actual day", 67 - }, 68 64 legacyTimetable: { 69 65 name: "Legacy Timetable", 70 66 description: "Moves the timetable to its own row",
-5
src/utils/storage.ts
··· 62 62 toggle: true, 63 63 }, 64 64 }), 65 - timetableLabels: storage.defineItem<Types.PluginGeneric>("local:plugin-timetableLabels", { 66 - fallback: { 67 - toggle: true, 68 - }, 69 - }), 70 65 legacyTimetable: storage.defineItem<Types.PluginGeneric>("local:plugin-legacyTimetable", { 71 66 fallback: { 72 67 toggle: false,
-1
src/utils/types.ts
··· 51 51 | "modernIcons" 52 52 | "tabTitle" 53 53 | "homepageSwitcher" 54 - | "timetableLabels" 55 54 | "legacyTimetable"; 56 55 57 56 export interface PluginInfo extends ItemInfo {}