Last active
March 12, 2020 11:01
-
-
Save ursi/41284acc2ddb7afba93315195267923e to your computer and use it in GitHub Desktop.
Set Ellie's initial text
This file contains hidden or 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 Ellie Init | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0.0 | |
// @description Set Ellie's initial text | |
// @author Mason Mackaman | |
// @match https://ellie-app.com/new | |
// @grant none | |
// ==/UserScript== | |
'use strict'; | |
const init = | |
`Hello, World!`; | |
const i = | |
setInterval | |
( () => { | |
const editor = document.getElementById(`elm`); | |
if (editor !== null) { | |
clearInterval(i); | |
editor.editorValue = init; | |
} | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instructions
init
to whatever you want the initial text in Ellie to be