Skip to content

Instantly share code, notes, and snippets.

javascript:(function()%20%7B%20%20%20%20%20var%20h%20=%20String(location.hostname);%20%20%20%20%20if%20(h)%20%7B%20%09if%20(h.match(/blog.livedoor.jp/))%20%7B%20%09%20%20%20%20window.open(%22http://hemine.co/counters/livedoor?url=%22%20+%20%09%09encodeURIComponent(String(location.href)));%20%09%7D%20else%20%7B%20%09%20%20%20%20window.open(%22http://www.similarweb.com/website/%22%20+%20encodeURIComponent(h)%20+%20%09%09%22?utm_source=widget.similarweb.com&utm_medium=TrafficWidget&utm_campaign=mb_TrafficWidget_widget.similarweb.com%23overview%22);%20%09%7D%20%20%20%20%20%7D%20%7D)();
// ==UserScript==
// @name XRPSearchFilter
// @namespace http://hitoriblog.com/
// @version 0.1
// @description try to take over the world!
// @author moyashi
// @match https://twitter.com/search*
// @require https://code.jquery.com/jquery-3.3.1.slim.min.js
// @grant none
// ==/UserScript==
#!/usr/bin/env ruby
# coding: utf-8
require 'csv'
require 'time'
require 'kconv'
# coincheckの「設定>取引履歴」( https://coincheck.com/ja/monthly_trade/confirmations ) からダウンロードできる XXXXXXX_201XXX_1.csv を、
# Gtax ( https://crypto-city.net/balance ) にインポートできる共通フォーマット形式のcsvに変換するRubyスクリプト
# 共通フォーマットサンプル.xlsxはxslxだけど、csvでもインポートできてるぽい
#!/usr/bin/env ruby
# coding: utf-8
# coincheck ( https://coincheck.com/ja/affiliates ) からダウンロードできる affiliates-201x-xx-xx_2.csv を、
# Gtax ( https://crypto-city.net/balance ) にインポートできる共通フォーマット形式のcsvに変換するRubyスクリプト
# 共通フォーマットサンプル.xlsxはxslxだけど、csvでもインポートできてるぽい
# 無保証
# 使い方
#!/usr/bin/env ruby
# coding: utf-8
# coincheckからダウンロードできる affiliates-201x-xx-xx_2.csv を、
# Gtaxにインポートできる共通フォーマット形式のcsvに変換するRubyスクリプト
# 共通フォーマットサンプル.xlsxはxslxだけど、csvでもインポートできてるぽい
# 無保証
# 使い方
@moyashi
moyashi / saitama_matsuri_calendar_json_dumper.rb
Created December 21, 2018 02:46
さいたまつり 埼玉のまつり紹介 公式サイトのカレンダーをJSONでダンプする
#!/usr/local/bin/ruby
# coding: utf-8
# さいたまつり 埼玉のまつり紹介 公式サイト カレンダー JSONダンパー
# https://www.saitamatsuri.jp/calendar/
require 'time'
require 'mechanize'
require 'json'
from objc_util import *
NEHotspotConfiguration = ObjCClass("NEHotspotConfiguration")
NEHotspotConfigurationManager = ObjCClass("NEHotspotConfigurationManager")
hs = NEHotspotConfiguration.alloc()
hs.initWithSSID_passphrase_isWEP_("some ssid", "pass phrase", False)
hs.setJoinOnce_(True)
hsm = NEHotspotConfigurationManager.sharedManager()
hsm.applyConfiguration_completionHandler_(hs, None)
@moyashi
moyashi / NowPlayingGooglePlayMusic.txt
Last active September 28, 2018 15:51
NowPlaying (Google Play Music)
javascript:title%3Ddocument.getElementById(%22currently-playing-title%22).textContent%3Balbum%3Ddocument.getElementsByClassName(%22player-album%22)%5B0%5D.textContent%3Bartist%3Ddocument.getElementById(%22player-artist%22).textContent%3BpostContent%3D%22%5C%22%22%20%2B%20title%20%2B%20%22%20%2F%20%22%20%2B%20artist%20%2B%20%22%5C%22%20%23nowplaying%22%3Bvar%20link%3Ddocument.createElement('a')%3Blink.setAttribute('href'%2C%22https%3A%2F%2Fmobile.twitter.com%2Fcompose%2Ftweet%3Ftext%3D%22%20%2B%20encodeURIComponent(postContent))%3Blink.setAttribute('target'%2C'_blank')%3Blink.dispatchEvent(new%20MouseEvent('click'))%3Bvoid(0);
@moyashi
moyashi / HashCryptoInfoTableSorter
Last active January 15, 2018 02:40
http://hashcrypto.info/ にヘッダクリックによるソート機能(クリック毎に昇順/降順を切り替え)の追加をし、デフォルトでシンボル名による24H Changeソートを行うようにするTampermonkey用UserScript
// ==UserScript==
// @name HashCrypto.info Table Sorter
// @namespace http://hitoriblog.com/
// @version 0.1
// @description try to take over the world!
// @require https://code.jquery.com/jquery-3.2.1.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.29.3/js/jquery.tablesorter.min.js
// @author moyashi
// @match http://hashcrypto.info/*
// @grant none
//基準価格リセット間隔の計算 1000 * 60 * 分数
//10秒間隔で基準価格リセット(テスト用)
javascript:setInterval(%22localStorage.removeItem('bt_origin')%3BlocalStorage.removeItem('bt_originDate')%3Binitialize()%3B%22%2C10000)%3Bvoid(0);
//5分間隔で基準価格リセット
javascript:setInterval(%22localStorage.removeItem('bt_origin')%3BlocalStorage.removeItem('bt_originDate')%3Binitialize()%3B%22%2C300000)%3Bvoid(0);
//10分間隔で基準価格リセット
javascript:setInterval(%22localStorage.removeItem('bt_origin')%3BlocalStorage.removeItem('bt_originDate')%3Binitialize()%3B%22%2C600000)%3Bvoid(0);