Created
August 24, 2012 07:23
-
-
Save saihoooooooo/3447066 to your computer and use it in GitHub Desktop.
greasemonkey coffeescript
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 coffeetest | |
// @namespace http://example.com/coffeetest | |
// @include *google.co.jp* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js | |
// @require http://jashkenas.github.com/coffee-script/extras/coffee-script.js | |
// @version 1 | |
// ==/UserScript== | |
eval(CoffeeScript.compile((<r> | |
# coffeescript from here ### | |
class Hip | |
constructor: -> | |
@usound = 'BURI!BURI!' | |
@hsound = 'BOO!' | |
unko: -> | |
console.log @usound | |
@ | |
he: -> | |
console.log @hsound | |
@ | |
class SuperHip extends Hip | |
constructor: -> | |
@usound = 'BURI!!!!!!BURI!!!!!!' | |
@hsound = 'BOO!!!!!!' | |
(new SuperHip()).he().unko() | |
# end of coffeescript #</r>).toString())); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From greasemonkey/greasemonkey#1529 (comment) :