Compare commits

...

10 commits

Author SHA1 Message Date
Ladislav Hano
711ab39416 Corrected manifest 2023-10-15 15:02:15 +02:00
Ladislav Hano
979ed69869 Manifest v1.2.1 2023-10-15 14:58:42 +02:00
Ladislav Hano
16050586a9 Revert "Added icon"
This reverts commit 0c7a74a820.
2023-10-15 14:54:51 +02:00
Ladislav Hano
82b82c5a8b Changed icon size 2023-10-15 14:52:24 +02:00
Ladislav Hano
0c7a74a820 Added icon 2023-10-15 14:49:44 +02:00
Ladislav Hano
e3b8174d6a Version change 2023-07-20 12:54:00 +02:00
Ladislav Hano
fd1eba1059 Fixed some photos not showing 2023-07-20 12:41:54 +02:00
Ladislav Hano
8ec3fc8238 added id 2023-02-17 12:52:19 +01:00
Ladislav Hano
fdc03f0c3c changed style 2023-02-17 12:36:02 +01:00
Ladislav Hano
b04e192e49 No longer changing inner html 2023-02-17 12:29:09 +01:00
3 changed files with 14 additions and 20 deletions

BIN
assets/icon.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View file

@ -12,17 +12,13 @@ let other_css = `
right: 0;
top: 0 !important; }
.ikony {
float: left;`;
float: left;}`;
if (document.body.classList.contains("motiv-tmavy")){
photos.concat(browser.runtime.getURL("assets/brandejsMucitel.png"), browser.runtime.getURL("assets/brandejsMC.png"));
photos.push(browser.runtime.getURL("assets/brandejsMucitel.png"), browser.runtime.getURL("assets/brandejsMC.png"));
}
else {
photos.concat(browser.runtime.getURL("assets/brandejsMC.jpg"), browser.runtime.getURL("assets/brandejsMucitel.jpg"));
other_css += `padding-left: 25%;
background-color: rgba(255, 255, 255, 0.7);
border-radius: 20px;`;
photos.push(browser.runtime.getURL("assets/brandejsMucitel.jpg"), browser.runtime.getURL("assets/brandejsMC.jpg"));
}
other_css += "}";
let rng = Math.floor(Math.random() * photos.length);
@ -47,18 +43,13 @@ let app_css = `
}
#app_menu.empty { background-color: transparent }`;
let style = document.getElementsByTagName("style");
if (style.length == 0) {
document.head.innerHTML += "<style>" + app_css + other_css + "</style>";
let style = document.createElement("style");
let main_page = document.getElementsByClassName("motiv-titulka");
if (main_page.length == 0) {
style.innerText = app_css + other_css;
}
else {
let main_page = document.getElementsByClassName("motiv-titulka");
if (main_page.length == 0) {
style[0].innerHTML += app_css + other_css;
}
else {
style[0].innerHTML += main_menu_css + other_css;
}
style.innerText = main_menu_css + other_css;
}
document.head.appendChild(style)

View file

@ -2,13 +2,16 @@
"manifest_version": 2,
"name": "Custom Brandejs theme for IS",
"version": "1.0",
"version": "1.2.0",
"description": "The only proper way to enjoy MUNI IS (shamelessly stolen)",
"browser_specific_settings": {
"gecko": {
"update_url": "https://zylacx.github.io/updates.json"
}
},
"icons": {
"90": "assets/icon.webp"
},
"content_scripts": [
{
"matches": ["https://is.muni.cz/auth/*"],