Your turn to move notification

Is there any way to have a notification when it’s your turn to move in one of the correspondence games?

Maybe a sound when the counter is above certain number.

Any ideas?

2 Likes

Other than the e-mail that it’s your turn (which I have disabled anyway)?

Something like the sound settings we have for “game started/ byoyomi/ player disconnected” etc?

2 Likes

haha, I’m imagining a notification on the website now for each of my 115 correspondence games or whatever number it is at now.

4 Likes

Yeah, just some beep to indicate I have moves to make.

I often have OGS tab open and can respond quickly if only I got a memo that I can play.

I understand one could make a tapermonkey script to do exactly what I want but it’ll take me forever to figure out how to do it.

4 Likes

This the way I do it.


One window in front and the OGS page to the right mostly covered by the other window. I can see the move indicator and do other things at the same time.

4 Likes

Yeah, that’s similar to the way I did it before. But it requires active monitoring.

Something like this. What an ugly bastard. But it sort of works.

5 Likes

If I’m not mistaken, somebody already made a chrome or firefox extension (maybe both?) Called OGS Notifier which unless I’m dreadfully mistaken does exactly what you’re after?

5 Likes

That’s great to know people already thought of this.

I like my frog notifier already tho, so I’m going to be building it up.

4 Likes

Thanks for making it a screenshot, so that we can manually type it over if we also want it :slight_smile:

Which I’m totally doing, by the way, let me hack myself a way to get a noticeable sound when I’m 30 minutes away from timing out my correspondence games…

6 Likes

Ok. Here’s a script. I don’t know JavaScript so this is probably not that great coding. It croaks on each increment and once an hour if it’s above base level, and only if it’s on home page.

// ==UserScript==
// @name         New Userscript
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://online-go.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var base_level = 7;
    var current_level = base_level;
    var croak_audio = new Audio("https://notificationsounds.com/soundfiles/74071a673307ca7459bcf75fbd024e09/file-f0_bullfrog.mp3");

    function croak() {
        croak_audio.play();
    }

    function get_value() {
        var location = window.location.href
        var elements = $('.active.count span')
        if (elements.length && (location == "https://online-go.com/overview" || location == "https://online-go.com/")) {
            return parseInt(elements[0].textContent);
        } else {
            return -1;
        }
    }

    function increment_checker() {
        setTimeout(increment_checker, 5*1000);
        var v = get_value();
        if (v < 0) {
            return;
        }
        if (v > current_level) {
            croak();
        }
        current_level = v;
    }

    function base_checker() {
        setTimeout(base_checker, 60*60*1000);
        var v = get_value();
        if (v < 0) {
            return;
        }
        if (v > base_level) {
            croak();
        }
    }

    setTimeout(increment_checker, 60*1000);
    setTimeout(base_checker, 60*60*1000);
})();

I run it on separate computer I have turned on most of the time. So I can hear croaks at 3 am.

5 Likes

Am I allowed to copyright strike them for using bond?

1 Like

Explain yourself.

That was just a joke.

1 Like