Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.