adjustFontSize() {
		let slide = _.currentSlide;

		if (!slide || document.body.matches(".show-thumbnails") || slide.matches(".dont-resize")) {
			return;
		}

		let cs = getComputedStyle(slide);

		if (cs.getPropertyValue("--dont-resize") || cs.getPropertyValue("--font-sizing")?.trim() === "fixed" || cs.overflow === "hidden" || cs.overflow === "clip") {
			return;
		}

		slide.style.fontSize = "";

		if (slide.scrollHeight <= innerHeight && slide.scrollWidth <= innerWidth) {
			return;
		}

		let size = parseInt(getComputedStyle(slide).fontSize);
		let prev = {scrollHeight: slide.scrollHeight, scrollWidth: slide.scrollWidth};
		let limit = 0;

		for (
			let factor = size / parseInt(getComputedStyle(document.body).fontSize);
			(slide.scrollHeight > innerHeight || slide.scrollWidth > innerWidth) && factor >= 1;
			factor -= .1
		) {
			slide.style.fontSize = factor * 100 + "%";

			if (prev && prev.scrollHeight <= slide.scrollHeight && prev.scrollWidth <= slide.scrollWidth) {
				// Reducing font-size is having no effect, abort mission after a few more tries
				if (++limit > 5) {
					break;
				}
			}
			else {
				limit = 0;
				prev = null;
			}
		}
	}
Go to a specific item in the current slide
@param {number} which 1-based index of the item to go to (0 means no items are current, just the slide itself)