Skip to content

Instantly share code, notes, and snippets.

@fasiha
Created July 24, 2014 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fasiha/ec2f094cf0c4ce76b649 to your computer and use it in GitHub Desktop.
Save fasiha/ec2f094cf0c4ce76b649 to your computer and use it in GitHub Desktop.
Disables the Timer on watering & gardening levels in Memrise.com
// ==UserScript==
// @name Memrise Timer Disabler
// @description Disables the Timer on watering & gardening levels in Memrise.com
// @match http://www.memrise.com/course/*/garden/*
// @version 0.1.1
// @updateURL https://userscripts.org/scripts/source/174879.meta.js
// @downloadURL https://userscripts.org/scripts/source/174879.user.js
// @grant none
// ==/UserScript==
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);
var link = window.document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = 'data:text/css,' +
// Selectors start here
'.typing-wrapper, ol.choices { margin-top: 34em !important; }';
document.getElementsByTagName("HEAD")[0].appendChild(link);
};
injectWithJQ(onLoad);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment