Skip to content

Instantly share code, notes, and snippets.

repeat_key(key, wait) {
ToolTip, %A_ThisFunc% %key% (ESC to exit)
MouseGetPos, sx, sy
escape := 0
Loop {
MouseGetPos, mx, my
if (sx <> mx || sy <> my)
break
Send, %key%
i := 0
@nkmrgk
nkmrgk / hatena_bookmark_entry.css
Created March 22, 2013 06:08
User style css for Hatena bookmark entry page.
@-moz-document url-prefix("http://b.hatena.ne.jp/entry/"), url-prefix("http://b.hatena.ne.jp/entry?eid=") {
/* Quoted from http://tpex.hateblo.jp/entry/b-hatena-user-css */
/*タグ*/
.tags a.user-tag,
ul.entry-data li.tag a,
ul.entry-meta li.tag a { background: none !important; float: none !important; color: green !important; margin: 0!important; padding: 0 6px 0 0 !important; font-size: 100% !important; }
.tags a.user-tag:before,
ul.entry-data li.tag a:before,
#!/usr/bin/perl
use strict;
use warnings;
use WebService::Google::Reader;
my $feed_uri = 'http://search.cpan.org/uploads.rdf';
my $reader = WebService::Google::Reader->new(
username => '',
password => '',
);
@nkmrgk
nkmrgk / simple_reach_killer.user.js
Created March 16, 2012 05:52
Simple Reach Killer
// ==UserScript==
// @name Simple Reach Killer
// @namespace http://nkmrgk.tumblr.com/
// @include *
// ==/UserScript==
function removeTags () {
var ng = /simplereach/;
var tag, tags = document.getElementsByTagName('div');
var i = tags.length;
@nkmrgk
nkmrgk / googleget.pl
Created March 1, 2012 20:59
Downloader for Google
#!/usr/bin/perl
#
# googleget.pl - Downloader for Google
# * Export Google Bookmarks
# $ googleget.pl "https://www.google.com/bookmarks/bookmarks.html?hl=ja"
# * Export Google Reader Subscription
# $ googleget.pl "http://www.google.com/reader/subscriptions/export?hl=en"
#
use strict;
use warnings;
@nkmrgk
nkmrgk / googlehistory.pl
Created February 29, 2012 16:51
Downloader for Google history
#!/usr/bin/perl
#
# googlehistory.pl - Downloader for Google history
#
use strict;
use warnings;
use Encode;
use utf8;
use URI;
use HTTP::Cookies;
@nkmrgk
nkmrgk / Google Reader Compact.user.js
Created November 3, 2011 03:56
Google Reader Compact
// ==UserScript==
// @name Google Reader Compact
// @namespace http://nkmrgk.tumblr.com/
// @description Hide/show search bar on the Google Reader
// @include http://www.google.com/reader/view/*
// @include http://www.google.co.jp/reader/view/*
// @include https://www.google.com/reader/view/*
// @include https://www.google.co.jp/reader/view/*
// @version 1.2
// ==/UserScript==
@nkmrgk
nkmrgk / google_instant_previews_killer.user.js
Created October 6, 2011 06:02
Google Instant Previews Killer for Greasemonkey
// ==UserScript==
// @name Google Instant Previews Killer
// @namespace http://nkmrgk.tumblr.com/
// @include http://*.google.*/*
// @version 1.0.0
// ==/UserScript==
(function(){
var d=window.document;
d.documentElement.appendChild(d.createElement('style'));
@nkmrgk
nkmrgk / mp4tomp3.bat
Created August 12, 2011 03:24
convert mp4 to mp3
@echo off
setlocal
set FFMPEG=ffmpeg.exe
set LAME=lame.exe
set touch=touch.exe
if "%1"=="" echo usage: mp4tomp3 {directory} && goto err
if not exist %1 echo %1: Not found. && goto err
pushd %1
@nkmrgk
nkmrgk / showmorenotes.user.js
Created August 4, 2011 04:32
Load next notes on tumblr
// ==UserScript==
// @name Show more notes
// @namespace http://nkmrgk.tumblr.com/
// @description Load next notes on tumblr
// @include http://*.tumblr.com/post/*
// ==/UserScript==
(function() {
var is_in_view = function(elem) {
// ref: http://d.hatena.ne.jp/edvakf/20100205/1265338487
var rect = elem.getBoundingClientRect();