Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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 / 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'
// ==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;
// ==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;