Skip to content

Instantly share code, notes, and snippets.

View volante1013's full-sized avatar
🐢
slow

volante1013 volante1013

🐢
slow
View GitHub Profile
@volante1013
volante1013 / myscript.ahk
Last active June 26, 2021 08:11
個人的なAutoHotKeyスクリプト
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
#Include, IME.ahk
#SingleInstance, force
#MaxHotkeysPerInterval, 200 ; 右クリック+ホイール用にちょっと多め
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; キーのリマップ
Insert::Return
@volante1013
volante1013 / caption.js
Last active August 20, 2020 01:22
字幕をDevToolsのConsoleに出力するやつ
(function(){
const span = document.querySelector("body > div.mwPlayerContainer.kdark.ua-mouse.ua-win.ua-chrome.size-large.pause-state > div.videoHolder > div.captionsOverlay");
console.log(span);
const observer = new MutationObserver(records => {
console.log(records[0].target.querySelector("div > span > span").innerText);
});
observer.observe(span, {
childList: true,
});
})()
@volante1013
volante1013 / KancolleUserScript.js
Last active March 14, 2019 22:54
艦これをスマホのブラウザで楽しむためのユーザースクリプト
// ==UserScript==
// @name 艦これフルスクリーン
// @description 艦これをフルスクリーンで開くユーザスクリプト
// @include http://www.dmm.com/netgame/social/-/gadgets/=/app_id=854854/
// ==/UserScript==
function kc($, _) {
const html = $.documentElement,
gf = $.getElementById('game_frame'),
gs = gf.style,
gw = gf.offsetWidth,
@volante1013
volante1013 / scrapbox.js
Last active November 10, 2018 15:34
Scrapbox用のリンクを作成してクリップボードに貼るブックマークレット
// 元々のscrapboxから提供されていたブックマークレット
javascript: (
function () {
var title = window.prompt('Scrap "Scrapbox" to %E8%97%A4%E6%9D%91%E6%98%8C%E5%AE%8F's project.', document.title);
if (!title)
return;
var lines = ['', '[' + window.location.href + ' ' + document.title + ']'];
var quote = window.getSelection().toString();
if (quote.trim())
@volante1013
volante1013 / amazon-history.js
Last active November 10, 2018 15:30 — forked from yociya/amazon-history.js
Amazonの注文履歴を年毎に集計して出力します 利用額 / 注文件数 / 最高額(1注文での) 使い方はコメントを参照
var historyUrl = 'https://www.amazon.co.jp/gp/css/order-history?orderFilter=year-$year$&startIndex=$index$';
function beforeSendHook(xhr){
xhr.setRequestHeader('X-Requested-With'
, {
toString: function(){
return '';
}
}
);
@volante1013
volante1013 / MouseHook.cs
Last active April 20, 2018 16:36
マウスをディスプレイの上下左右でループさせる(マルチディスプレイ対応(たぶん))
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
/*
参考:
C#にてマウスとキーボードを操りし者