Compare commits

..

No commits in common. "711ab394168d2070974c4506792cc537c559ee40" and "c313a4328b4421455ec45e084d958acf87618973" have entirely different histories.

3 changed files with 20 additions and 14 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

View file

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

View file

@ -2,16 +2,13 @@
"manifest_version": 2,
"name": "Custom Brandejs theme for IS",
"version": "1.2.0",
"version": "1.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/*"],