Skip to content

Instantly share code, notes, and snippets.

View syoichi's full-sized avatar

Syoichi Tsuyuhara syoichi

View GitHub Profile
@syoichi
syoichi / add_hatenab_keybind.user.js
Created June 21, 2012 02:35 — forked from saitamanodoruji/add_hatenab_keybind.user.js
「Ctrl + H」などで実行されないように変更した。
// ==UserScript==
// @id Add HatenaB keybind
// @name Add HatenaB keybind
// @namespace http://b.hatena.ne.jp/saitamanodoruji
// @author saitamanodoruji
// @version 0.0.2
// @update 2012-06-21T11:38:32.981Z(GMT+09:00)
// @description はてなブックマークにショートカットキーを追加する。
// @include http://b.hatena.ne.jp/*
// @run-at document-end
// ==UserScript==
// @id Add HatenaB keybind
// @name Add HatenaB keybind
// @version 0.0.1
// @namespace http://b.hatena.ne.jp/saitamanodoruji
// @author saitamanodoruji
// @description はてなブックマークにショートカットキーを追加する
// @include http://b.hatena.ne.jp/*
// @run-at document-end
// ==/UserScript==
@syoichi
syoichi / textarea-character-count.user.js
Created June 17, 2012 06:31 — forked from motemen/textarea-character-count.user.js
エラーの発生、インジケーターの表示がずれるのを修正した。また、arguments.calleeとsetInterval、getBoundingClientRectを使わないようにし、アニメーションはCSS Transitionsで行うようにした。さらに、原稿用紙への切り替えはインジケーターのクリックでできるように変更した。そして、文字数のカウントをサロゲートペアに対応させた。
// ==UserScript==
// @id textarea character count
// @name textarea character count
// @namespace http://tokyoenvious.net/
// @author motemen
// @version 0.0.1
// @update 2012-06-17T15:44:53.818Z(GMT+09:00)
// @description テキストエリアの文字数をカウントする。
// @include http://*
// @include https://*
@syoichi
syoichi / read.crx_2.user.css
Created June 1, 2012 06:57
read.crx 2 v0.67用のUser CSS
/* License: Public Domain
* 注意: 設定の「レイアウト」を「2ペイン」にする必要あり
*/
/* 板一覧メニューを左端でのマウスオーバーで表示するように */
#left_pane {
z-index: 2 !important;
}
#left_pane:not(:hover) {
@syoichi
syoichi / tumblr_dashboard_bugfix.user.js
Created May 7, 2012 10:20
fix 2 bugs on Tumblr Dashboard.
// ==UserScript==
// @id Tumblr Dashboard bugfix
// @name Tumblr Dashboard bugfix
// @namespace http://syoichi.tumblr.com/
// @author syoichi <tsuyuhara-syoichi@hotmail.co.jp>
// @version 0.0.3
// @update 2012-06-24T16:47:26.875Z(GMT+09:00)
// @description fix 2 bugs on Tumblr Dashboard.
// @include http://www.tumblr.com/dashboard*
// @include http://www.tumblr.com/show/*
// ==UserScript==
// @name FreeStyleWiki PermLinker
// @namespace http://www.suchi.org/
// @version 0.2
// @description add permlink dagger
// ==/UserScript==
Array.prototype.forEach.call(
document.querySelectorAll('h2 > a[name], h3 > a[name], h4 > a[name]'),
function addAnchor(link) {
@syoichi
syoichi / reblogmachineopendoor.user.js
Created March 16, 2012 19:10 — forked from taizooo/reblogMachineOpenDoor.user.js
reblog machine で "o" キーで tumblelog を、"r"キーで reblog ページを開く
// ==UserScript==
// @id reblogMachineOpenDoor
// @name reblogMachineOpenDoor
// @namespace http://taizooo.tumblr.com/
// @author taizooo
// @version 0.0.2
// @update 2012-03-17T04:11:26.895Z(GMT+09:00)
// @description reblog machine で "o" キーで tumblelog を、"r"キーで reblog ページを開く
// @include http://reblog.machine.mamemomonga.com/dashboard*
// @run-at document-end
@syoichi
syoichi / cssonoff.js
Created March 15, 2012 01:03 — forked from taizooo/cssonoff.js
対youpy.css cssonoff
/*jslint browser: true, maxerr: 50, maxlen: 80, indent: 4*/
// Edition 2012-03-07
function cssOnOff(disabled) {
'use strict';
Array.prototype.forEach.call(
document.styleSheets,
function disabledSheet(sheet) {
sheet.disabled = disabled;
@syoichi
syoichi / drawr_home_illust_larger.user.js
Created February 27, 2012 04:39 — forked from saitamanodoruji/drawr_home_illust_larger.user.js
継ぎ足した次のページでイラストのブックマーク(fav)をクリックした時、現在のページを開きなおしてしまう不具合を修正した。その他、スタイルの微修正、AutoPatchWorkへの対応などを行った。
// ==UserScript==
// @id drawr home illust larger
// @name drawr home illust larger
// @namespace http://drawr.net/saitamanodoruji
// @author saitamanodoruji
// @version 0.0.4
// @update 2012-02-27T13:45:55.783Z(GMT+09:00)
// @description britney spears
// @include http://drawr.net/home.php*
// @include http://drawr.net/new.php*
@syoichi
syoichi / tumblr_dashboard_expand_inline_images.user.js
Created February 26, 2012 05:24 — forked from saitamanodoruji/tumblr_dashboard_auto_click_inline_external_images.user.js
ポストに含まれている全ての外部にある画像でクリックイベントを発生させている為に、外部にある画像が偶数個の場合に画像が拡大されない不具合を修正した。また、Textポストの「+ Upload photo」によって貼りつけたインライン画像の拡大にも対応させた。
// ==UserScript==
// @id Tumblr Dashboard Expand Inline Images
// @name Tumblr Dashboard Expand Inline Images
// @namespace http://saitamanodoruji.tumblr.com/
// @author saitamanodoruji
// @version 0.0.2
// @update 2012-02-26T14:32:25.242Z(GMT+09:00)
// @description expand inline images of post in Dashboard.
// @include http://www.tumblr.com/dashboard*
// @include http://www.tumblr.com/show/*