Compare commits
10 commits
c313a4328b
...
711ab39416
Author | SHA1 | Date | |
---|---|---|---|
![]() |
711ab39416 | ||
![]() |
979ed69869 | ||
![]() |
16050586a9 | ||
![]() |
82b82c5a8b | ||
![]() |
0c7a74a820 | ||
![]() |
e3b8174d6a | ||
![]() |
fd1eba1059 | ||
![]() |
8ec3fc8238 | ||
![]() |
fdc03f0c3c | ||
![]() |
b04e192e49 |
3 changed files with 14 additions and 20 deletions
BIN
assets/icon.webp
Normal file
BIN
assets/icon.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.9 KiB |
27
content.js
27
content.js
|
@ -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)
|
|
@ -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"
|
||||
"update_url": "https://zylacx.github.io/updates.json"
|
||||
}
|
||||
},
|
||||
"icons": {
|
||||
"90": "assets/icon.webp"
|
||||
},
|
||||
"content_scripts": [
|
||||
{
|
||||
"matches": ["https://is.muni.cz/auth/*"],
|
||||
|
|
Loading…
Reference in a new issue