Member-only story

How to click anywhere on the browser to play the audio on AnkiWeb

Marika Lam
3 min readSep 30, 2022

--

Step 1: Download this app Stay.

Step 2. Open the app then click “Write Script”

Step 3. The screen should look like below

Step 4. Replace the entire file with the below script

// ==UserScript==
// @name Click anywhere on browser to play sound
// @namespace https://stay.app/
// @version 0.1
// @description Template userscript created by Stay
// @author MKL
// @match *://*/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
setTimeout(
function () {
document.addEventListener('click', audioPlay);
function audioPlay() {
const audio = document.querySelector("audio");
if (audio.paused) {…

--

--

No responses yet