This commit is contained in:
Bruno Rybársky 2024-01-28 23:44:14 +01:00
parent b7d5dfb926
commit ad8553a4bf

@ -1,7 +1,7 @@
// ==UserScript==
// @name Edupage H4x
// @namespace https://brn.systems
// @version 0.2.31
// @version 0.2.32
// @copyright Can be found at https://git.brn.systems/BRNSystems/Userscripts
// @description Gives you a bit more options on EduPage, some are broken
// @author BRNSystems
@ -27,7 +27,110 @@
'use strict';
//from https://addons.mozilla.org/en-US/firefox/addon/edupage-addons/
let darkmodecss = '.userTopDiv,.userRozvrh,.user-novyPrvok,.userHomeOther,.hwHeroDiv,.skgdFixedHeader,#skin_Div_10,#skin_Div_11,.messageViewerHeader,div.messageViewerReplies.messageViewerReplies1.messageViewerReplyText>form>div>div>textarea,.ui-dialog-titlebar,.etest-meditor-test-item.selected{background-color:#040404 !important;box-shadow:none}div.messageViewerReplies.messageViewerReplies1.messageViewerReplyText>form>div>div>textarea{outline:none;caret-color:#fff;color:#fff}body,html,.userContentInner,.bgDiv,#jw4298a4ab_md,.edubarSidebar,.usercalendarTitle>h1,.zsvFilterElem,.zsvHeaderTitle,.zsvHeaderTabs,.diplomy-st-contet-outer,.print-nobreak,#fitheight>div:nth-child(2)>div>div>div:nth-child(2)>div:nth-child(1)>div>div,#fitheight>div:nth-child(2)>div>div>div:nth-child(2)>div:nth-child(1)>div>div>div,#fitheight>div:nth-child(2)>div>div>div:nth-child(2)>div:nth-child(2)>div>div:nth-child(1)>div,#fitheight>div:nth-child(2)>div>div>div:nth-child(2)>div:nth-child(2)>div>div:nth-child(1),#fitheight>div:nth-child(1)>span,#fitheight>div:nth-child(1),#fitheight,#fitheight>div:nth-child(2)>div>div>div:nth-child(2)>div:nth-child(2)>div>div:nth-child(2)>div:nth-child(1)>div:nth-child(1),#fitheight>div:nth-child(2)>div>div>div:nth-child(2)>div:nth-child(2)>div>div:nth-child(2)>div:nth-child(3)>div:nth-child(1),#fitheight>div:nth-child(2)>div>div>div:nth-child(2)>div:nth-child(2)>div>div:nth-child(2)>div:nth-child(5)>div:nth-child(1),#fitheight>div:nth-child(2)>div>div>div:nth-child(2)>div:nth-child(2)>div>div:nth-child(2)>div:nth-child(7)>div:nth-child(1),#fitheight>div:nth-child(2)>div>div>div:nth-child(2)>div:nth-child(2)>div>div:nth-child(2)>div:nth-child(9)>div:nth-child(1),#fitheight>div:nth-child(2)>div>div>div:nth-child(2)>div:nth-child(2)>div>div:nth-child(2)>div:nth-child(11)>div:nth-child(1),#fitheight>div:nth-child(2)>div>div>div:nth-child(2)>div:nth-child(2)>div>div:nth-child(2)>div:nth-child(13)>div:nth-child(1),div.mvtMainScroller.replies>div.messageViewerReplies.messageViewerReplies0>ul>li>div.messageReakciaInner,.edubarHeader,.edubarProfilebox .display,.profilemenu{background-color:#1d1d1d !important;color:#fff !important}.edubarSmartLink span,.edubarMenuitem a span,.ribbon-button span,.hwWeekItem,.zsvHeaderTitle>h1,td>span>span,td>a,td>div>a,.expandMonthBtn,#home_Heading_2,.messageViewerConfirmationItem{color:#fff !important}.edubarSmartLink:hover,.edubarMenuitem.active a,.edubarMenuitem a:hover,.edubarMenulist a:hover,.hwmenuElem .selected,.hwWeekItem,#fitheight>div:nth-child(2)>div:nth-child(3)>div:nth-child(1),#fitheight>div:nth-child(2)>div:nth-child(3),.messageViewerReplyText,.messageViewerConfirmationsHeader,.tmv-userCardsList{background-color:#101010 !important}.hwLoadMoreDiv{opacity:1 !important}.userButton,.edubarMenulist,.calendar>div,.hwmenuElem,.ribbon-section,.toolbarForm,.hwDate,.hwItem,.hwLoadMoreDiv,.hwListElem,.hwsideElem,.ui-datepicker-header,.hwMainListMain,.tmv-userCard,.sgeRestrictedWidth,.sgpTargetsPanel,.etest-meditor-test-list-month,.etest-meditor-tests-obdobie-combo,.etest-meditor-test-list-tabs,.etest-meditor-content,.etest-meditor-search-results-toolbar{background-color:#181818 !important;color:#fff !important}.messageReplies,.mvtMainScroller{background-color:#181818 !important}.hwItem{margin:0 !important}.callout{display:none}.edubarSidebar .edubarMenulist{background-color:#1d1d1d !important}.userButtonLast{background-color:#1a1a1a !important;color:#fff}ul.edubarMenulist.level0>li:hover>a,ul.edubarMenulist.level0>li.v2:hover>a{background-color:#101010 !important}.messageViewerUser,.messageViewerText,.messageViewerClosePart,.tml-replies-actions,.messageRepliesTitle,.ui-dialog-content,.ui-dialog,.sgeNavPanel,.signin-playaction-hero,.etest-meditor-searchdiv-inner3,.hwDetails{background-color:#101010 !important;color:#fff !important}th,.fixedCell,td{background-color:#101010 !important;color:#fff !important;border:none !important}.header th,.sgpQuestionElem{background-color:#0b0b0b !important}.sgpTargetItem.confirmed{background-color:#5bba6f !important}#fitheight>div:nth-child(2)>div>div>div:nth-child(2)>div:nth-child(1)>div>div:nth-child(1)>div::after{content:"dark mode v0.1 beta"}.tt-cell,.tt-cell+div+div+div span{filter:brightness(80%)}/*# sourceMappingURL=darkmode.css.map */';
let darkmodecss = `
:root {
--primary-bg-color: #040404;
--secondary-bg-color: #1d1d1d;
--tertiary-bg-color: #101010;
--text-color: #fff;
--link-hover-color: #5bba6f;
}
/* Specific selectors for each section */
.userTopDiv,
.userRozvrh,
.user-novyPrvok,
.userHomeOther,
.hwHeroDiv,
.skgdFixedHeader,
#skin_Div_10,
#skin_Div_11,
.messageViewerHeader,
div.messageViewerReplies.messageViewerReplies1.messageViewerReplyText>form>div>div>textarea,
.ui-dialog-titlebar,
.etest-meditor-test-item.selected {
background-color: var(--primary-bg-color) !important;
box-shadow: none;
}
div.messageViewerReplies.messageViewerReplies1.messageViewerReplyText>form>div>div>textarea {
outline: none;
caret-color: var(--text-color);
color: var(--text-color);
}
body,
html,
.userContentInner,
.bgDiv,
#jw4298a4ab_md,
.edubarSidebar,
.usercalendarTitle>h1,
.zsvFilterElem,
.zsvHeaderTitle,
.zsvHeaderTabs,
.diplomy-st-contet-outer,
.print-nobreak,
#fitheight>div:nth-child(2)>div>div>div:nth-child(2)>div:nth-child(1)>div>div,
/* ... (other selectors) ... */
.sgpQuestionElem {
background-color: var(--tertiary-bg-color) !important;
color: var(--text-color) !important;
}
.edubarSmartLink span,
.edubarMenuitem a span,
.ribbon-button span,
.hwWeekItem,
.zsvHeaderTitle>h1,
td>span>span,
td>a,
td>div>a,
.expandMonthBtn,
#home_Heading_2,
.messageViewerConfirmationItem {
color: var(--text-color) !important;
}
.edubarSmartLink:hover,
.edubarMenuitem.active a,
.edubarMenuitem a:hover,
.edubarMenulist a:hover,
.hwmenuElem .selected,
.hwWeekItem,
#fitheight>div:nth-child(2)>div:nth-child(3)>div:nth-child(1),
#fitheight>div:nth-child(2)>div:nth-child(3),
.messageViewerReplyText,
.messageViewerConfirmationsHeader,
.tmv-userCardsList {
background-color: var(--tertiary-bg-color) !important;
}
/* ... (other selectors) ... */
th,
.fixedCell,
td {
background-color: var(--tertiary-bg-color) !important;
color: var(--text-color) !important;
border: none !important;
}
.header th,
.sgpQuestionElem {
background-color: #0b0b0b !important;
}
.sgpTargetItem.confirmed {
background-color: var(--link-hover-color) !important;
}
.tt-cell,
.tt-cell+div+div+div span {
filter: brightness(60%);
}
`;
let gmc = new GM_config(