Skip to content

Instantly share code, notes, and snippets.

@ursi
Last active March 12, 2020 11:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ursi/41284acc2ddb7afba93315195267923e to your computer and use it in GitHub Desktop.
Save ursi/41284acc2ddb7afba93315195267923e to your computer and use it in GitHub Desktop.
Set Ellie's initial text
// ==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;
}
}
);
@ursi
Copy link
Author

ursi commented Mar 2, 2020

Instructions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment