Skip to content

Instantly share code, notes, and snippets.

View yosmoc's full-sized avatar

Yoshihisa Mochihara yosmoc

  • IKEA IT AB
  • Sweden
View GitHub Profile
// ==UserScript==
// @name AutoClick
// @namespace http://d.hatena.ne.jp/samurai20000/
// @include http://*
// @include https://*
// ==/UserScript==
名前(姓) 名前(名) ヨミガナ(姓) ヨミガナ(名) 電話番号1 電話タイプ1 電話番号2 電話タイプ2 電話番号3 電話タイプ3 電話番号4 電話タイプ4 電話番号5 電話タイプ5 Eメールアドレス1 Eメールタイプ1 Eメールアドレス2 Eメールタイプ2 Eメールアドレス3 Eメールタイプ3 Eメールアドレス4 Eメールタイプ4 Eメールアドレス5 Eメールタイプ5 メモ 誕生日 肩書き 会社 住所タイプ 住所 URLタイプ URL グループNo モード
#!/usr/bin/env ruby
# -*- coding: cp932 -*-
require 'csv'
$KCODE = 'sjis'
S_FORMAT = '名前(姓),名前(名),ヨミガナ(姓),ヨミガナ(名),電話番号1,電話タイプ1,電話番号2,電話タイプ2,電話番号3,電話タイプ3,電話番号4,電話タイプ4,電話番号5,電話タイプ5,Eメールアドレス1,Eメールタイプ1,Eメールアドレス2,Eメールタイプ2,Eメールアドレス3,Eメールタイプ3,Eメールアドレス4,Eメールタイプ4,Eメールアドレス5,Eメールタイプ5,メモ,誕生日,肩書き,会社,住所タイプ,住所,URLタイプ,URL,グループNo,モード'
def filter(tel_num)
tel_num[/\d+/] if tel_num
function one_year_calender() {
var today = new Date().getTime();
var calender = [];
for (i = 1; i < 365; i++) {
add_time = i * 24 * 60 * 60 * 1000;
var new_date = new Date(today + add_time);
calender.push(new_date);
}
return calender;
}
// ==UserScript==
// @name gmail_add_date_label.user.js
// @namespace http://d.hatena.ne.jp/samurai20000/
// @include http://mail.google.com/mail/#settings/labels
// ==/UserScript==
(function() {
// main
var schedule = one_year_calender();
for (i = 0; i < schedule.length; i++) {
// ==UserScript==
// @name rtm_today's_task
// @namespace http://d.hatena.ne.jp/samurai20000/
// @include http://www.rememberthemilk.com/*
// ==/UserScript==
(function() {
var contents = document.getElementById("content");
if (contents) {
var filter = document.getElementById("listFilter");
// ==UserScript==
// @name cookpad_tukurepo
// @namespace http://d.hatena.ne.jp/samurai20000/
// @include http://cookpad.com/*
// ==/UserScript==
(function(){
function get_tukurepo(elem) {
if (!elem) {
elem = document;
HTTP = {};
HTTP._factories = [
function() {return new XMLHttpRequest();},
function() {return new ActiveXObject("Msxml2.XMLHTTP");},
function() {return new ActiveXObject("Microsoft.XMLHTTP");}
];
HTTP._factory = null;
function reloaded () {
return window.name == window.location.href ? true : false;
}
if (reloaded()) {
// なにか処理
}
window.name = window.location.href;
// ==UserScript==
// @name AutoFocus
// @namespace http://d.hatena.ne.jp/samurai20000/
// @description auto focus on where you wish
// @include http://*
// @include https://*
// @version 0.0.7
// ==/UserScript==
//
// this script based on autopagerize.user.js