This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @match *://*/* | |
// ==/UserScript== | |
(function (anchors) { | |
for (var i = 0, l = anchors.length; i < l; i++) { | |
anchors[i].target = "_blank"; | |
} | |
})(document.querySelectorAll("a[href^='http']:not([href^='" + location.href + "'])")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name textarea character count | |
// @namespace http://tokyoenvious.net/ | |
// @include * | |
// ==/UserScript== | |
var Counter = {}; | |
Counter.modeIndex = 0; | |
Counter.MODES = [ 'simple', 'genko' ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 以下のコードをテキトウな 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 () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){ | |
/* | |
Adblock のフィルタを urlfilter.ini に変換する | |
ついてに広告カット CSS も作成 | |
https://adblock-plus-japanese-filter.googlecode.com/hg/abp_jp.txt で実行 | |
|| で始まる行は http, https の2行に、^ は "/*" に、$のある行はスルー。 | |
CSS は -moz-document を使っている部分があるので Opera では前半のみ利用可能 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:/*Zenkaku-Hankaku*/(function(doc){ | |
var zen = /[\u3000\uFFE5\uFF01-\uFF5E]/g; | |
var arr = ['contains(.,"\u3000")','contains(.,"\uFFE5")']; | |
for (var i = 0xFF01; i < 0xFF5E; ++i) { | |
arr.push('contains(.,"' + String.fromCharCode(i) + '")'); | |
} | |
var xpath = '//text()[(' + arr.join(' or ') + ') and not(ancestor::style) and not(ancestor::script)]'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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://* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name dotinstall auto play | |
// @description Youtube Player API使った(autoplay=1になってない)動画を自動再生のURLに置換する | |
// @include http://dotinstall.com/lessons/* | |
// ==/UserScript | |
/* 1クリックが面倒くさい… */ | |
window.addEventListener('load', function() { | |
var player = document.getElementById('youtube_api_player'); | |
if (player && player.src.indexOf('autoplay=1') == -1) player.src += '&autoplay=1'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clicktoplay.xml を chrome フォルダに保存。 | |
Stylish で使う場合はフルパスに直すこと。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// テキストが見つかったときに Find Toolbar をフラッシュするか。 | |
// 0: Find Toolbar は前から前からフラッシュしており、見つかったときにフラッシュしない | |
// 1: 見つかったときに Find Toolbarフラッシュする。 | |
user_pref("accessibility.typeaheadfind.flashBar", 0); | |
// 自動更新 | |
user_pref("app.update.auto", false); | |
// タブプレビュー機能 | |
user_pref("browser.ctrlTab.previews", true); |