Skip to content

Instantly share code, notes, and snippets.

@Milly
Milly / README.html
Last active August 29, 2015 13:59
bitly bitmarklet fix.
<html>
<body>
Bookmarklet:
<a href="javascript:(function(d,a,b,s)%7Bif(s=d.getElementById(b))%7Bs.parentNode.removeChild(s);alert(%22bitly%20closed%22);return;%7Ds=d.createElement(%22script%22);s%5Ba%5D(%22id%22,%22bitmark_js%22);s%5Ba%5D(%22type%22,%22text/javascript%22);s%5Ba%5D(%22src%22,%22//bitly.com/a/bitmarklet.js%22);d.addEventListener(%22load%22,function(e,f)%7Bf=d.getElementById(b);if(e.target===f)f.style.height=f.style.width=%22100%25%22;%7D,true);(d.body%7C%7Cd.getElementsByTagName(%22head%22)%5B0%5D).appendChild(s);%7D)(top.document,%22setAttribute%22,%22bitmark_yoself_fool%22);">&#x271a; bitmark</a>
</body>
@Milly
Milly / cman.sh
Created January 16, 2015 10:06
color man command `cman` (16 or 256 colors)
# vim: set ft=sh:
function cman () {
local e=$'\e['
local highlight='1:31'
local underline='4;36'
local search='1;37;43'
[[ "${TERM}" == "${TERM/256}" ]] || {
highlight='1;38;05;166'
underline='4;38;05;75'
@Milly
Milly / make
Created January 27, 2009 04:19
autorun make or ant
#!/bin/sh
MAKECMD=/usr/bin/make
# ANTCMD=/usr/local/bin/ant
ANTCMD=/cygdrive/c/dev/ant/bin/ant
FILTER="/usr/bin/nkf -Swud"
if [ -r Makefile -o -r makefile ]; then
"$MAKECMD" "$@"
elif [ -r build.xml ]; then
@Milly
Milly / pixiv_ajaxer.user.js
Last active September 3, 2015 17:45
pixiv to dynamic greasemonkey script
// ==UserScript==
// @name pixiv ajaxer
// @namespace http://d.hatena.ne.jp/MillyC/
// @include http://www.pixiv.net/*
// @grant GM_addStyle
// @grant GM_xmlhttpRequest
// @author Milly
// @version 1.0.20130315
// ==/UserScript==
@Milly
Milly / commentout.vim
Created February 10, 2010 08:30
Mapping keys to commentout(\c) and uncomment(\u).
" Vim plugin file - commentout
"
" Last Change: 08 February 2008
" Maintainer: Milly
" Purpose: Mapping keys to commentout(\c) and uncomment(\u).
"=============================================================================
" Define "{{{1
if exists("loaded_commentout")
finish
endif
@Milly
Milly / highlight_spaces.vim
Created February 10, 2010 08:29
Add highlight for spaces.
" Vim plugin file - highlight_spaces
"
" Last Change: 08 February 2010
" Maintainer: Milly
" Purpose: Add highlight for spaces.
"=============================================================================
if exists("loaded_highlight_spaces")
finish
endif
@Milly
Milly / openurl.vim
Created February 10, 2010 08:42
[VIM] Open url or file with default viewer.
" Vim plugin file - openurl
"
" Last Change: 13 Mar 2013
" Maintainer: Milly
" Purpose: Open url or file with default viewer.
" Options:
" g:openurl_regex - URL match regex (default: empty)
" g:openurl_dos_path - Enable DOS path (default: 0)
" g:openurl_encoding - Character encoding for URL (default: auto detect)
" g:openurl_highlight - Highlight URL (default: 1)
@Milly
Milly / twitter_follow_button.js
Created March 16, 2010 15:01
Add follow button to Twitter time line
// ==UserScript==
// @name Twitter Follow Button
// @namespace http://d.hatena.ne.jp/MillyC/
// @description Add follow button
// @include http://twitter.com/*
// @exclude http://twitter.com/oauth_clients*
// @exclude http://twitter.com/oauth/*
// @exclude http://twitter.com/settings/*
// @version 0.1
// ==/UserScript==
@Milly
Milly / cocolo-clock.gg.xml
Created May 24, 2010 06:20
ブログ妖精ココロ Google Gadget
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="ココロ"
title_url="http://www.cocolog-nifty.com/cocolo/"
author="Milly"
author_link="http://d.hatena.ne.jp/MillyC/"
width="120"
height="220">
</ModulePrefs>
<UserPref name="character" display_name="キャラ" datatype="enum" default_value="">
@Milly
Milly / allunofficialnet_extend.user.js
Created June 25, 2010 14:38
allunofficial.net extender
// ==UserScript==
// @name allunofficial.net extender
// @namespace http://d.hatena.ne.jp/MillyC/
// @include http://allunofficial.net/trpg/action.php*
// @include http://allunofficial.net/trpg/arianrhod_pc_making.html
// ==/UserScript==
// Sortable skill table {{{1
if ('addLineSkill' in unsafeWindow) {