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'
const Name = 'check-twitter',
Twitter = 'http://twitter.com/',
Icon = Twitter +'favicon.ico',
Base = <div class={Name}><style><![CDATA[
${position:relative}
$ol {list-style:none; margin:0}
$li {font-size:92%; line-height:1.2em}
$ol, $li {padding:0.2em 0}
$a img {border:none}
$button {font:bold 100% "Consolas",monospace; padding:0; border-width:1px}
/*=skin=
@name elasty
@author satyr
@email murky.satyr@gmail.com
@homepage http://gist.github.com/80593
@h0mepage http://d.hatena.ne.jp/murky-satyr/20090319/elasty_ubiq_css
@license MIT
=/skin=*/
#fake-global-for-stylish {}
/*
=skin=
@name Simpli9uity
@author satyr
@license MPL/LGPL/GPL
@homepage http://gist.github.com/46130
@h0mepage http://d.hatena.ne.jp/murky-satyr
@basedOn (obviously) Simpliquity by Yatrik Solanki
=/skin=
*/
@satyr
satyr / twols.ubiq.js
Last active February 4, 2016 13:39
twitter tools
Cu.import("resource://ubiquity/modules/oauth.js")
const self = this,
H = Utils.escapeHtml,
Twitter = 'http://twitter.com/',
TWS = 'http://search.twitter.com/',
TWAPI = 'https://api.twitter.com/1.1/',
Yats = 'http://yats-data.com/yats/',
twicli = 'http://twicli.neocat.jp/',
Icon = 'chrome://ubiquity/skin/icons/twitter.ico',
Logo = '<a href='+ Twitter +' id=twlogo accesskey="/">'
@satyr
satyr / eijiro.ubiq.js
Last active February 4, 2016 13:26
英辞郞
const Name = 'eijiro', EOW = 'http://eow.alc.co.jp/',
Base = '<style>\
body {line-height:1.3}\
ul, ol {padding-left:1.2em}\
ul, ol, li {margin:0 0 0.2em}\
font {color:inherit}\
a img {border:none}\
.button {padding:0; border-width:1px; text-transform:uppercase}\
.button[disabled] {background-color:transparent; color:inherit}\
.button, #paging > a {font:bold 92% monospace}\
@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 =
@satyr
satyr / mondradelhelper.user.js
Created January 20, 2012 18:16
mondradelhelper
// ==UserScript==
// @name mondradelhelper
// @description Helps you delete redundant normal/bronze cards.
// @match http://w001.monsterdragon.jp/card/index
// @author satyr
// @version 0.2
// ==/UserScript==
var actions, header, target, action;
actions = {
Dups: function(){
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;