Created
July 24, 2014 12:37
-
-
Save fasiha/ec2f094cf0c4ce76b649 to your computer and use it in GitHub Desktop.
Disables the Timer on watering & gardening levels in Memrise.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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