Skip to content

Instantly share code, notes, and snippets.

@teramako
teramako / gitio.js
Created November 14, 2011 07:00
[Vimperator]Git.io shortener
// 以下のコードをテキトウな RCファイル 等に書く
// RC ファイルに
// :cabbrev -javascript gitio userContenx.gitio()
userContext.gitio = function gitioShortener (aURL, aCode, aCallback) {
var xhr = new XMLHttpRequest,
form = new FormData;
xhr.open("POST", "http://git.io", !!aCallback);
if (aCallback) {
xhr.onreadystatechange = function () {
@motemen
motemen / textarea-character-count.user.js
Created August 23, 2011 02:15
Textarea Character Count
// ==UserScript==
// @name textarea character count
// @namespace http://tokyoenvious.net/
// @include *
// ==/UserScript==
var Counter = {};
Counter.modeIndex = 0;
Counter.MODES = [ 'simple', 'genko' ];
@ohnishiakira
ohnishiakira / force-external-link-on-new-tab.user.js
Created July 24, 2011 05:11
外部リンクを自動で新しいタブで開く
@hitode909
hitode909 / newmouse.user.js
Created October 3, 2010 19:12
newmouse.user.js
// ==UserScript==
// @name newmouse
// @namespace http://www.hatena.ne.jp/hitode909
// @include *
// ==UserScript==
var Nears = function(x, y) {
this.centerX = x;
this.centerY = y;
this.i = 0;
@Griever
Griever / CrossFireModoki.uc.js
Created July 9, 2010 09:24
Firefox で空間ナビゲーションを再現する uc.js
// ==UserScript==
// @name CrossFireModoki.uc.js
// @description Opera の空間ナビゲーションのまねごと
// @namespace http://d.hatena.ne.jp/Griever/
// @author Griever
// @license MIT License
// @compatibility Firefox 16
// @charset UTF-8
// @include main
// @version 0.0.1
@xulapp
xulapp / removeSelection.uc.js
Created April 30, 2010 05:03
removeSelection.uc.js
// ==UserScript==
// @name removeSelection.uc.js
// @description 選択範囲を削除
// @include main
// @compatibility Firefox
// @namespace http://twitter.com/xulapp
// @author xulapp
// @license MIT License
// @version 2010/04/30 14:00 +09:00
// ==/UserScript==
@Griever
Griever / OperaStyle_linkDragSelection.uc.js
Created April 17, 2010 09:00
Opera 風のリンクテキスト選択
// ==UserScript==
// @name OperaStyle_linkDragSelection.uc.js
// @author Griever
// @include main
// @include chrome://global/content/viewSource.xul
// @include chrome://global/content/viewPartialSource.xul
// @version 0.0.4
// @note 複数選択時の手抜きを修正
// @note リンクの mousedown イベントが起きない問題を修正
// @note その他微修正
@xulapp
xulapp / IMESign.uc.js
Created April 8, 2010 09:29
IMESign.uc.js
// ==UserScript==
// @name IMESign.uc.js
// @description changes background image of active textbox if IME state is open.
// @include *
// @compatibility Firefox 3.6+
// @namespace http://twitter.com/xulapp
// @author xulapp
// @license MIT License
// @version 2010/10/11 22:20 +09:00
// ==/UserScript==
//改変元:リンク画像を保存.s.js http://loda.jp/script/?id=203
/*
FireGesturesやKeyConfigなどに設定して実行するとページ内のjpegとpngをまとめて
zipにしてダウンロードする。
保存場所は決めうちか毎回ダイアログで指定
*/
(function () {
// 保存ディレクトリのパスがない場合は毎回ダイアログで決める
//var path = "C:\\Users\\azu\\Downloads"; // エスケープしたディレクトリのパス
var path = "";
// ==UserScript==
// @name ImageContentTypeFix
// @namespace http://d.hatena.ne.jp/Cherenkov/
// @include http://img.blogs.yahoo.co.jp/ybi/*
// @include http://ca.c.yimg.jp/*
// @include http://*.blogzine.jp/photos/*
// @description 画像のContent-Typeがtext/plainでも正しく表示させる。
// ==/UserScript==
(function(){