Big Jitsi Controls

Magnify & Highlight Jit.si & 8x8 Meeting controls to help the visually impaired

当前为 2022-06-05 提交的版本,查看 最新版本

// ==UserScript==
// @name         Big Jitsi Controls
// @namespace    https://greasyfork.org/en/users/922168-mark-zinzow
// @version      0.2
// @description  Magnify & Highlight Jit.si & 8x8 Meeting controls to help the visually impaired
// @author       You
// @match        https://meet.jit.si/*
// @match        https://8x8.vc/*
// @icon         https://greasyfork.s3.us-east-2.amazonaws.com/zhdewxpctuazcm6e6chymibnn6y1
// @license MIT
// @grant none
// @run-at document-end
// ==/UserScript==
/*jshint esversion: 6 */

setTimeout(makebig, 1000); //Wait to makes sure page js finished first
//document.getElementById("?").addEventListener("click",makebig);

function makebig() {
let ctrlsvgs = document.querySelectorAll("svg[height='22']"); //bottom row
for (let i = 0; i < ctrlsvgs.length; i++) {
  ctrlsvgs[i].style.height=66;
  ctrlsvgs[i].style.width=66;
  ctrlsvgs[i].style.fill="#FFF01F"; //Neon Yellow
  ctrlsvgs[i].addEventListener("click",makebig);
}
let tinysvgs = document.querySelectorAll("svg[height='9']");
for (let i = 0; i < tinysvgs.length; i++) {
  tinysvgs[i].style.height=18;
  tinysvgs[i].style.width=18;
  tinysvgs[i].style.fill="#39FF14"; //Neon Green
  }
}
// When the mic or video buttons are toggled, they revert to small size
//Kludge to keep this working, as I can't find the right eventlistener to trigger a redo...
for (let i = 0; i < 1800 ; i++) { //Keep checking the icons every 2 seconds for an hour
setTimeout(makebig, i*2000);
}