Skip to content

Instantly share code, notes, and snippets.

View hotchpotch's full-sized avatar
🏠
Working from home

Yuichi Tateno (secon) hotchpotch

🏠
Working from home
View GitHub Profile
diff --git a/autopagerize.user.js b/autopagerize.user.js
index cf9fce9..6ae8532 100644
--- a/autopagerize.user.js
+++ b/autopagerize.user.js
@@ -5,6 +5,7 @@
// @include http://*
// @include https://*
// @exclude https://mail.google.com/*
+// @exclude http://b.hatena.ne.jp/*
// ==/UserScript==
// ==UserScript==
// @name Expand star
// @namespace http://rails2u.com/
// @include http://*
// @include https://*
// ==/UserScript==
location.href = "javascript:"+encodeURIComponent(uneval(function () {
(function (Global) {
// ==UserScript==
// @name hatena diarylist otsune mode
// @namespace http://rails2u.com/
// @description 観測範囲が狭い人向け
// @include http://d.hatena.ne.jp/diarylist
// ==/UserScript==
(function() {
const CONTAINER_XPATH = '//div/ul[@class="list-plain"]';
const LIST_XPATH = '//div/ul[@class="list-plain"]/li';
<html>
<head>
<title>url max langth</title>
<script type="text/javascript">
(function() {
var urlLen = location.href.length;
location.hash.match(/l=(\d+)/);
var len;
if (len = RegExp.$1) {
len = len | 0;
// ==UserScript==
// @name with hatebu search
// @namespace http://b.hatena.ne.jp/
// @description google 検索の画面で、はてブ検索へのナビゲーションを出します
// @include http://www.google.co.jp/search*
// @include http://www.google.com/search*
// ==/UserScript==
location.href = "javascript:"+encodeURIComponent(uneval(function () {
(function (Global) {
(function() {
var p = function(arg) {
Application.console.log(arg);
// liberator.log(arg);
}
const HatenaBookmark = {};
HatenaBookmark.Data = new Struct('url', 'title', 'comment', 'icon');
HatenaBookmark.Data.defaultValue('icon', function() bookmarks.getFavicon(this.url));
@hotchpotch
hotchpotch / gist:58516
Created February 5, 2009 02:59
Firefox のウィンドウにうつったら一度 Esc をぜったいおくる
Loop
{
WinWaitActive, ahk_class MozillaUIWindowClass
WinGetActiveTitle, Title
IfInString, Title, Vimperator, {
ControlSend,,{Esc}
}
WinWaitNotActive, ahk_class MozillaUIWindowClass
}
var PLUGIN_INFO =
<VimperatorPlugin>
<name>{NAME}</name>
<description>CPAN search</description>
<description lang="ja">CPAN モジュールを検索し、補完します。</description>
<minVersion>2.0</minVersion>
<maxVersion>2.0pre</maxVersion>
<updateURL>http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/cpan-search.js</updateURL>
<author mail="hotchpotch@gmail.com" homepage="http://tako3.net/http://d.hatena.ne.jp/secondlife/">Yuichi Tateno</author>
<license>MPL 1.1/GPL 2.0/LGPL 2.1</license>
(function() {
var p = function (arg) {
Application.console.log(arg);
// liberator.log(arg);
}
function $X (exp, context, resolver) {
context || (context = document);
var Doc = context.ownerDocument || context;