This commit is contained in:
Soph :3 2024-11-25 17:45:53 +02:00
parent 9eaeb5e90d
commit dd79226b57
Signed by: sophie
GPG key ID: EDA5D222A0C270F2
7 changed files with 25 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,11 +1,10 @@
if(window.PvInternals.services_client) {
console.log("pv.me has loaded correctly")
}
// custom rules
(() => {
const pv = window.PvInternals;
if(pv.services_client) {
console.log("pv.me has loaded correctly")
}
//#region custom modal
class PvmeRulesModal extends pv.components_pv_popup_pv_popup {
constructor() {
@ -109,4 +108,23 @@
g.appendChild(a);
}
//#endregion pvme rules
})();
// change title
(() => {
const pv = window.PvInternals;
document.querySelector("pv-room").updateBrowserTab = function () {
if(pv.services_client.room.id) {
if(pv.services_client.isConnected()) {
document.title = `pv.me - ${pv.services_client.room.id} (${1 + pv.services_client.users.length})`
} else {
document.title = `pv.me - ${pv.services_client.room.id}`
}
} else {
document.title = "pv.me"
}
}
document.querySelector("body > pv-header > div.left > div.pianoverse > span").innerText = "pv.me"
})();

BIN
icons/dark-144.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
icons/light-144.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

BIN
icons/light-16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 B

BIN
icons/light-32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 695 B