Skip to content

Instantly share code, notes, and snippets.

View syoichi's full-sized avatar

Syoichi Tsuyuhara syoichi

View GitHub Profile
@syoichi
syoichi / togetter_list_owner_post.user.js
Created February 9, 2011 23:50 — forked from otsune/togetter_list_owner_post.user.js
仕様変更に対応した。ツイートが多い場合は、誤解防止の為、「残りを読む」でツイートを全て読み込まないと表示されないようにした。
// ==UserScript==
// @id Togetter List Owner Post Counter
// @name Togetter List Owner Post Counter
// @namespace http://d.hatena.ne.jp/Pasta-K
// @author Pasta-K
// @version 0.0.2.20110805190818
// @description http://d.hatena.ne.jp/Pasta-K/20100321/1269164746
// @include http://togetter.com/li/*
// @run-at document-end
// @priority 0
@syoichi
syoichi / googlefilter.user.js
Created February 16, 2011 06:37 — forked from fuba/googlefilter.user.js
Googleアカウントにログインしていないと動作しなかった問題を修正した。また、コードを書き直した。AutoPagerize 0.0.58(GM)・0.6.6(Fx)・0.2.7(Cr)、AutoPatchWork 1.8.1に対応。Firefox 3.6.13(Greasemonkey 0.9.1)、Chrome 9.0.597.98で動作を確認した。
// ==UserScript==
// @name Google Filter
// @namespace hirak99
// @description Filters out search entries from specific sites from Google
// @include http://www.google.com/search*
// @include http://www.google.co.jp/search*
// @include http://www.google.co.uk/search*
// @include http://www.google.co.in/search*
// @version 2.0 - fixed for new google on 25 Oct, 2009
// ==/UserScript==
@syoichi
syoichi / tate.user.js
Created March 19, 2011 14:44 — forked from cho45/screen-capture.png
自分の環境(Windows XP, 12.0.707.0 canary)だと縦書きにならなかったり、User Scriptを読み込んだ時に、headの内容が何故か読み込まれていない場合があったので修正した。 追記:江添さんのChrome拡張版: http://j.mp/euuSQl
// ==UserScript==
// @name 縦書き
// @namespace http://lowreal.net/
// @include http://www.aozora.gr.jp/cards/*/files/*.html
// ==/UserScript==
var b = document.body;
document.head.innerHTML += '<style type="text/css"> html { background: #222; } body { font-family: "@MS 明朝"; font-size: 14pt; line-height: 1.66 !important; color: #090909; background: #FFF5ED; padding: 2em; -webkit-writing-mode: vertical-rl; writing-mode: vertical-rl; overflow-y: hidden; max-height: 40em; text-align: justify; box-shadow: 0 0 1em 0 rgba(0, 0, 0, 0.9); margin: 8px !important; } </style>';
@syoichi
syoichi / nicovideo Thumbinfo popup.user.js
Created March 21, 2011 17:54
Firefoxの拡張であるGreasemonkeyのUser Script、nicovideo Thumbinfo popupを、Google Chrome版GreasemonkeyとなるNinjaKit上で最低限動作するように修正した。
@@ -6,9 +6,8 @@
// @exclude http://ext.nicovideo.jp/thumb/*
// @exclude http://ext.nicovideo.jp/thumb_mylist/*
// @exclude http://ext.nicovideo.jp/thumb_community/*
// @exclude http://ichiba.nicovideo.jp/parts/*
-// @resource style http://mfp.xrea.jp/misc/greasemonkey/nicovideoThumbinfoPopup/style.css
// ==/UserScript==
// =========================================
@syoichi
syoichi / addeditlinkontumblr.user.js
Created April 21, 2011 04:27 — forked from taizooo/addeditlinkontumblr.user.js
Firefox 4.0上のGreasemonkey 0.9.2、Scriptish 0.1において、AutoPagerize(拡張版0.7.2、User Script版0.0.58)で継ぎ足されたページで動作していなかったので修正した。また、Chrome 10.0.648.205上のAutoPagerize 0.2.9、AutoPatchWork 1.8.1でも動作するようにした。 ref. gist.github.com/838690
// ==UserScript==
// @name add edit link on tumblr
// @namespace http://d.hatena.ne.jp/taizooo/
// @include http://*.tumblr.com/*
// @exclude http://www.tumblr.com/*
// ==/UserScript==
var d = document,
b = d.body,
range = d.createRange(),
@syoichi
syoichi / ldr_favicon_hack.user.js
Created May 4, 2011 07:14 — forked from azu/ldr favicon hack.user.js
Firefox 4.0.1上のGreasemonkey 0.9.3、Scriptish 0.1で動作を確認した。Chrome 11.0.696.60ではfaviconを置き換えられないようで動作せず。
// ==UserScript==
// @name ldr favicon hack
// @namespace http://d.hatena.ne.jp/javascripter/
// @include http://reader.livedoor.com/reader/
// ==/UserScript==
document.getElementById('total_unread_count').addEventListener('DOMAttrModified', function () {
var canvas = document.createElement('canvas'),
ctx = canvas.getContext('2d'),
unread = unsafeWindow.subs.model.get_unread_count().toString(),
@syoichi
syoichi / removeAccesskey.user.js
Created May 9, 2011 13:32 — forked from esperia/removeAccesskey.user.js
Firefox 4.0.1上のGreasemonkey 0.9.3、Scriptish 0.1、Chromium 11.0.696.57で動作を確認した。
// ==UserScript==
// @name AutoRemove accesskey Attribute
// @namespace http://d.hatena.ne.jp/esperia/
// @description remove "accesskey" attribute for Vimperator
// @include http://*.wikipedia.org/*
// ==/UserScript==
//
/*
Array.prototype.forEach.call(document.querySelectorAll('[accesskey]'), function (v) {
@syoichi
syoichi / yahoojp2sankei.user.js
Created May 18, 2011 11:15 — forked from nobodyplace/yahoojp2sankei.user.js
Firefox 4.0.1上のGreasemonkey 0.9.3、Scriptish 0.1、Chrome 11.0.696.68で動作を確認した。
// ==UserScript==
// @name yahoojp2sankei
// @version 0.0.1
// @namespace http://nplll.com
// @description Yahoo!Japannの産経新聞へのリンクをイザ!からMSNに変更する
// @include http://headlines.yahoo.co.jp/*
// @updated 2011/05/18 11:00
// ==/UserScript==
// 0.0.1 - 2011/05/18 リリース
@syoichi
syoichi / diff_for_gist.user.js
Created June 11, 2011 09:21 — forked from os0x/diff_for_gist.user.js
最近のGistの仕様変更に暫定的に対応した。Chrome 12.0.742.91で動作を確認。Operaでは動作を確認していない。
// ==UserScript==
// @name Diff for gist.github for Chrome
// @namespace http://ss-o.net/
// @include https://gist.github.com/*
// ==/UserScript==
(function(){
var f = function($) {
var rev = $('#revisions li');
if(!rev.length || rev.length == 1) return;
@syoichi
syoichi / tumblr_queue_latest_link.user.js
Created June 11, 2011 17:13 — forked from nobodyplace/tumblr_queue_latest_link.user.js
insertAdjacentHTMLを使うようにした。Mozilla Firefox 15.0.1(Scriptish 0.1.7)、Chrome 21.0.1180.89で動作を確認した。