Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name domain color tab
// @desc Color-codes each tab by the domain of its content.
// @include main
// @compat Fx39+
// @author satyr
// @license X
// ==/UserScript==
{
let c = '8ace'
@satyr
satyr / obmint.uc.js
Last active December 16, 2015 21:49
// ==UserScript==
// @name (always) Open Bookmarks in New Tabs
// @compat Firefox 20+
// @author satyr
// @license X
// @include main
// ==/UserScript==
PlacesUIUtils.openNodeWithEvent =
function PUIU_openNodeWithEventInNewTab(node, event, view) {
var where =
N = 99
code = ''
# massive implicit call chain
code += 'f f ' * N + \\n
# massive soak access chain
code += 'o?.' * N + 'o\n'
# deep-nested blocks
code += "if #i\n" + ' ' * i for i from 1 to N
code += i + \\n
@satyr
satyr / mondrahunthelper.user.js
Created June 17, 2012 01:51
mondrahunthelper
// ==UserScript==
// @name mondrahunthelper
// @description Selects latest redundant normal/bronze cards for treasure hunt.
// @match http://w001.monsterdragon.jp/treasure_hunt/c*
// @author satyr
// @version 0.4
// ==/UserScript==
var form, bttn, div, action, __i, __ref, __len;
if (location.pathname === '/treasure_hunt/confirm') {
form = document.forms.treasure_card_do;
@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==