Skip to content

Instantly share code, notes, and snippets.

@satyr
satyr / mondradeckfromurl.user.js
Created June 7, 2012 15:54
mondradeckfromurl
// ==UserScript==
// @name mondradeckfromurl
// @description Imports deck URL into the deck editor.
// @match http://w001.monsterdragon.jp/deck/edit/index?*
// @author satyr
// @version 0.2
// ==/UserScript==
var buttons, wrap, name, action;
buttons = {
'Import URL': function(){
@satyr
satyr / mondraroomadjust.user.js
Created June 6, 2012 01:51
mondraroomadjust
// ==UserScript==
// @name mondraroomadjust
// @description Auto-scrolls the room SWF to top.
// @match http://w001.monsterdragon.jp/room/index
// @author satyr
// @version 0.1
// ==/UserScript==
document.querySelector('#monster-map-swf-external').scrollIntoView();
@satyr
satyr / mondrasummonshistorycsv.user.js
Created February 23, 2012 16:26
mondrasummonshistorycsv
// ==UserScript==
// @name mondrasummonshistorycsv
// @description Collects "Gacha" history as CSV.
// @namespace http://satyr.github.com
// @author satyr
// @match http://w001.monsterdragon.jp/summons/history
// @run-at document-end
// ==/UserScript==
var base, btn;
base = document.getElementById('monster-base-table');
@satyr
satyr / mondraguildhelper.user.js
Created February 11, 2012 04:00
mondraguildhelper
// ==UserScript==
// @name mondraguildhelper
// @description Links each member to his/her ranking.
// @match http://w001.monsterdragon.jp/guild/index*
// @author satyr
// @version 0.5
// ==/UserScript==
var i$, ref$, len$, span, name;
for (i$ = 0, len$ = (ref$ = document.querySelectorAll('.ui-monster-profile')).length; i$ < len$; ++i$) {
span = ref$[i$];
@satyr
satyr / mondraccept.user.js
Created January 22, 2012 11:22
mondraccept
// ==UserScript==
// @name mondraccept
// @description Auto-accepts reports.
// @match http://w001.monsterdragon.jp/report/detail?id=*
// @author satyr
// @version 1.3
// ==/UserScript==
setTimeout(function(){
var get, ev;
get = document.querySelector('#monster-report-get');
@satyr
satyr / goo_lyrics_fix.user.js
Created January 21, 2012 20:58
goo lyrics fix
// ==UserScript==
// @id goo_lyrics_fix
// @name goo lyrics fix
// @version 0
// @namespace http://satyr.github.com
// @author satyr
// @description Unrestricts the UI.
// @include http://music.goo.ne.jp/lyric/*/index.html
// @run-at document-end
// ==/UserScript==
<!DOCTYPE html>
<form method=POST target=result
action=http://w001.monsterdragon.jp/connect/web/login/flash/summons/do>
<input type=hidden name=summon_id value=1>
<input type=submit>
<iframe name=result style=width:99%></iframe>
@satyr
satyr / mdmu_satyr.user.js
Created December 9, 2011 08:41
mondraminiurl
/*
// ==UserScript==
// @id mdmu_satyr
// @name mondraminiurl
// @version 0.1
// @namespace http://satyr.github.com
// @author satyr
// @description Minifies the deck URL, copying it if possible.
// @include http://w001.monsterdragon.jp/deck/index*
// ==/UserScript==
{Fun, Unary} = Coco.ast
uplus = -> it instanceof Unary and it.op is \+
<- Coco.on \compile
<- it.ast.traverseChildren ..., true
# +->
if uplus it and (fun = it.it) instanceof Fun
delete it[k] for k in it
fun = it <<< {fun.__proto__, ...fun}
@satyr
satyr / gist:1080268
Created July 13, 2011 13:11 — forked from zakki/gist:1080130
FizzBuzz Scala 70B
for(n<-0 to 99)println(Seq(n+1,"Buzz","Fizz","FizzBuzz")(n%3&2|n%5/4))