Memrise Timer Disabler

Disables the Timer on watering & gardening levels in Memrise.com

As of 2017-06-08. See the latest version.

// ==UserScript==
// @name           Memrise Timer Disabler
// @description    Disables the Timer on watering & gardening levels in Memrise.com
// @match          http://www.memrise.com/*
// @match          https://www.memrise.com/*
// @version        0.1.4
// @grant          none
// @namespace https://greasyfork.org/users/3656
// ==/UserScript==
// Forked from http://userscripts-mirror.org/scripts/show/174879
// Corrected @match

var onLoad = function($) {
  $("div.garden-timer div.txt").bind("DOMSubtreeModified", function() {
    MEMRISE.garden.timer.cancel();
  });
};

var injectWithJQ = function(f) {
    var script = document.createElement('script');
    script.textContent = '$(' + f.toString() + '($));';
    document.body.appendChild(script);
};
injectWithJQ(onLoad);