schoolbox web extension :)
0
fork

Configure Feed

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

refactor: move scroll segments to snippet

- note: this currently doesn't work

Willow 9f766481 3fd48427

+10 -59
-11
src/plugins/plugins.json
··· 32 32 } 33 33 ] 34 34 }, 35 - "scroll-segments": { 36 - "name": "Scroll Segments", 37 - "author": "Schooltape", 38 - "description": "Segments Schoolbox's scrolling into sections.", 39 - "scripts": [ 40 - { 41 - "execute": "doc-end", 42 - "path": "/plugins/scroll-segments/scroll-segments.js" 43 - } 44 - ] 45 - }, 46 35 "tab-title": { 47 36 "name": "Tab Title", 48 37 "author": "Schooltape",
-13
src/plugins/scroll-segments/scroll-segments.css
··· 1 - #left-menu, #container { 2 - height: 100vh !important; 3 - overflow-y: scroll !important; 4 - } 5 - 6 - .main { 7 - overflow-y: hidden !important; 8 - height: 100vh !important; 9 - } 10 - 11 - body { 12 - overflow-y: hidden; 13 - }
-35
src/plugins/scroll-segments/scroll-segments.js
··· 1 - const scrollSegmentsConsole = "color: brown; font-weight: bold;"; 2 - // console.log(`%cscroll-segments.js]`, scrollSegmentsConsole, "Injected scroll-segments.js!"); 3 - 4 - 5 - // append a new div with the class "row" to the element with the id "content" 6 - let content = document.getElementById("content"); 7 - let row = document.createElement("div"); 8 - row.classList.add("row"); 9 - content.appendChild(row); 10 - // add schooltape class to the row 11 - row.classList.add("schooltape"); 12 - 13 - // set display to none of #footer 14 - let footer = document.getElementById("footer"); 15 - footer.style.display = "none"; 16 - 17 - // append a clone of footer to the row 18 - let footerClone = footer.cloneNode(true); 19 - footerClone.style.display = "block"; 20 - footerClone.style.marginBottom = "50px"; 21 - row.appendChild(footerClone); 22 - 23 - 24 - 25 - injectCSS(); 26 - 27 - function injectCSS() { 28 - const link = document.createElement("link"); 29 - link.href = chrome.runtime.getURL("/plugins/scroll-segments/scroll-segments.css"); 30 - link.type = "text/css"; 31 - link.rel = "stylesheet"; 32 - link.className = "schooltape-css"; 33 - document.head.appendChild(link); 34 - // console.log(`%c[scroll-segments.js]`, scrollSegmentsConsole, "Injected scroll-segments.css"); 35 - }
+4
src/snippets/scroll-segments.css
··· 1 + #left-menu, .main { 2 + height: 100vh !important; 3 + overflow-y: scroll !important; 4 + }
+6
src/snippets/snippets.json
··· 5 5 "description": "Hide your profile picture across Schoolbox.", 6 6 "path": "hide-pfp.css" 7 7 }, 8 + "scroll-segments": { 9 + "name": "Scroll Segments", 10 + "author": "Schooltape", 11 + "description": "Segments Schoolbox's scrolling into sections.", 12 + "path": "scroll-segments.css" 13 + }, 8 14 "censor": { 9 15 "name": "Censor", 10 16 "author": "Schooltape",