Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name ldr-view-progress
// @namespace http://basyura.org
// @include http://reader.livedoor.com/reader/
// ==/UserScript==
//
const ONE_HOUR = 60 * 60 * 1000;
const ONE_MINUTE = 60 * 1000;
const TIMER = 10000;
// ==UserScript==
// @name ldr-view-progress
// @namespace http://basyura.org
// @include http://reader.livedoor.com/reader/
// ==/UserScript==
//
(function(){
const ONE_HOUR = 60 * 60 * 1000;
const ONE_MINUTE = 60 * 1000;
@basyura
basyura / earthquake-growler.rb
Created March 16, 2011 07:24
earthquake-growler.rb
#!ruby
#-*- coding: utf-8 -*-
require 'ruby-growl'
require 'rss'
g = Growl.new 'localhost', 'ruby-growl', ['ruby-growl Notification']
g.notify 'ruby-growl Notification', 'earthquake', 'start'
uri = 'http://tenki.jp/component/static_api/rss/earthquake/recent_entries_by_day.xml'
@basyura
basyura / gist:1082597
Created July 14, 2011 14:50
timer その 1
<html>
<head>
<script>
var timer_ = null;
var start_ = null;
var background_ = null;
function initialize() {
background_ = document.body.background;
}
function start() {
@basyura
basyura / ldr_key.user.js
Created July 29, 2011 04:07
livedoor reader - key change
// ==UserScript==
// @name ldr_key
// @namespace basyura.org
// @include http://reader.livedoor.com/reader/*
// ==/UserScript==
(function(){
var w = unsafeWindow;
var _onload = w.onload;
var onload = function() { with(w) {
@basyura
basyura / hide_google_toolbar.user.js
Created August 4, 2011 01:19
hide google toolbar's unnecessary items.
// ==UserScript==
// @name google toolbar
// @namespace basyura.org
// @include https://www.google.com/*
// @include http://www.google.co.jp/*
// @include http://translate.google.co.jp/*
// ==/UserScript==
(function () {
function $(id) {
@basyura
basyura / google_calendar_style.user.js
Created August 9, 2011 00:54
google calendar style
// ==UserScript==
// @name google calendar hide search bar
// @namespace yahoo_redirector@basyura.org
// @include https://www.google.com/calendar/*
// ==/UserScript==
(function() {
function $(id) {
return document.getElementById(id);
}
var gbz = $('gbz');
@basyura
basyura / 2ch_sender.user.js
Created September 8, 2011 04:31
2ch sender
// ==UserScript==
// @name 2chsend
// @namespace 2chsend@basyura.org
// @include http://2ch.xn--o9j0bk.gaasuu.com/entry/*
// ==/UserScript==
var a = document.evaluate("//div[@class='yui-g entry-full']/div/h2/a" ,
document ,
null ,
XPathResult.FIRST_ORDERED_NODE_TYPE ,
null).singleNodeValue;
@basyura
basyura / javadoc_incremental_search.user.js
Created September 8, 2011 04:33
javadoc_incremental_search
// ==UserScript==
// @name Javadoc Incremental Search
// @namespace http://basyura.org
// @description Incremental search for Javadoc Class names.
// @include */allclasses-frame.html
// ==/UserScript==
//
// version 0.1
//
// original :
@basyura
basyura / textile.vim
Created September 15, 2011 07:10
textile's outline
"=============================================================================
"
" outline for textile
"
" Licensed under the MIT license:
" http://www.opensource.org/licenses/mit-license.php
"
"=============================================================================
function! unite#sources#outline#defaults#textile#outline_info()