Skip to content

Instantly share code, notes, and snippets.

@joech4n
Last active April 23, 2020 02:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save joech4n/09b272bf5f691bda225a to your computer and use it in GitHub Desktop.
Save joech4n/09b272bf5f691bda225a to your computer and use it in GitHub Desktop.
Template from Tampermonkey
// ==UserScript==
// @name New Coffee-Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description shows how to use coffeescript compiler
// @author You
// @require http://coffeescript.org/extras/coffee-script.js
// @match https://site.com
// ==/UserScript==
/* jshint ignore:start */
var inline_src = (<><![CDATA[
// Your CoffeeScript code here
]]></>).toString();
var compiled = this.CoffeeScript.compile(inline_src);
eval(compiled);
/* jshint ignore:end */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment