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
/** Wait until an specific element appears in the body section of HTML document | |
* Uses promises that are fulfilled when the element appears. | |
* | |
* Inspired by https://gist.githubusercontent.com/raw/2625891/waitForKeyElements.js | |
* | |
** How to use ** | |
* | |
* Define a callback_function that takes an HTML element as parameter | |
* callback_function = function (element) { | |
* do_something_with_found(element) |
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
#!/bin/sh | |
# Create a copy of an existing file with full history in just two commits | |
# All other scripts I found used at least three commits, often four | |
if [ ! $# -eq 2 ]; then | |
echo "Usage: git split <orig> <copy>" | |
echo "" | |
echo "Copy file <orig> to <copy> keeping both versions with full history" | |
exit 1 | |
fi |
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
[alias] | |
add-mod = !git add $(git status -uno -s | awk '{ print $2 }') && git status -uno -s | |
amend = commit --amend | |
ci = commit | |
co = checkout | |
di = diff | |
fix = fixup | |
st = status -s | |
meld = difftool -t meld | |
kdiff3 = difftool -t kdiff3 |
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
/* Just bigger text */ | |
.e4VJZ { | |
font-size: 1.3rem; | |
} | |
/* Input box */ | |
._2-OmZ { | |
font-size: 1.3rem; | |
} |
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 Duolingo Trim tree | |
// @namespace 9a84a9d7b3fef7de9d2fd7155dcd794c | |
// @description Hides all golden skills with a button. | |
// @author Arek Olek | |
// @match https://www.duolingo.com/* | |
// @icon https://raw.githubusercontent.com/camiloaa/duolingotreeenhancer/master/duolingo.png | |
// @grant none | |
// @updateURL https://gist.github.com/camiloaa/6b902c11f7ab44a4c3ef/raw/Duolingo_Trim_tree.user.js | |
// @downloadURL https://gist.github.com/camiloaa/6b902c11f7ab44a4c3ef/raw/Duolingo_Trim_tree.user.js |
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
function simulate(element, eventName) | |
{ | |
var options = extend(defaultOptions, arguments[2] || {}); | |
var oEvent, eventType = null; | |
for (var name in eventMatchers) | |
{ | |
if (eventMatchers[name].test(eventName)) { eventType = name; break; } | |
} |
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 LingoGoogleTTS | |
//@version 1.2 | |
//@description Use Google TTS for Duolingo | |
//@match https://www.duolingo.com/* | |
//@match http://www.duolingo.com/* | |
//@grant none | |
//==/UserScript== | |
function googleTTSLang(targetLang) { |